feat: add school management auth and student CRUD UI
This commit is contained in:
1
templates/registration/form_fields.html
Normal file
1
templates/registration/form_fields.html
Normal file
@@ -0,0 +1 @@
|
||||
{% for field in form %}<div class="field-group">{{ field.label_tag }}{{ field }}{% if field.help_text %}<small class="help-text">{{ field.help_text|safe }}</small>{% endif %}{% for error in field.errors %}<small class="error-text">{{ error }}</small>{% endfor %}</div>{% endfor %}{% if form.non_field_errors %}<div class="error-text">{{ form.non_field_errors }}</div>{% endif %}
|
||||
5
templates/registration/login.html
Normal file
5
templates/registration/login.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block title %}ورود مدیر | مدرسهیار{% endblock %}
|
||||
{% block content %}
|
||||
<section class="auth-layout"><div class="auth-intro"><span class="eyebrow">پنل مدیریت مدرسه</span><h1>مدرسه را با آرامش مدیریت کنید.</h1><p>اطلاعات دانشآموزان را یکجا، دقیق و همیشه در دسترس داشته باشید.</p><div class="intro-note"><span>✦</span><span>فضایی امن برای مدیریت روزانه مدرسه</span></div></div><div class="auth-card"><div class="auth-icon">◈</div><h2>خوش آمدید</h2><p class="muted">برای ورود به پنل مدیریت اطلاعات خود را وارد کنید.</p><form method="post" class="form-stack">{% csrf_token %}{% include 'registration/form_fields.html' with form=form %}<button class="button button-primary button-wide" type="submit">ورود به داشبورد <span>←</span></button></form><p class="auth-footer">حساب مدیر ندارید؟ <a href="{% url 'signup' %}">ثبتنام کنید</a></p></div></section>
|
||||
{% endblock %}
|
||||
5
templates/registration/signup.html
Normal file
5
templates/registration/signup.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block title %}ثبتنام مدیر | مدرسهیار{% endblock %}
|
||||
{% block content %}
|
||||
<section class="auth-layout"><div class="auth-intro"><span class="eyebrow">شروعی ساده و سریع</span><h1>پنل اختصاصی مدرسهتان را بسازید.</h1><p>با چند قدم کوتاه، مدیریت اطلاعات دانشآموزان را منظمتر کنید.</p></div><div class="auth-card"><div class="auth-icon">✦</div><h2>ساخت حساب مدیر</h2><p class="muted">اطلاعات ورود خود را برای استفاده از پنل بسازید.</p><form method="post" class="form-stack">{% csrf_token %}{% include 'registration/form_fields.html' with form=form %}<button class="button button-primary button-wide" type="submit">ساخت حساب و ورود <span>←</span></button></form><p class="auth-footer">قبلاً ثبتنام کردهاید؟ <a href="{% url 'login' %}">وارد شوید</a></p></div></section>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user