|
1 | | -{% extends 'unfold/layouts/skeleton.html' %} |
2 | | -{% load i18n static %} |
3 | | - |
4 | | -{% block extrastyle %} |
5 | | - {{ block.super }} |
6 | | - {{ form.media }} |
7 | | -{% endblock %} |
8 | | - |
9 | | -{% block bodyclass %} |
10 | | - {{ block.super }}bg-gray-50 login dark:bg-gray-900 |
11 | | -{% endblock %} |
12 | | - |
13 | | -{% block usertools %}{% endblock %} |
14 | | -{% block nav-global %}{% endblock %} |
15 | | -{% block nav-sidebar %}{% endblock %} |
16 | | -{% block content_title %}{% endblock %} |
17 | | -{% block breadcrumbs %}{% endblock %} |
18 | | - |
19 | | -{% block title %} |
20 | | - {{ title }} | {{ site_title }} |
21 | | -{% endblock %} |
22 | | - |
23 | | -{% block base %} |
| 1 | +{% extends 'unfold/layouts/skeleton.html' %} {% load i18n static %} {% block |
| 2 | +extrastyle %} {{ block.super }} {{ form.media }} {% endblock %} {% block |
| 3 | +bodyclass %} {{ block.super }}bg-gray-50 login dark:bg-gray-900 {% endblock %} |
| 4 | +{% block usertools %}{% endblock %} {% block nav-global %}{% endblock %} {% |
| 5 | +block nav-sidebar %}{% endblock %} {% block content_title %}{% endblock %} {% |
| 6 | +block breadcrumbs %}{% endblock %} {% block title %} {{ title }} | {{ site_title |
| 7 | +}} {% endblock %} {% block base %} |
24 | 8 | <div class="flex min-h-screen"> |
25 | 9 | <div class="flex flex-grow items-center justify-center mx-auto px-4 relative"> |
26 | 10 | <div class="w-full sm:w-96"> |
27 | 11 | <h1 class="font-semibold mb-10"> |
28 | | - <span class="block text-font-important-light dark:text-font-important-dark"> |
| 12 | + <span |
| 13 | + class="block text-font-important-light dark:text-font-important-dark" |
| 14 | + > |
29 | 15 | {% trans 'Welcome back to' %} |
30 | 16 | </span> |
31 | 17 | <span class="block text-primary-600 text-xl dark:text-primary-500"> |
32 | 18 | {{ site_title }} |
33 | 19 | </span> |
34 | 20 | </h1> |
35 | 21 |
|
36 | | - {% include "unfold/helpers/messages/errornote.html" with errors=form.errors %} |
37 | | - {% include "unfold/helpers/messages/error.html" with errors=form.non_field_errors %} |
38 | | - |
39 | | - {% if user.is_authenticated %} |
40 | | - {% blocktranslate trimmed asvar message %} |
41 | | - You are authenticated as {{ username }}, but are not authorized to access this page. Would you like to login to a different account? |
42 | | - {% endblocktranslate %} |
43 | | - {% include "unfold/helpers/messages/error.html" with error=message %} |
44 | | - {% endif %} |
45 | | - |
46 | | - {% block login_before %}{% endblock %} |
| 22 | + {% include "unfold/helpers/messages/errornote.html" with |
| 23 | + errors=form.errors %} {% include "unfold/helpers/messages/error.html" with |
| 24 | + errors=form.non_field_errors %} {% if user.is_authenticated %} {% |
| 25 | + blocktranslate trimmed asvar message %} You are authenticated as {{ |
| 26 | + username }}, but are not authorized to access this page. Would you like to |
| 27 | + login to a different account? {% endblocktranslate %} {% include |
| 28 | + "unfold/helpers/messages/error.html" with error=message %} {% endif %} {% |
| 29 | + block login_before %}{% endblock %} |
47 | 30 |
|
48 | 31 | <form method="post" action="{% url 'account:login' %}"> |
49 | | - {% csrf_token %} |
50 | | - {% include "unfold/helpers/field.html" with field=form.username %} |
51 | | - {% include "unfold/helpers/field.html" with field=form.password %} |
| 32 | + {% csrf_token %} {% include "unfold/helpers/field.html" with |
| 33 | + field=form.username %} {% include "unfold/helpers/field.html" with |
| 34 | + field=form.password %} |
52 | 35 |
|
53 | 36 | <div class="submit-row"> |
54 | | - <button type="submit" class="bg-primary-600 border border-transparent flex flex-row font-semibold group items-center justify-center py-2 rounded-md text-sm text-white w-full"> |
| 37 | + <button |
| 38 | + type="submit" |
| 39 | + class="bg-primary-600 border border-transparent flex flex-row font-semibold group items-center justify-center py-2 rounded-md text-sm text-white w-full" |
| 40 | + > |
55 | 41 | {% translate 'Log in' %} |
56 | | - <i class="material-symbols-outlined ml-2 relative right-0 text-lg transition-all group-hover:-right-1">arrow_forward</i> |
| 42 | + <i |
| 43 | + class="material-symbols-outlined ml-2 relative right-0 text-lg transition-all group-hover:-right-1" |
| 44 | + >arrow_forward</i |
| 45 | + > |
57 | 46 | </button> |
58 | 47 | </div> |
59 | 48 |
|
|
0 commit comments