93 lines
5.1 KiB
HTML
93 lines
5.1 KiB
HTML
{% extends "base.html" %}
|
|
{% load crispy_forms_filters %}
|
|
{% load allauth i18n static%}
|
|
|
|
{% block title %}{{ _("Sign Up") }}{% endblock title %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="row min-vh-100 text-center">
|
|
<div class="col-sm-10 col-md-8 col-lg-5 col-xl-5 col-xxl-3">
|
|
<a class="d-flex flex-center text-decoration-none mb-4" href="{% url 'home' %}">
|
|
<div class="d-flex align-items-center fw-bolder fs-3 d-inline-block">
|
|
<div class="d-flex align-items-center fw-bolder fs-3 d-inline-block">
|
|
<img class="d-dark-none" src="{% static 'images/logos/logo-d.png' %}" alt="{% trans 'home' %}" width="58" />
|
|
<img class="d-light-none" src="{% static 'images/logos/logo.png' %}" alt="{% trans 'home' %}" width="58" />
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<div class="text-center">
|
|
<h3 class="text-body-highlight">Sign Up</h3>
|
|
<p class="text-body-tertiary">Create your account today</p>
|
|
</div>
|
|
<!-- Passkey Signup -->
|
|
{% if PASSKEY_SIGNUP_ENABLED %}
|
|
<hr class="my-4">
|
|
<div class="d-grid gap-2">
|
|
<a href="{{ signup_by_passkey_url }}" class="btn btn-outline-primary btn-lg">
|
|
{{ _("Sign up using a passkey") }}
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Social Signup -->
|
|
{% if SOCIALACCOUNT_ENABLED %}
|
|
|
|
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %}
|
|
{% endif %}
|
|
|
|
<!-- Sign Up Form -->
|
|
{% if not SOCIALACCOUNT_ONLY %}
|
|
<form method="post" action="{% url 'account_signup' %}" class="needs-validation" novalidate>
|
|
{% csrf_token %}
|
|
{{ redirect_field }}
|
|
<div class="mb-3">
|
|
<label for="id_email" class="form-label">{{ form.email.label }}</label>
|
|
<input type="email" class="form-control" id="id_email" name="email" placeholder="name@example.com">
|
|
{% if form.email.errors %}
|
|
<div class="text-danger">{{ form.email.errors|striptags }}</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="id_password1" class="form-label">{{ form.password1.label }}</label>
|
|
<div class="position-relative" data-password="data-password">
|
|
<input type="password" class="form-control form-icon-input pe-6" id="id_password1" name="password1" data-password-input="data-password-input" placeholder="Password">
|
|
<a class="btn px-3 py-0 h-100 position-absolute top-0 end-0 fs-7 text-body-tertiary" data-password-toggle="data-password-toggle"><span class="uil uil-eye show"></span><span class="uil uil-eye-slash hide"></span></a>
|
|
</div>
|
|
{% if form.password1.errors %}
|
|
<div class="text-danger">{{ form.password1.errors|striptags }}</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="id_password2" class="form-label">{{ form.password2.label }}</label>
|
|
<div class="position-relative" data-password="data-password">
|
|
<input type="password" class="form-control form-icon-input pe-6" id="id_password2" name="password2" data-password-input="data-password-input" placeholder="Confirm Password">
|
|
<a class="btn px-3 py-0 h-100 position-absolute top-0 end-0 fs-7 text-body-tertiary" data-password-toggle="data-password-toggle"><span class="uil uil-eye show"></span><span class="uil uil-eye-slash hide"></span></a>
|
|
</div>
|
|
{% if form.password2.errors %}
|
|
<div class="text-danger">{{ form.password2.errors|striptags }}</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="form-check mb-3">
|
|
|
|
<input class="form-check-input" id="termsService" type="checkbox" />
|
|
<label class="form-label fs-9 text-transform-none" for="termsService">I accept the <a href="">terms </a>and <a href="">privacy policy</a></label>
|
|
</div>
|
|
<button type="submit" class="btn btn-phoenix-primary w-100 mb-3">{{ _("Sign Up") }}</button>
|
|
<div class="text-center">{% trans 'Already have an account?' %}<a class="fw-bold" href="{% url 'account_login' %}"> {{ _("Sign In") }}</a></div>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock content %} |