From 4b2db2b6a120a7ed94e01cd7a281e32bcc96b419 Mon Sep 17 00:00:00 2001 From: Aaron3S Date: Tue, 19 Nov 2024 14:28:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BA=BA=E8=84=B8?= =?UTF-8?q?=E9=87=87=E9=9B=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../authentication/face_capture.html | 34 +++++++++++++------ apps/templates/_base_only_content.html | 5 ++- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/apps/authentication/templates/authentication/face_capture.html b/apps/authentication/templates/authentication/face_capture.html index 1c63f3941..4d0f66096 100644 --- a/apps/authentication/templates/authentication/face_capture.html +++ b/apps/authentication/templates/authentication/face_capture.html @@ -2,29 +2,41 @@ {% load i18n %} {% load static %} -{% block title %} -
- {% trans 'Face Recognition' %} -
-{% endblock %} {% block content %} -
+ + + + {% if 'code' in form.errors %} +

{{ form.code.errors.as_text }}

+ {% endif %} + + {% csrf_token %} - {% if 'code' in form.errors %} -

{{ form.code.errors.as_text }}

- {% endif %}
diff --git a/apps/templates/_base_only_content.html b/apps/templates/_base_only_content.html index af02b18e7..9b441299e 100644 --- a/apps/templates/_base_only_content.html +++ b/apps/templates/_base_only_content.html @@ -22,6 +22,9 @@ .ibox-content { padding: 30px; } + .ibox-context-margin { + margin: 20px 0 0 0; + } {% block custom_head_css_js %} {% endblock %} @@ -34,7 +37,7 @@

{% block title %}{% endblock %}

-
+
{% block content %} {% endblock %}