feat: add school management auth and student CRUD UI

This commit is contained in:
Sina
2026-09-24 23:34:21 +03:30
parent 12e9efcb5c
commit 8a196f8c4f
20 changed files with 326 additions and 9 deletions

View 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 %}

View 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 %}

View 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 %}