{% extends 'template.html' %}
{% block title %}الصفحة الرئيسية{% endblock %} {# Specific title for this page #}
{% block content %}
نظام إدارة الطلاب
{# Added mb-6 for spacing below title #}
{# Navigation Bar - More Eye-Attractive Styling #}
هام: تنسيق ملف CSV
يجب أن يكون الملف بصيغة CSV ومرمّزاً بترميز UTF-8.
يجب **ألا يحتوي** الملف على صف للعناوين، ويجب أن تكون الأعمدة بالترتيب الدقيق التالي:
اسم الطالب, العمر, اسم ولي الأمر, هاتف ولي الأمر 1, هاتف ولي الأمر 2, هاتف الطالب, الصف, اسم المدرسة, العنوان, المحفوظات
إذا كانت الحقول الاختيارية (هاتف ولي الأمر 2، هاتف الطالب) فارغة، اتركها كذلك.
{# Added link to download CSV template #}| # | الإجراءات | {# Moved this header here #}اسم الطالب | العمر | ولي الأمر | أرقام التواصل | الصف | المدرسة | العنوان | المحفوظات |
|---|---|---|---|---|---|---|---|---|---|
| {{ loop.index }} | {# Moved the actions column here #}{# Pen icon #} {# Trash can icon #} {# A hidden form for deletion, used by JavaScript. In a real application, consider adding a CSRF token for security. #} | {{ student['student_name'] }} | {{ student['age'] }} | {{ student['parent_name'] }} |
ولي الأمر 1: {{ student['parent_phone_1'] }}
{% if student['parent_phone_2'] %}ولي الأمر 2: {{ student['parent_phone_2'] }}{% endif %}
{% if student['student_phone'] %}الطالب: {{ student['student_phone'] }}{% endif %}
|
{{ student['grade'] }} | {{ student['school_name'] }} | {{ student['address'] }} | {{ student['memorizing'] }} |
| لم تتم إضافة أي طالب بعد. | |||||||||