Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
B
BaseTemplateAdminLte3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dimas Arestu P
BaseTemplateAdminLte3
Commits
62f3fed3
Commit
62f3fed3
authored
Mar 31, 2022
by
Dimas Arestu P
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
38e6d4ac
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
350 additions
and
650 deletions
+350
-650
home.html
dashboard/templates/dashboard/home.html
+0
-6
settings.py
main/settings.py
+6
-4
base_full_screen.html
templates/base_full_screen.html
+0
-74
base_template.html
templates/base_template.html
+285
-528
template_auth.html
templates/template_auth.html
+39
-0
login.html
web/templates/web/login.html
+20
-38
No files found.
dashboard/templates/dashboard/home.html
View file @
62f3fed3
...
@@ -2,12 +2,6 @@
...
@@ -2,12 +2,6 @@
{% load static %}
{% load static %}
{% load bootstrap_tags %}
{% load bootstrap_tags %}
{% block title %}{{title}}{% endblock %}
{% block breadcrumb_main %}
<li><a
href=
"#"
><i
class=
"fa fa-dashboard"
></i>
{{title}}
</a></li>
{% endblock %}
{% block content %}
{% block content %}
<h4>
Selamat datang {{ user.first_name }} {{ user.last_name }}
</h4>
<h4>
Selamat datang {{ user.first_name }} {{ user.last_name }}
</h4>
{% endblock %}
{% endblock %}
\ No newline at end of file
main/settings.py
View file @
62f3fed3
...
@@ -65,7 +65,7 @@ TEMPLATES = [
...
@@ -65,7 +65,7 @@ TEMPLATES = [
{
{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'DIRS'
:
[
'DIRS'
:
[
os
.
path
.
join
(
BASE_DIR
,
'templates'
)
BASE_DIR
/
"templates"
,
],
],
'APP_DIRS'
:
True
,
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'OPTIONS'
:
{
...
@@ -142,9 +142,11 @@ USE_THOUSAND_SEPARATOR = True
...
@@ -142,9 +142,11 @@ USE_THOUSAND_SEPARATOR = True
# Static files (CSS, JavaScript, Images)
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.0/howto/static-files/
# https://docs.djangoproject.com/en/4.0/howto/static-files/
STATICFILES_DIRS
=
[
STATIC_URL
=
'/static/'
BASE_DIR
/
"static"
,
STATIC_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
'static'
)
]
STATIC_URL
=
'static/'
STATIC_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
'staticfiles'
)
# MEDIA_URL = '/media/'
# MEDIA_URL = '/media/'
# MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
...
...
templates/base_full_screen.html
deleted
100644 → 0
View file @
38e6d4ac
<!DOCTYPE html>
{% load static %}
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
FDR Tire | {{ title }}
</title>
<!-- Tell the browser to be responsive to screen width -->
<meta
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
name=
"viewport"
>
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin/bootstrap/css/bootstrap.min.css' %}"
>
<link
rel=
"stylesheet"
href=
"https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i,900,900i"
type=
"text/css"
media=
"all"
>
<link
rel=
"stylesheet"
href=
"https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"
>
<!-- Font Awesome -->
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin-lte3/plugins/fontawesome-free/css/all.min.css' %}"
>
<!-- Ionicons -->
<link
rel=
"stylesheet"
href=
"https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"
>
<!-- Tempusdominus Bootstrap 4 -->
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin-lte3/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css' %}"
>
<!-- iCheck -->
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin-lte3/plugins/icheck-bootstrap/icheck-bootstrap.min.css' %}"
>
<!-- JQVMap -->
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin-lte3/plugins/jqvmap/jqvmap.min.css' %}"
>
<!-- Theme style -->
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin-lte3/dist/css/adminlte.min.css' %}"
>
<!-- overlayScrollbars -->
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin-lte3/plugins/overlayScrollbars/css/OverlayScrollbars.min.css' %}"
>
<!-- Daterange picker -->
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin-lte3/plugins/daterangepicker/daterangepicker.css' %}"
>
<!-- summernote -->
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin-lte3/plugins/summernote/summernote-bs4.min.css' %}"
>
{% block customheader %}
{% endblock %}
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.select2
{
width
:
100%
!important
}
</style>
</head>
<body
class=
"hold-transition login-page"
>
<div
class=
"login-box"
>
<div
class=
"login-logo"
>
{{ header_title|default:"FDR Tire" }}
</div>
{% block content %}
{% endblock %}
</div>
<!-- jQuery 2.2.3 -->
<script
src=
"{% static 'bower_components/admin-lte/plugins/jQuery/jquery.min.js' %}"
></script>
<script
src=
"{% static 'bower_components/admin-lte/plugins/daterangepicker/daterangepicker.js' %}"
></script>
<!-- Bootstrap 3.3.6 -->
<script
src=
"{% static 'bower_components/admin-lte3/bootstrap/js/bootstrap.min.js' %}"
></script>
<script
src=
"{% static 'bower_components/admin-lte3/plugins/select2/select2.min.js' %}"
></script>
<!--<script src="{% static 'web/js/global.js' %}"></script>-->
{% block customscript %}{% endblock %}
</body>
</html>
templates/base_template.html
View file @
62f3fed3
This diff is collapsed.
Click to expand it.
templates/template_auth.html
0 → 100644
View file @
62f3fed3
<!DOCTYPE html>
{% load static %}
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
AdminLTE 3 | Log in
</title>
<!-- Google Font: Source Sans Pro -->
<link
rel=
"stylesheet"
href=
"https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"
>
<!-- Font Awesome -->
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin-lte3/plugins/fontawesome-free/css/all.min.css' %}"
>
<!-- icheck bootstrap -->
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin-lte3/plugins/icheck-bootstrap/icheck-bootstrap.min.css' %}"
>
<!-- Theme style -->
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/admin-lte3/dist/css/adminlte.min.css' %}"
>
</head>
<body
class=
"hold-transition login-page"
>
<div
class=
"login-box"
>
<div
class=
"login-logo"
>
<a
href=
""
><b>
Admin
</b>
LTE
</a>
</div>
<!-- /.login-logo -->
<div
class=
"card"
>
{% block content %}
{% endblock %}
<!-- /.login-card-body -->
</div>
</div>
<!-- /.login-box -->
<!-- jQuery -->
<script
src=
"{% static 'bower_components/admin-lte3/plugins/jquery/jquery.min.js' %}"
></script>
<!-- Bootstrap 4 -->
<script
src=
"{% static 'bower_components/admin-lte3/plugins/bootstrap/js/bootstrap.bundle.min.js' %}"
></script>
<!-- AdminLTE App -->
<script
src=
"{% static 'bower_components/admin-lte3/dist/js/adminlte.min.js' %}"
></script>
</body>
</html>
\ No newline at end of file
web/templates/web/login.html
View file @
62f3fed3
{% extends 'base_full_screen.html' %}
{% extends 'template_auth.html' %}
<!--{% load static %}-->
{% load bootstrap_tags %}
<!--{% load bootstrap_tags %}-->
{% block customheader %}
{% if captcha_enabled %}
<!--<script src="{% static 'bower_components/api/index.js' %}"></script>-->
<script
src=
'https://www.google.com/recaptcha/api.js'
></script>
<script>
function
onSubmit
(
token
)
{
document
.
getElementById
(
"loginForm"
).
submit
();
}
</script>
{% endif %}
{% endblock %}
{% block content %}
{% block content %}
<div
class=
"card"
>
<div
class=
"card-body login-card-body"
>
<div
class=
"card-body login-card-body"
>
<p
class=
"login-box-msg"
>
Sign in to start your session
</p>
<p
class=
"login-box-msg"
>
Silahkan masukan username dan password
</p>
{% if messages %}
{% for message in messages %}
<div
class=
"alert {% if message.tags %}alert-{{ message.tags }}{% endif %}"
>
{{ message }}
</div>
{% endfor %}
{% endif %}
<form
action=
""
method=
"post"
>
<form
action=
""
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
{{ form|as_bootstrap }}
{{ form|as_bootstrap }}
</form>
<div
class=
"row"
>
<div
class=
"col-8"
>
<p
class=
"mb-1"
>
<div
class=
"icheck-primary"
>
<a
href=
"forgot-password.html"
>
I forgot my password
</a>
<input
type=
"checkbox"
id=
"remember"
>
</p>
<label
for=
"remember"
>
<p
class=
"mb-0"
>
Remember Me
<a
href=
"register.html"
class=
"text-center"
>
Register a new membership
</a>
</label>
</p>
</div>
</div>
<!-- /.login-card-body -->
</div>
</div>
<!-- /.col -->
<div
class=
"col-4"
>
<button
type=
"submit"
class=
"btn btn-primary btn-block"
>
Sign In
</button>
</div>
<!-- /.col -->
</div>
</form>
</div>
{% endblock %}
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment