115 lines
5.8 KiB
HTML
115 lines
5.8 KiB
HTML
{% extends layout_path %}
|
|
|
|
{% load static %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}Login - Pages{% endblock %}
|
|
|
|
{% block vendor_css %}
|
|
{{ block.super }}
|
|
<link rel="stylesheet" href="{% static 'vendor/libs/@form-validation/form-validation.css' %}" />
|
|
{% endblock vendor_css %}
|
|
|
|
{% block vendor_js %}
|
|
{{ block.super }}
|
|
<script src="{% static 'vendor/libs/@form-validation/popular.js' %}"></script>
|
|
<script src="{% static 'vendor/libs/@form-validation/bootstrap5.js' %}"></script>
|
|
<script src="{% static 'vendor/libs/@form-validation/auto-focus.js' %}"></script>
|
|
{% endblock vendor_js %}
|
|
|
|
{% block page_css %}
|
|
{{ block.super }}
|
|
<link rel="stylesheet" href="{% static 'vendor/css/pages/page-auth.css' %}" />
|
|
{% endblock page_css %}
|
|
|
|
{% block page_js %}
|
|
{{ block.super }}
|
|
<script src="{% static 'js/authentication.js' %}"></script>
|
|
<script src="{% static 'js/ui-popover.js' %}"></script>
|
|
{% endblock page_js %}
|
|
|
|
{% block content %}
|
|
<div class="authentication-wrapper authentication-cover">
|
|
<!-- Logo -->
|
|
<a href="{% url 'index' %}" class="app-brand auth-cover-brand">
|
|
<span class="app-brand-logo demo">{% include 'partials/logo.html' %}</span>
|
|
<span class="app-brand-text demo text-heading fw-bold">{% get_theme_variables 'template_name' %}</span>
|
|
</a>
|
|
<!-- /Logo -->
|
|
<div class="authentication-inner row m-0">
|
|
<!-- /Left Text -->
|
|
<div class="d-none d-xl-flex col-xl-8 p-0">
|
|
<div class="auth-cover-bg d-flex justify-content-center align-items-center">
|
|
<img src="{% static 'img/illustrations/auth-login-illustration-' %}{{ COOKIES.theme|default:theme }}.png" alt="auth-login-cover" class="my-5 auth-illustration" data-app-light-img="illustrations/auth-login-illustration-light.png" data-app-dark-img="illustrations/auth-login-illustration-dark.png" />
|
|
<img src="{% static 'img/illustrations/bg-shape-image-' %}{{ COOKIES.theme|default:theme }}.png" alt="auth-login-cover" class="platform-bg" data-app-light-img="illustrations/bg-shape-image-light.png" data-app-dark-img="illustrations/bg-shape-image-dark.png" />
|
|
</div>
|
|
</div>
|
|
<!-- /Left Text -->
|
|
|
|
<!-- Login -->
|
|
<div class="d-flex col-12 col-xl-4 align-items-center authentication-bg p-sm-12 p-6">
|
|
<div class="w-px-400 mx-auto mt-12 pt-5">
|
|
<h4 class="mb-1">Welcome to {% get_theme_variables 'template_name' %}! 👋</h4>
|
|
<p class="mb-6">Please sign-in to your account and start the adventure</p>
|
|
<div class="alert alert-primary small">
|
|
<p class="text-caption mb-1"> Admin Email: <strong>admin@demo.com</strong> / Username: <strong>admin</strong>
|
|
<span class="cursor-pointer" id="admin-user"><i class="icon-base ti tabler-help icon-xs text-body mb-1" data-bs-toggle="popover" data-bs-placement="top" data-bs-trigger="hover focus" title="Admin User" data-bs-content="Can access User, Roles, and Permissions pages. Possesses permissions to View, Update, Delete, and Create transactions on the Transaction Page."></i></span>
|
|
</p>
|
|
<p class="text-caption mb-1"> Client Email: <strong>client@demo.com</strong> / Username: <strong>client</strong>
|
|
<span class="cursor-pointer" id="client-user"><i class="icon-base ti tabler-help icon-xs text-body mb-1" data-bs-toggle="popover" data-bs-placement="top" data-bs-trigger="hover focus" title="Client User" data-bs-content="Unable to access User, Roles, and Permissions pages. Limited to viewing the Transaction page exclusively."></i></span>
|
|
</p>
|
|
<p class="text-caption mb-0">Password: <strong>Pwd_1234</strong></p>
|
|
</div>
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<div class="alert {% if message.tags == 'success' %}alert-success{% elif message.tags == 'error' %}alert-danger{% else %}alert-warning{% endif %}" role="alert">
|
|
{{ message }}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
<form id="formAuthentication" class="mb-6" action="{% url 'login' %}" method="post">
|
|
{% csrf_token %}
|
|
<div class="mb-6 form-control-validation">
|
|
<label for="email" class="form-label">Email or Username</label>
|
|
<input type="email" class="form-control" id="email" name="email-username" value="admin@demo.com" placeholder="Email/Username" autofocus />
|
|
</div>
|
|
<div class="mb-6 form-password-toggle form-control-validation">
|
|
<label class="form-label" for="password">Password</label>
|
|
<div class="input-group input-group-merge">
|
|
<input type="password" id="password" class="form-control" name="password" value="Pwd_1234" placeholder="············" aria-describedby="password" />
|
|
<span class="input-group-text cursor-pointer"><i class="icon-base ti tabler-eye-off"></i></span>
|
|
</div>
|
|
</div>
|
|
<div class="my-8">
|
|
<div class="d-flex justify-content-between">
|
|
<div class="form-check mb-0 ms-2">
|
|
<input class="form-check-input" type="checkbox" id="remember-me">
|
|
<label class="form-check-label" for="remember-me">
|
|
Remember Me
|
|
</label>
|
|
</div>
|
|
<a href="{% url 'forgot-password' %}">
|
|
<p class="mb-0">Forgot Password?</p>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{% if request.GET.next %}
|
|
<input type="hidden" name="next" value="{{request.GET.next}}">
|
|
{% endif %}
|
|
<button class="btn btn-primary d-grid w-100" type="submit">Sign in</button>
|
|
</form>
|
|
|
|
<p class="text-center">
|
|
<span>New on our platform?</span>
|
|
<a href="{% url 'register' %}">
|
|
<span>Create an account</span>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<!-- /Login -->
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|