From e96de0d016335ceeab2b10295cc80b11a18286f7 Mon Sep 17 00:00:00 2001 From: Khaled Mahfouz Date: Thu, 12 Jun 2025 15:50:06 +0300 Subject: [PATCH] - version : 1.1 - description : minor changes . --- app.py | 2 +- templates/index.html | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app.py b/app.py index 31d647c..1b723ed 100644 --- a/app.py +++ b/app.py @@ -35,7 +35,7 @@ def init_db(): ''') # Add indexes for faster search conn.execute('CREATE INDEX idx_student_name ON students(student_name)') - conn.execute('CREATE INDEX idx_parent_phone ON students(parent_phone_1)') + conn.execute('CREATE INDEX idx_parent_name ON students(parent_name)') print("Database initialized with schema constraints and indexes") @app.cli.command('init-db') diff --git a/templates/index.html b/templates/index.html index 5cb1f20..4e72174 100644 --- a/templates/index.html +++ b/templates/index.html @@ -131,6 +131,7 @@ # + الإجراءات اسم الطالب العمر ولي الأمر @@ -139,13 +140,18 @@ المدرسة العنوان المحفوظات - الإجراءات {# New header for actions #} {% for student in students %} - {{ student['id'] }} + {{ loop.index }} + + + {# Pen icon #} + + {# You can add a delete button here later if needed #} + {{ student['student_name'] }} {{ student['age'] }} {{ student['parent_name'] }} @@ -160,13 +166,6 @@ {{ student['school_name'] }} {{ student['address'] }} {{ student['memorizing'] }} - {# New column for actions #} - - - {# Pen icon #} - - {# You can add a delete button here later if needed #} - {% else %}