Commit 62f3fed3 authored by Dimas Arestu P's avatar Dimas Arestu P

update

parent 38e6d4ac
...@@ -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
...@@ -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')
......
<!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>
This diff is collapsed.
<!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
{% 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 }}
<div class="row">
<div class="col-8">
<div class="icheck-primary">
<input type="checkbox" id="remember">
<label for="remember">
Remember Me
</label>
</div>
</div>
<!-- /.col -->
<div class="col-4">
<button type="submit" class="btn btn-primary btn-block">Sign In</button>
</div>
<!-- /.col -->
</div>
</form> </form>
<p class="mb-1">
<a href="forgot-password.html">I forgot my password</a>
</p>
<p class="mb-0">
<a href="register.html" class="text-center">Register a new membership</a>
</p>
</div> </div>
<!-- /.login-card-body --> {% endblock %}
</div>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment