- version : 0.9

- description : adding an option to modify any student's info with
  seperate modify_info.html file and seperate route .
هذا الالتزام موجود في:
2025-06-11 19:22:28 +03:00
الأصل 731e45f75c
التزام 92f3222e1b
4 ملفات معدلة مع 184 إضافات و4 حذوفات

عرض الملف

@@ -139,6 +139,7 @@
<th class="px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider">المدرسة</th>
<th class="px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider">العنوان</th>
<th class="px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider">المحفوظات</th>
<th class="px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider">الإجراءات</th> {# New header for actions #}
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200" id="students-table-body">
@@ -159,6 +160,13 @@
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">{{ student['school_name'] }}</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">{{ student['address'] }}</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">{{ student['memorizing'] }}</td>
{# New column for actions #}
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="{{ url_for('modify_student', student_id=student['id']) }}" class="text-indigo-600 hover:text-indigo-900">
<i class="fas fa-pen"></i> {# Pen icon #}
</a>
{# You can add a delete button here later if needed #}
</td>
</tr>
{% else %}
<tr id="no-students-row">
@@ -183,7 +191,6 @@
const addManuallyButton = document.getElementById('add-manually-button');
const addStudentSection = document.getElementById('add-student-section');
const addStudentForm = document.getElementById('add-student-form');
const importForm = document.getElementById('import-form');
const submitAddButton = document.getElementById('submit-add-button');
// New elements for search functionality