From de8970436cec9efbd97bbc162164fcb697364b11 Mon Sep 17 00:00:00 2001 From: Khaled Mahfouz Date: Wed, 11 Jun 2025 17:43:28 +0300 Subject: [PATCH] - version : 0.5 - description : making a template.html and use it in index.html . --- templates/index.html | 303 ++++++++++++++++++---------------------- templates/template.html | 49 +++++++ 2 files changed, 182 insertions(+), 170 deletions(-) create mode 100644 templates/template.html diff --git a/templates/index.html b/templates/index.html index 6e7dbe0..7971f05 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,179 +1,143 @@ - - - - - - بيانات الطلاب - - - - - - - +{% extends 'template.html' %} -
+{% block title %}الصفحة الرئيسية{% endblock %} {# Specific title for this page #} -
- {% with messages = get_flashed_messages(with_categories=true) %} - {% if messages %} - {% for category, message in messages %} - {% set bg_color = 'bg-blue-100 border-blue-500 text-blue-700' %} - {% if category == 'success' %}{% set bg_color = 'bg-green-100 border-green-500 text-green-700' %}{% endif %} - {% if category == 'danger' %}{% set bg_color = 'bg-red-100 border-red-500 text-red-700' %}{% endif %} - {% if category == 'warning' %}{% set bg_color = 'bg-yellow-100 border-yellow-500 text-yellow-700' %}{% endif %} - - {% endfor %} - {% endif %} - {% endwith %} -
+{% block content %} +
+

نظام إدارة الطلاب

+

أدخل بيانات الطلاب يدوياً أو قم باستيراد ملف CSV.

+
-
-

نظام إدارة الطلاب

-

أدخل بيانات الطلاب يدوياً أو قم باستيراد ملف CSV.

-
- -