106 lines
4.7 KiB
HTML
106 lines
4.7 KiB
HTML
{% extends layout_path %}
|
|
|
|
{% load static %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}Register - 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>
|
|
{% 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-register-illustration-' %}{{ COOKIES.theme|default:theme }}.png" alt="auth-register-cover" class="my-5 auth-illustration" data-app-light-img="illustrations/auth-register-illustration-light.png" data-app-dark-img="illustrations/auth-register-illustration-dark.png" />
|
|
<img src="{% static 'img/illustrations/bg-shape-image-' %}{{ COOKIES.theme|default:theme }}.png" alt="auth-register-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 -->
|
|
|
|
<!-- Register -->
|
|
<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">Adventure starts here 🚀</h4>
|
|
<p class="mb-6">Make your app management easy and fun!</p>
|
|
{% 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 'register' %}" method="post">
|
|
{% csrf_token %}
|
|
<div class="mb-6 form-control-validation">
|
|
<label for="username" class="form-label">Username</label>
|
|
<input type="text" class="form-control" id="username" name="username" placeholder="Enter your username" autofocus />
|
|
</div>
|
|
<div class="mb-6 form-control-validation">
|
|
<label for="email" class="form-label">Email</label>
|
|
<input type="text" class="form-control" id="email" name="email" placeholder="Enter your email" />
|
|
</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" 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="mb-6 mt-8">
|
|
<div class="form-check mb-8 ms-2 form-control-validation">
|
|
<input class="form-check-input" type="checkbox" id="terms-conditions" name="terms" />
|
|
<label class="form-check-label" for="terms-conditions">
|
|
I agree to
|
|
<a href="javascript:void(0);">privacy policy & terms</a>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<button id="btnSubmit" class="btn btn-primary w-100" type="submit">
|
|
<span id="btnText" class="me-1">Sign up</span>
|
|
<span id="btnLoader" class="spinner-border spinner-border-sm visually-hidden" role="status" aria-hidden="true"></span>
|
|
</button>
|
|
</form>
|
|
|
|
<p class="text-center">
|
|
<span>Already have an account?</span>
|
|
<a href="{% url 'login' %}">
|
|
<span>Sign in instead</span>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<!-- /Register -->
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|