{% 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 #}| # | اسم الطالب | العمر | ولي الأمر | أرقام التواصل | الصف | المدرسة | العنوان | المحفوظات | الإجراءات | {# New header for actions #}
|---|---|---|---|---|---|---|---|---|---|
| {{ student['id'] }} | {{ 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'] }} | {# New column for actions #}{# Pen icon #} {# You can add a delete button here later if needed #} |
| لم تتم إضافة أي طالب بعد. | |||||||||