Spaces:
Sleeping
Sleeping
Upload 3121 files
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .env +14 -0
- .gitattributes +153 -0
- app.py +1048 -0
- app_errors.log +0 -0
- static/css/style.css +265 -0
- static/downloads/admissions/company logo.jpg +0 -0
- static/downloads/admissions/prospectus.pdf +0 -0
- static/downloads/general/index.html +10 -0
- static/images/default.jpg +0 -0
- static/js/main.js +63 -0
- static/uploads/applications/348f9a45-0184-40ed-8fc4-444829eea40d_academic_records.pdf +0 -0
- static/uploads/applications/348f9a45-0184-40ed-8fc4-444829eea40d_birth_certificate.pdf +0 -0
- static/uploads/applications/348f9a45-0184-40ed-8fc4-444829eea40d_photo.png +3 -0
- static/uploads/applications/348f9a45-0184-40ed-8fc4-444829eea40d_recommendation_letter.pdf +0 -0
- static/uploads/applications/7d8de7f4-a5c9-47c3-81e0-9e95eed94557_academic_records.pdf +0 -0
- static/uploads/applications/7d8de7f4-a5c9-47c3-81e0-9e95eed94557_birth_certificate.pdf +0 -0
- static/uploads/applications/7d8de7f4-a5c9-47c3-81e0-9e95eed94557_photo.png +3 -0
- static/uploads/applications/7d8de7f4-a5c9-47c3-81e0-9e95eed94557_recommendation_letter.pdf +0 -0
- templates/404.html +17 -0
- templates/about.html +342 -0
- templates/academics.html +314 -0
- templates/admin/application_detail.html +290 -0
- templates/admin/applications.html +146 -0
- templates/admin/base.html +60 -0
- templates/admin/content.html +1 -0
- templates/admin/dashboard.html +76 -0
- templates/admin/login.html +61 -0
- templates/admin/manage_content.html +1 -0
- templates/admin/settings.html +43 -0
- templates/admissions.html +184 -0
- templates/admissions/application_success.html +58 -0
- templates/admissions/apply.html +184 -0
- templates/admissions/view_application.html +147 -0
- templates/base.html +338 -0
- templates/contact.html +104 -0
- templates/contact_success.html +17 -0
- templates/events.html +345 -0
- templates/home.html +193 -0
- templates/news.html +181 -0
- templates/student_life.html +335 -0
- templates/style.css +265 -0
- templates/test_downloads.html +17 -0
- translations/en/LC_MESSAGES/messages.po +35 -0
- translations/sw/LC_MESSAGES/messages.po +35 -0
- venv/.gitignore +2 -0
- venv/Lib/site-packages/Flask_Babel-2.0.0.dist-info/INSTALLER +1 -0
- venv/Lib/site-packages/Flask_Babel-2.0.0.dist-info/LICENSE +31 -0
- venv/Lib/site-packages/Flask_Babel-2.0.0.dist-info/METADATA +57 -0
- venv/Lib/site-packages/Flask_Babel-2.0.0.dist-info/RECORD +11 -0
- venv/Lib/site-packages/Flask_Babel-2.0.0.dist-info/REQUESTED +0 -0
.env
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# In your .env file (keep this private)
|
| 2 |
+
CONTACT_EMAIL=egliszaratus@gmail.com
|
| 3 |
+
ADMIN_EMAIL=egliszaratus@gmail.com
|
| 4 |
+
|
| 5 |
+
# In app.py
|
| 6 |
+
app.config['CONTACT_EMAIL'] = os.environ.get('CONTACT_EMAIL', 'info@munishischool.ac.tz')
|
| 7 |
+
app.config['ADMIN_EMAIL'] = os.environ.get('ADMIN_EMAIL', 'admin@munishischool.ac.tz')
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
app.config['ADMIN_USERNAME'] = os.environ.get('ADMIN_USERNAME', 'admin') # Default: 'admin'
|
| 11 |
+
app.config['ADMIN_PASSWORD'] = os.environ.get('ADMIN_PASSWORD', generate_password_hash('admin123')) # Default: hashed 'admin123'
|
| 12 |
+
|
| 13 |
+
MAIL_USERNAME=egliszaratus@gmail.com
|
| 14 |
+
MAIL_PASSWORD=xwzd nogw tavi qgtg
|
.gitattributes
CHANGED
|
@@ -33,3 +33,156 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
static/uploads/applications/348f9a45-0184-40ed-8fc4-444829eea40d_photo.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
static/uploads/applications/7d8de7f4-a5c9-47c3-81e0-9e95eed94557_photo.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
venv/Lib/site-packages/babel/global.dat filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
venv/Lib/site-packages/babel/locale-data/af.dat filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
venv/Lib/site-packages/babel/locale-data/ak.dat filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
venv/Lib/site-packages/babel/locale-data/am.dat filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
venv/Lib/site-packages/babel/locale-data/ar.dat filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
venv/Lib/site-packages/babel/locale-data/as.dat filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
venv/Lib/site-packages/babel/locale-data/ast.dat filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
venv/Lib/site-packages/babel/locale-data/az.dat filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
venv/Lib/site-packages/babel/locale-data/bal_Latn.dat filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
venv/Lib/site-packages/babel/locale-data/be_TARASK.dat filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
venv/Lib/site-packages/babel/locale-data/be.dat filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
venv/Lib/site-packages/babel/locale-data/bew.dat filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
venv/Lib/site-packages/babel/locale-data/bg.dat filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
venv/Lib/site-packages/babel/locale-data/blo.dat filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
venv/Lib/site-packages/babel/locale-data/bn.dat filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
venv/Lib/site-packages/babel/locale-data/br.dat filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
venv/Lib/site-packages/babel/locale-data/brx.dat filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
venv/Lib/site-packages/babel/locale-data/bs_Cyrl.dat filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
venv/Lib/site-packages/babel/locale-data/bs.dat filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
venv/Lib/site-packages/babel/locale-data/ca.dat filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
venv/Lib/site-packages/babel/locale-data/ccp.dat filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
venv/Lib/site-packages/babel/locale-data/ce.dat filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
venv/Lib/site-packages/babel/locale-data/ceb.dat filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
venv/Lib/site-packages/babel/locale-data/chr.dat filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
venv/Lib/site-packages/babel/locale-data/cs.dat filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
venv/Lib/site-packages/babel/locale-data/cv.dat filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
venv/Lib/site-packages/babel/locale-data/cy.dat filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
venv/Lib/site-packages/babel/locale-data/da.dat filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
venv/Lib/site-packages/babel/locale-data/de.dat filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
venv/Lib/site-packages/babel/locale-data/dsb.dat filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
venv/Lib/site-packages/babel/locale-data/el.dat filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
venv/Lib/site-packages/babel/locale-data/en.dat filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
venv/Lib/site-packages/babel/locale-data/eo.dat filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
venv/Lib/site-packages/babel/locale-data/es.dat filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
venv/Lib/site-packages/babel/locale-data/et.dat filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
venv/Lib/site-packages/babel/locale-data/eu.dat filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
venv/Lib/site-packages/babel/locale-data/fa.dat filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
venv/Lib/site-packages/babel/locale-data/ff_Adlm.dat filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
venv/Lib/site-packages/babel/locale-data/fi.dat filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
venv/Lib/site-packages/babel/locale-data/fil.dat filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
venv/Lib/site-packages/babel/locale-data/fo.dat filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
venv/Lib/site-packages/babel/locale-data/fr.dat filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
venv/Lib/site-packages/babel/locale-data/frr.dat filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
venv/Lib/site-packages/babel/locale-data/fy.dat filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
venv/Lib/site-packages/babel/locale-data/ga.dat filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
venv/Lib/site-packages/babel/locale-data/gd.dat filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
venv/Lib/site-packages/babel/locale-data/gl.dat filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
venv/Lib/site-packages/babel/locale-data/gu.dat filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
venv/Lib/site-packages/babel/locale-data/ha.dat filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
venv/Lib/site-packages/babel/locale-data/he.dat filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
venv/Lib/site-packages/babel/locale-data/hi.dat filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
venv/Lib/site-packages/babel/locale-data/hr.dat filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
venv/Lib/site-packages/babel/locale-data/hsb.dat filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
venv/Lib/site-packages/babel/locale-data/hu.dat filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
venv/Lib/site-packages/babel/locale-data/hy.dat filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
venv/Lib/site-packages/babel/locale-data/ia.dat filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
venv/Lib/site-packages/babel/locale-data/id.dat filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
venv/Lib/site-packages/babel/locale-data/is.dat filter=lfs diff=lfs merge=lfs -text
|
| 96 |
+
venv/Lib/site-packages/babel/locale-data/it.dat filter=lfs diff=lfs merge=lfs -text
|
| 97 |
+
venv/Lib/site-packages/babel/locale-data/ja.dat filter=lfs diff=lfs merge=lfs -text
|
| 98 |
+
venv/Lib/site-packages/babel/locale-data/jv.dat filter=lfs diff=lfs merge=lfs -text
|
| 99 |
+
venv/Lib/site-packages/babel/locale-data/ka.dat filter=lfs diff=lfs merge=lfs -text
|
| 100 |
+
venv/Lib/site-packages/babel/locale-data/kab.dat filter=lfs diff=lfs merge=lfs -text
|
| 101 |
+
venv/Lib/site-packages/babel/locale-data/kgp.dat filter=lfs diff=lfs merge=lfs -text
|
| 102 |
+
venv/Lib/site-packages/babel/locale-data/kk_Arab.dat filter=lfs diff=lfs merge=lfs -text
|
| 103 |
+
venv/Lib/site-packages/babel/locale-data/kk.dat filter=lfs diff=lfs merge=lfs -text
|
| 104 |
+
venv/Lib/site-packages/babel/locale-data/km.dat filter=lfs diff=lfs merge=lfs -text
|
| 105 |
+
venv/Lib/site-packages/babel/locale-data/kn.dat filter=lfs diff=lfs merge=lfs -text
|
| 106 |
+
venv/Lib/site-packages/babel/locale-data/ko.dat filter=lfs diff=lfs merge=lfs -text
|
| 107 |
+
venv/Lib/site-packages/babel/locale-data/kok.dat filter=lfs diff=lfs merge=lfs -text
|
| 108 |
+
venv/Lib/site-packages/babel/locale-data/ks.dat filter=lfs diff=lfs merge=lfs -text
|
| 109 |
+
venv/Lib/site-packages/babel/locale-data/ku.dat filter=lfs diff=lfs merge=lfs -text
|
| 110 |
+
venv/Lib/site-packages/babel/locale-data/ky.dat filter=lfs diff=lfs merge=lfs -text
|
| 111 |
+
venv/Lib/site-packages/babel/locale-data/lb.dat filter=lfs diff=lfs merge=lfs -text
|
| 112 |
+
venv/Lib/site-packages/babel/locale-data/lij.dat filter=lfs diff=lfs merge=lfs -text
|
| 113 |
+
venv/Lib/site-packages/babel/locale-data/lo.dat filter=lfs diff=lfs merge=lfs -text
|
| 114 |
+
venv/Lib/site-packages/babel/locale-data/lt.dat filter=lfs diff=lfs merge=lfs -text
|
| 115 |
+
venv/Lib/site-packages/babel/locale-data/lv.dat filter=lfs diff=lfs merge=lfs -text
|
| 116 |
+
venv/Lib/site-packages/babel/locale-data/mk.dat filter=lfs diff=lfs merge=lfs -text
|
| 117 |
+
venv/Lib/site-packages/babel/locale-data/ml.dat filter=lfs diff=lfs merge=lfs -text
|
| 118 |
+
venv/Lib/site-packages/babel/locale-data/mn.dat filter=lfs diff=lfs merge=lfs -text
|
| 119 |
+
venv/Lib/site-packages/babel/locale-data/mr.dat filter=lfs diff=lfs merge=lfs -text
|
| 120 |
+
venv/Lib/site-packages/babel/locale-data/ms.dat filter=lfs diff=lfs merge=lfs -text
|
| 121 |
+
venv/Lib/site-packages/babel/locale-data/my.dat filter=lfs diff=lfs merge=lfs -text
|
| 122 |
+
venv/Lib/site-packages/babel/locale-data/ne.dat filter=lfs diff=lfs merge=lfs -text
|
| 123 |
+
venv/Lib/site-packages/babel/locale-data/nl.dat filter=lfs diff=lfs merge=lfs -text
|
| 124 |
+
venv/Lib/site-packages/babel/locale-data/no.dat filter=lfs diff=lfs merge=lfs -text
|
| 125 |
+
venv/Lib/site-packages/babel/locale-data/nqo.dat filter=lfs diff=lfs merge=lfs -text
|
| 126 |
+
venv/Lib/site-packages/babel/locale-data/or.dat filter=lfs diff=lfs merge=lfs -text
|
| 127 |
+
venv/Lib/site-packages/babel/locale-data/pa.dat filter=lfs diff=lfs merge=lfs -text
|
| 128 |
+
venv/Lib/site-packages/babel/locale-data/pcm.dat filter=lfs diff=lfs merge=lfs -text
|
| 129 |
+
venv/Lib/site-packages/babel/locale-data/pl.dat filter=lfs diff=lfs merge=lfs -text
|
| 130 |
+
venv/Lib/site-packages/babel/locale-data/ps.dat filter=lfs diff=lfs merge=lfs -text
|
| 131 |
+
venv/Lib/site-packages/babel/locale-data/pt.dat filter=lfs diff=lfs merge=lfs -text
|
| 132 |
+
venv/Lib/site-packages/babel/locale-data/ro.dat filter=lfs diff=lfs merge=lfs -text
|
| 133 |
+
venv/Lib/site-packages/babel/locale-data/ru.dat filter=lfs diff=lfs merge=lfs -text
|
| 134 |
+
venv/Lib/site-packages/babel/locale-data/sc.dat filter=lfs diff=lfs merge=lfs -text
|
| 135 |
+
venv/Lib/site-packages/babel/locale-data/sd.dat filter=lfs diff=lfs merge=lfs -text
|
| 136 |
+
venv/Lib/site-packages/babel/locale-data/si.dat filter=lfs diff=lfs merge=lfs -text
|
| 137 |
+
venv/Lib/site-packages/babel/locale-data/sk.dat filter=lfs diff=lfs merge=lfs -text
|
| 138 |
+
venv/Lib/site-packages/babel/locale-data/sl.dat filter=lfs diff=lfs merge=lfs -text
|
| 139 |
+
venv/Lib/site-packages/babel/locale-data/so.dat filter=lfs diff=lfs merge=lfs -text
|
| 140 |
+
venv/Lib/site-packages/babel/locale-data/sq.dat filter=lfs diff=lfs merge=lfs -text
|
| 141 |
+
venv/Lib/site-packages/babel/locale-data/sr_Latn.dat filter=lfs diff=lfs merge=lfs -text
|
| 142 |
+
venv/Lib/site-packages/babel/locale-data/sr.dat filter=lfs diff=lfs merge=lfs -text
|
| 143 |
+
venv/Lib/site-packages/babel/locale-data/sv.dat filter=lfs diff=lfs merge=lfs -text
|
| 144 |
+
venv/Lib/site-packages/babel/locale-data/sw.dat filter=lfs diff=lfs merge=lfs -text
|
| 145 |
+
venv/Lib/site-packages/babel/locale-data/syr.dat filter=lfs diff=lfs merge=lfs -text
|
| 146 |
+
venv/Lib/site-packages/babel/locale-data/ta.dat filter=lfs diff=lfs merge=lfs -text
|
| 147 |
+
venv/Lib/site-packages/babel/locale-data/te.dat filter=lfs diff=lfs merge=lfs -text
|
| 148 |
+
venv/Lib/site-packages/babel/locale-data/tg.dat filter=lfs diff=lfs merge=lfs -text
|
| 149 |
+
venv/Lib/site-packages/babel/locale-data/th.dat filter=lfs diff=lfs merge=lfs -text
|
| 150 |
+
venv/Lib/site-packages/babel/locale-data/ti.dat filter=lfs diff=lfs merge=lfs -text
|
| 151 |
+
venv/Lib/site-packages/babel/locale-data/tk.dat filter=lfs diff=lfs merge=lfs -text
|
| 152 |
+
venv/Lib/site-packages/babel/locale-data/to.dat filter=lfs diff=lfs merge=lfs -text
|
| 153 |
+
venv/Lib/site-packages/babel/locale-data/tr.dat filter=lfs diff=lfs merge=lfs -text
|
| 154 |
+
venv/Lib/site-packages/babel/locale-data/trw.dat filter=lfs diff=lfs merge=lfs -text
|
| 155 |
+
venv/Lib/site-packages/babel/locale-data/tt.dat filter=lfs diff=lfs merge=lfs -text
|
| 156 |
+
venv/Lib/site-packages/babel/locale-data/ug.dat filter=lfs diff=lfs merge=lfs -text
|
| 157 |
+
venv/Lib/site-packages/babel/locale-data/uk.dat filter=lfs diff=lfs merge=lfs -text
|
| 158 |
+
venv/Lib/site-packages/babel/locale-data/ur.dat filter=lfs diff=lfs merge=lfs -text
|
| 159 |
+
venv/Lib/site-packages/babel/locale-data/uz.dat filter=lfs diff=lfs merge=lfs -text
|
| 160 |
+
venv/Lib/site-packages/babel/locale-data/vec.dat filter=lfs diff=lfs merge=lfs -text
|
| 161 |
+
venv/Lib/site-packages/babel/locale-data/vi.dat filter=lfs diff=lfs merge=lfs -text
|
| 162 |
+
venv/Lib/site-packages/babel/locale-data/xnr.dat filter=lfs diff=lfs merge=lfs -text
|
| 163 |
+
venv/Lib/site-packages/babel/locale-data/yo.dat filter=lfs diff=lfs merge=lfs -text
|
| 164 |
+
venv/Lib/site-packages/babel/locale-data/yrl.dat filter=lfs diff=lfs merge=lfs -text
|
| 165 |
+
venv/Lib/site-packages/babel/locale-data/yue_Hans.dat filter=lfs diff=lfs merge=lfs -text
|
| 166 |
+
venv/Lib/site-packages/babel/locale-data/yue.dat filter=lfs diff=lfs merge=lfs -text
|
| 167 |
+
venv/Lib/site-packages/babel/locale-data/zh_Hant.dat filter=lfs diff=lfs merge=lfs -text
|
| 168 |
+
venv/Lib/site-packages/babel/locale-data/zh.dat filter=lfs diff=lfs merge=lfs -text
|
| 169 |
+
venv/Lib/site-packages/babel/locale-data/zu.dat filter=lfs diff=lfs merge=lfs -text
|
| 170 |
+
venv/Lib/site-packages/click/__pycache__/core.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
|
| 171 |
+
venv/Lib/site-packages/jinja2/__pycache__/compiler.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
|
| 172 |
+
venv/Lib/site-packages/pip/_vendor/__pycache__/typing_extensions.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
|
| 173 |
+
venv/Lib/site-packages/pip/_vendor/distlib/t64-arm.exe filter=lfs diff=lfs merge=lfs -text
|
| 174 |
+
venv/Lib/site-packages/pip/_vendor/distlib/t64.exe filter=lfs diff=lfs merge=lfs -text
|
| 175 |
+
venv/Lib/site-packages/pip/_vendor/distlib/w64-arm.exe filter=lfs diff=lfs merge=lfs -text
|
| 176 |
+
venv/Lib/site-packages/pip/_vendor/distlib/w64.exe filter=lfs diff=lfs merge=lfs -text
|
| 177 |
+
venv/Lib/site-packages/pip/_vendor/idna/__pycache__/uts46data.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
|
| 178 |
+
venv/Lib/site-packages/pip/_vendor/pkg_resources/__pycache__/__init__.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
|
| 179 |
+
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/_emoji_codes.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
|
| 180 |
+
venv/Lib/site-packages/pip/_vendor/rich/__pycache__/console.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
|
| 181 |
+
venv/Scripts/dotenv.exe filter=lfs diff=lfs merge=lfs -text
|
| 182 |
+
venv/Scripts/flask.exe filter=lfs diff=lfs merge=lfs -text
|
| 183 |
+
venv/Scripts/pip.exe filter=lfs diff=lfs merge=lfs -text
|
| 184 |
+
venv/Scripts/pip3.13.exe filter=lfs diff=lfs merge=lfs -text
|
| 185 |
+
venv/Scripts/pip3.exe filter=lfs diff=lfs merge=lfs -text
|
| 186 |
+
venv/Scripts/pybabel.exe filter=lfs diff=lfs merge=lfs -text
|
| 187 |
+
venv/Scripts/python.exe filter=lfs diff=lfs merge=lfs -text
|
| 188 |
+
venv/Scripts/pythonw.exe filter=lfs diff=lfs merge=lfs -text
|
app.py
ADDED
|
@@ -0,0 +1,1048 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from flask import Flask, render_template, request, session, redirect, url_for, send_from_directory, g, flash, jsonify
|
| 2 |
+
from flask_babel import Babel, gettext as _
|
| 3 |
+
from flask_mail import Mail, Message
|
| 4 |
+
import os
|
| 5 |
+
import json
|
| 6 |
+
from datetime import datetime
|
| 7 |
+
from functools import wraps
|
| 8 |
+
import uuid
|
| 9 |
+
from werkzeug.utils import secure_filename
|
| 10 |
+
from werkzeug.security import generate_password_hash, check_password_hash
|
| 11 |
+
|
| 12 |
+
app = Flask(__name__)
|
| 13 |
+
app.secret_key = os.environ.get('SECRET_KEY', 'dev_secret_key')
|
| 14 |
+
|
| 15 |
+
# Application Configuration
|
| 16 |
+
app.config['BABEL_DEFAULT_LOCALE'] = 'en'
|
| 17 |
+
app.config['BABEL_TRANSLATION_DIRECTORIES'] = 'translations'
|
| 18 |
+
app.config['SCHOOL_NAME'] = "Munishi Secondary School"
|
| 19 |
+
app.config['SCHOOL_MOTTO'] = "Excellence Through Diligence"
|
| 20 |
+
app.config['CONTACT_EMAIL'] = "info@munishischool.ac.tz"
|
| 21 |
+
app.config['CONTACT_PHONE'] = "+255 22 123 4567"
|
| 22 |
+
app.config['ADDRESS'] = "P.O. Box 1234, Dar es Salaam, Tanzania"
|
| 23 |
+
app.config['SOCIAL_MEDIA'] = {
|
| 24 |
+
'facebook': 'https://facebook.com/munishischool',
|
| 25 |
+
'twitter': 'https://twitter.com/munishischool',
|
| 26 |
+
'instagram': 'https://instagram.com/munishischool',
|
| 27 |
+
'youtube': 'https://youtube.com/munishischool'
|
| 28 |
+
}
|
| 29 |
+
app.config['UPLOAD_FOLDER'] = 'static/uploads'
|
| 30 |
+
app.config['ALLOWED_EXTENSIONS'] = {'png', 'jpg', 'jpeg', 'gif', 'pdf'}
|
| 31 |
+
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB max upload size
|
| 32 |
+
|
| 33 |
+
# Admin Configuration
|
| 34 |
+
app.config['ADMIN_USERNAME'] = os.environ.get('ADMIN_USERNAME', 'admin')
|
| 35 |
+
app.config['ADMIN_PASSWORD'] = os.environ.get('ADMIN_PASSWORD', generate_password_hash('admin123'))
|
| 36 |
+
app.config['ADMIN_UPLOAD_FOLDER'] = 'static/uploads/admin'
|
| 37 |
+
app.config['APPLICATIONS_PER_PAGE'] = 10
|
| 38 |
+
app.config['ADMIN_SESSION_TIMEOUT'] = 3600 # 1 hour in seconds
|
| 39 |
+
|
| 40 |
+
# Email Configuration
|
| 41 |
+
app.config['MAIL_SERVER'] = 'smtp.gmail.com'
|
| 42 |
+
app.config['MAIL_PORT'] = 587
|
| 43 |
+
app.config['MAIL_USE_TLS'] = True
|
| 44 |
+
app.config['MAIL_USERNAME'] = 'egliszaratus@gmail.com'
|
| 45 |
+
app.config['MAIL_PASSWORD'] = 'xwzd nogw tavi qgtg' # Your app password
|
| 46 |
+
app.config['MAIL_DEFAULT_SENDER'] = 'Munishi Secondary School <egliszaratus@gmail.com>'
|
| 47 |
+
app.config['ADMIN_EMAIL'] = 'egliszaratus@gmail.com'
|
| 48 |
+
|
| 49 |
+
# Initialize Babel and Mail
|
| 50 |
+
babel = Babel(app)
|
| 51 |
+
mail = Mail(app)
|
| 52 |
+
|
| 53 |
+
# Admin Authentication Decorator
|
| 54 |
+
def admin_required(f):
|
| 55 |
+
@wraps(f)
|
| 56 |
+
def decorated_function(*args, **kwargs):
|
| 57 |
+
if not session.get('admin_logged_in'):
|
| 58 |
+
return redirect(url_for('admin_login', next=request.url))
|
| 59 |
+
|
| 60 |
+
# Check session timeout
|
| 61 |
+
last_activity = session.get('admin_last_activity')
|
| 62 |
+
if last_activity and (datetime.now() - datetime.strptime(last_activity, "%Y-%m-%d %H:%M:%S")).seconds > app.config['ADMIN_SESSION_TIMEOUT']:
|
| 63 |
+
session.pop('admin_logged_in', None)
|
| 64 |
+
flash(_('Your session has timed out. Please log in again.'), 'warning')
|
| 65 |
+
return redirect(url_for('admin_login', next=request.url))
|
| 66 |
+
|
| 67 |
+
# Update last activity time
|
| 68 |
+
session['admin_last_activity'] = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 69 |
+
return f(*args, **kwargs)
|
| 70 |
+
return decorated_function
|
| 71 |
+
|
| 72 |
+
# Helper Functions
|
| 73 |
+
def load_data(filename):
|
| 74 |
+
"""Load JSON data from the data directory"""
|
| 75 |
+
try:
|
| 76 |
+
with open(f'data/{filename}.json', 'r', encoding='utf-8') as f:
|
| 77 |
+
data = json.load(f)
|
| 78 |
+
# Process the data based on type
|
| 79 |
+
if isinstance(data, list):
|
| 80 |
+
for item in data:
|
| 81 |
+
if isinstance(item, dict):
|
| 82 |
+
# Escape % signs in strings for translation
|
| 83 |
+
for key in ['title', 'description', 'excerpt']:
|
| 84 |
+
if key in item and isinstance(item[key], str):
|
| 85 |
+
item[key] = item[key].replace('%', '%%')
|
| 86 |
+
# Set default image if missing or file doesn't exist
|
| 87 |
+
if 'image' in item:
|
| 88 |
+
image_path = os.path.join('static', 'images', item['image'])
|
| 89 |
+
if not os.path.exists(image_path):
|
| 90 |
+
item['image'] = 'default.jpg'
|
| 91 |
+
return data
|
| 92 |
+
except FileNotFoundError:
|
| 93 |
+
app.logger.warning(f"Data file not found: {filename}.json")
|
| 94 |
+
return None
|
| 95 |
+
except json.JSONDecodeError:
|
| 96 |
+
app.logger.error(f"Invalid JSON in file: {filename}.json")
|
| 97 |
+
return None
|
| 98 |
+
except Exception as e:
|
| 99 |
+
app.logger.error(f"Error loading {filename}.json: {str(e)}")
|
| 100 |
+
return None
|
| 101 |
+
|
| 102 |
+
def save_data(filename, data):
|
| 103 |
+
"""Save data to JSON file"""
|
| 104 |
+
try:
|
| 105 |
+
with open(f'data/{filename}.json', 'w', encoding='utf-8') as f:
|
| 106 |
+
json.dump(data, f, indent=2, ensure_ascii=False)
|
| 107 |
+
return True
|
| 108 |
+
except Exception as e:
|
| 109 |
+
app.logger.error(f"Error saving data: {str(e)}")
|
| 110 |
+
return False
|
| 111 |
+
|
| 112 |
+
def allowed_file(filename):
|
| 113 |
+
"""Check if a file has an allowed extension"""
|
| 114 |
+
return '.' in filename and \
|
| 115 |
+
filename.rsplit('.', 1)[1].lower() in app.config['ALLOWED_EXTENSIONS']
|
| 116 |
+
|
| 117 |
+
def format_date(value, format='medium', part=None):
|
| 118 |
+
"""Jinja2 filter for date formatting"""
|
| 119 |
+
try:
|
| 120 |
+
if format == 'full':
|
| 121 |
+
format_str = "%A, %d %B %Y"
|
| 122 |
+
elif format == 'medium':
|
| 123 |
+
format_str = "%d %b %Y"
|
| 124 |
+
else:
|
| 125 |
+
format_str = format
|
| 126 |
+
|
| 127 |
+
date_obj = datetime.strptime(value, "%Y-%m-%d")
|
| 128 |
+
formatted = date_obj.strftime(format_str)
|
| 129 |
+
|
| 130 |
+
if part == 'first':
|
| 131 |
+
return formatted.split()[0]
|
| 132 |
+
elif part == 'second':
|
| 133 |
+
parts = formatted.split()
|
| 134 |
+
return parts[1] if len(parts) > 1 else ''
|
| 135 |
+
|
| 136 |
+
return formatted
|
| 137 |
+
except Exception as e:
|
| 138 |
+
app.logger.error(f"Date formatting error: {str(e)}")
|
| 139 |
+
return value
|
| 140 |
+
|
| 141 |
+
def format_currency(value):
|
| 142 |
+
"""Jinja2 filter for currency formatting"""
|
| 143 |
+
return f"TZS {value:,.0f}"
|
| 144 |
+
|
| 145 |
+
def send_email(subject, recipients, body, html=None):
|
| 146 |
+
"""Send an email using Flask-Mail"""
|
| 147 |
+
try:
|
| 148 |
+
msg = Message(
|
| 149 |
+
subject=subject,
|
| 150 |
+
recipients=recipients,
|
| 151 |
+
body=body,
|
| 152 |
+
html=html
|
| 153 |
+
)
|
| 154 |
+
mail.send(msg)
|
| 155 |
+
return True
|
| 156 |
+
except Exception as e:
|
| 157 |
+
app.logger.error(f"Error sending email: {str(e)}")
|
| 158 |
+
return False
|
| 159 |
+
|
| 160 |
+
# Register filters
|
| 161 |
+
app.jinja_env.filters['format_date'] = format_date
|
| 162 |
+
app.jinja_env.filters['date'] = format_date
|
| 163 |
+
app.jinja_env.filters['format_currency'] = format_currency
|
| 164 |
+
app.jinja_env.filters['currency'] = format_currency
|
| 165 |
+
|
| 166 |
+
# Make helpers and configuration available to all templates
|
| 167 |
+
@app.context_processor
|
| 168 |
+
def inject_config():
|
| 169 |
+
"""Inject configuration and helper functions into all templates"""
|
| 170 |
+
return {
|
| 171 |
+
'school_name': app.config['SCHOOL_NAME'],
|
| 172 |
+
'school_motto': app.config['SCHOOL_MOTTO'],
|
| 173 |
+
'contact_email': app.config['CONTACT_EMAIL'],
|
| 174 |
+
'contact_phone': app.config['CONTACT_PHONE'],
|
| 175 |
+
'address': app.config['ADDRESS'],
|
| 176 |
+
'social_media': app.config['SOCIAL_MEDIA'],
|
| 177 |
+
'now': datetime.now(),
|
| 178 |
+
'load_data': load_data
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
# Language Handling
|
| 182 |
+
@app.before_request
|
| 183 |
+
def before_request():
|
| 184 |
+
"""Set language for the request"""
|
| 185 |
+
if 'lang' not in session:
|
| 186 |
+
session['lang'] = request.accept_languages.best_match(['en', 'sw'])
|
| 187 |
+
g.current_lang = session['lang']
|
| 188 |
+
|
| 189 |
+
@babel.localeselector
|
| 190 |
+
def get_locale():
|
| 191 |
+
"""Get the current locale"""
|
| 192 |
+
return session.get('lang', 'en')
|
| 193 |
+
|
| 194 |
+
@app.route('/set_lang/<lang>')
|
| 195 |
+
def set_lang(lang):
|
| 196 |
+
"""Change the application language"""
|
| 197 |
+
if lang in ['en', 'sw']:
|
| 198 |
+
session['lang'] = lang
|
| 199 |
+
return redirect(request.referrer or url_for('home'))
|
| 200 |
+
|
| 201 |
+
# Admin Routes
|
| 202 |
+
@app.route('/admin/login', methods=['GET', 'POST'])
|
| 203 |
+
def admin_login():
|
| 204 |
+
if session.get('admin_logged_in'):
|
| 205 |
+
return redirect(url_for('admin_dashboard'))
|
| 206 |
+
|
| 207 |
+
if request.method == 'POST':
|
| 208 |
+
username = request.form.get('username')
|
| 209 |
+
password = request.form.get('password')
|
| 210 |
+
|
| 211 |
+
if (username == app.config['ADMIN_USERNAME'] and
|
| 212 |
+
check_password_hash(app.config['ADMIN_PASSWORD'], password)):
|
| 213 |
+
session['admin_logged_in'] = True
|
| 214 |
+
session['admin_last_activity'] = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 215 |
+
next_url = request.args.get('next') or url_for('admin_dashboard')
|
| 216 |
+
return redirect(next_url)
|
| 217 |
+
else:
|
| 218 |
+
flash(_('Invalid username or password'), 'error')
|
| 219 |
+
|
| 220 |
+
return render_template('admin/login.html')
|
| 221 |
+
|
| 222 |
+
@app.route('/admin/logout')
|
| 223 |
+
@admin_required
|
| 224 |
+
def admin_logout():
|
| 225 |
+
session.pop('admin_logged_in', None)
|
| 226 |
+
session.pop('admin_last_activity', None)
|
| 227 |
+
flash(_('You have been logged out successfully'), 'success')
|
| 228 |
+
return redirect(url_for('admin_login'))
|
| 229 |
+
|
| 230 |
+
@app.route('/admin/dashboard')
|
| 231 |
+
@admin_required
|
| 232 |
+
def admin_dashboard():
|
| 233 |
+
applications = load_data('applications') or []
|
| 234 |
+
stats = {
|
| 235 |
+
'total': len(applications),
|
| 236 |
+
'submitted': len([a for a in applications if a.get('status') == 'submitted']),
|
| 237 |
+
'reviewed': len([a for a in applications if a.get('status') == 'reviewed']),
|
| 238 |
+
'accepted': len([a for a in applications if a.get('status') == 'accepted']),
|
| 239 |
+
'rejected': len([a for a in applications if a.get('status') == 'rejected'])
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
recent_apps = sorted(applications, key=lambda x: x.get('submission_date', ''), reverse=True)[:5]
|
| 243 |
+
|
| 244 |
+
return render_template('admin/dashboard.html', stats=stats, recent_apps=recent_apps)
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
@app.route('/admin/applications')
|
| 248 |
+
@admin_required
|
| 249 |
+
def admin_applications():
|
| 250 |
+
page = request.args.get('page', 1, type=int)
|
| 251 |
+
status_filter = request.args.get('status', 'all')
|
| 252 |
+
search_query = request.args.get('search', '')
|
| 253 |
+
sort_by = request.args.get('sort', 'submission_date')
|
| 254 |
+
sort_order = request.args.get('order', 'desc')
|
| 255 |
+
|
| 256 |
+
applications = load_data('applications') or []
|
| 257 |
+
|
| 258 |
+
# Apply filters
|
| 259 |
+
if status_filter != 'all':
|
| 260 |
+
applications = [a for a in applications if a['status'] == status_filter]
|
| 261 |
+
|
| 262 |
+
if search_query:
|
| 263 |
+
search_query = search_query.lower()
|
| 264 |
+
applications = [a for a in applications if
|
| 265 |
+
search_query in a['first_name'].lower() or
|
| 266 |
+
search_query in a['last_name'].lower() or
|
| 267 |
+
search_query in a['parent_name'].lower() or
|
| 268 |
+
search_query in a['id'].lower()]
|
| 269 |
+
|
| 270 |
+
# Sorting
|
| 271 |
+
reverse_order = sort_order == 'desc'
|
| 272 |
+
if sort_by in ['first_name', 'last_name', 'submission_date', 'status']:
|
| 273 |
+
applications.sort(key=lambda x: x.get(sort_by, ''), reverse=reverse_order)
|
| 274 |
+
|
| 275 |
+
# Pagination
|
| 276 |
+
per_page = app.config['APPLICATIONS_PER_PAGE']
|
| 277 |
+
total_pages = max(1, (len(applications) + per_page - 1) // per_page)
|
| 278 |
+
paginated_apps = applications[(page-1)*per_page : page*per_page]
|
| 279 |
+
|
| 280 |
+
return render_template('admin/applications.html',
|
| 281 |
+
applications=paginated_apps,
|
| 282 |
+
current_page=page,
|
| 283 |
+
total_pages=total_pages,
|
| 284 |
+
status_filter=status_filter,
|
| 285 |
+
search_query=search_query,
|
| 286 |
+
sort_by=sort_by,
|
| 287 |
+
sort_order=sort_order)
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
@app.route('/admin/application/<application_id>', methods=['GET', 'POST'])
|
| 294 |
+
@admin_required
|
| 295 |
+
def admin_application_detail(application_id):
|
| 296 |
+
# Load all applications
|
| 297 |
+
all_applications = load_data('applications') or []
|
| 298 |
+
|
| 299 |
+
# Find the current application
|
| 300 |
+
current_app = None
|
| 301 |
+
app_index = -1
|
| 302 |
+
for i, app_data in enumerate(all_applications):
|
| 303 |
+
if app_data['id'] == application_id:
|
| 304 |
+
current_app = app_data
|
| 305 |
+
app_index = i
|
| 306 |
+
break
|
| 307 |
+
|
| 308 |
+
if not current_app:
|
| 309 |
+
flash(_('Application not found'), 'error')
|
| 310 |
+
return redirect(url_for('admin_applications'))
|
| 311 |
+
|
| 312 |
+
if request.method == 'POST':
|
| 313 |
+
# Capture the current status before any changes
|
| 314 |
+
old_status = current_app.get('status')
|
| 315 |
+
|
| 316 |
+
# Get form data
|
| 317 |
+
new_status = request.form.get('status')
|
| 318 |
+
notes = request.form.get('admin_notes', '')
|
| 319 |
+
|
| 320 |
+
if new_status in ['submitted', 'reviewed', 'accepted', 'rejected', 'waitlisted']:
|
| 321 |
+
# Update application data
|
| 322 |
+
current_app['status'] = new_status
|
| 323 |
+
current_app['admin_notes'] = notes
|
| 324 |
+
current_app['review_date'] = datetime.now().strftime("%Y-%m-%d %H:%M")
|
| 325 |
+
current_app['reviewed_by'] = session.get('admin_username', 'admin')
|
| 326 |
+
|
| 327 |
+
# Handle file uploads
|
| 328 |
+
for file_field in ['additional_docs']:
|
| 329 |
+
file = request.files.get(file_field)
|
| 330 |
+
if file and allowed_file(file.filename):
|
| 331 |
+
filename = secure_filename(
|
| 332 |
+
f"{application_id}_{file_field}_{datetime.now().strftime('%Y%m%d%H%M%S')}{os.path.splitext(file.filename)[1]}"
|
| 333 |
+
)
|
| 334 |
+
upload_dir = os.path.join(app.config['ADMIN_UPLOAD_FOLDER'], 'application_docs')
|
| 335 |
+
os.makedirs(upload_dir, exist_ok=True)
|
| 336 |
+
file_path = os.path.join(upload_dir, filename)
|
| 337 |
+
file.save(file_path)
|
| 338 |
+
|
| 339 |
+
if 'admin_uploads' not in current_app:
|
| 340 |
+
current_app['admin_uploads'] = []
|
| 341 |
+
|
| 342 |
+
current_app['admin_uploads'].append({
|
| 343 |
+
'filename': filename,
|
| 344 |
+
'original_name': file.filename,
|
| 345 |
+
'upload_date': datetime.now().strftime("%Y-%m-%d %H:%M"),
|
| 346 |
+
'uploaded_by': session.get('admin_username', 'admin')
|
| 347 |
+
})
|
| 348 |
+
|
| 349 |
+
# Update the application in the list
|
| 350 |
+
if app_index >= 0:
|
| 351 |
+
all_applications[app_index] = current_app
|
| 352 |
+
|
| 353 |
+
# Save updated data
|
| 354 |
+
if save_data('applications', all_applications):
|
| 355 |
+
flash(_('Application updated successfully'), 'success')
|
| 356 |
+
|
| 357 |
+
# Send email notifications if status changed
|
| 358 |
+
if old_status != new_status:
|
| 359 |
+
# Send to applicant/parent
|
| 360 |
+
applicant_email = current_app.get('parent_email')
|
| 361 |
+
if applicant_email:
|
| 362 |
+
# Prepare email content based on status
|
| 363 |
+
if new_status == 'accepted':
|
| 364 |
+
subject = _("Congratulations! Your Application Has Been Accepted")
|
| 365 |
+
body = _(
|
| 366 |
+
f"Dear {current_app['first_name']} {current_app['last_name']},\n\n"
|
| 367 |
+
"We are pleased to inform you that your application to Munishi Secondary School has been accepted!\n\n"
|
| 368 |
+
"Congratulations! We look forward to welcoming you to our school community.\n\n"
|
| 369 |
+
"Next Steps:\n"
|
| 370 |
+
"1. Please log in to your application portal to review the acceptance letter\n"
|
| 371 |
+
"2. Complete the enrollment forms by [date]\n"
|
| 372 |
+
"3. Submit any remaining documents\n\n"
|
| 373 |
+
"If you have any questions, please contact our admissions office at admissions@munishischool.ac.tz\n\n"
|
| 374 |
+
"Sincerely,\n"
|
| 375 |
+
"The Admissions Committee\n"
|
| 376 |
+
"Munishi Secondary School"
|
| 377 |
+
)
|
| 378 |
+
elif new_status == 'rejected':
|
| 379 |
+
subject = _("Update on Your Application to Munishi Secondary School")
|
| 380 |
+
body = _(
|
| 381 |
+
f"Dear {current_app['first_name']} {current_app['last_name']},\n\n"
|
| 382 |
+
"Thank you for applying to Munishi Secondary School.\n\n"
|
| 383 |
+
"After careful consideration, we regret to inform you that we are unable to offer you a place at this time.\n\n"
|
| 384 |
+
"We appreciate your interest in our school and wish you the best in your educational journey.\n\n"
|
| 385 |
+
"Sincerely,\n"
|
| 386 |
+
"The Admissions Committee\n"
|
| 387 |
+
"Munishi Secondary School"
|
| 388 |
+
)
|
| 389 |
+
elif new_status == 'waitlisted':
|
| 390 |
+
subject = _("Update on Your Application to Munishi Secondary School")
|
| 391 |
+
body = _(
|
| 392 |
+
f"Dear {current_app['first_name']} {current_app['last_name']},\n\n"
|
| 393 |
+
"Thank you for applying to Munishi Secondary School.\n\n"
|
| 394 |
+
"We have received a large number of applications this year. While we are not able to offer you a place at this time, "
|
| 395 |
+
"your application has been placed on our waitlist. We will contact you if a place becomes available.\n\n"
|
| 396 |
+
"We appreciate your patience and understanding.\n\n"
|
| 397 |
+
"Sincerely,\n"
|
| 398 |
+
"The Admissions Committee\n"
|
| 399 |
+
"Munishi Secondary School"
|
| 400 |
+
)
|
| 401 |
+
elif new_status == 'reviewed':
|
| 402 |
+
subject = _("Update on Your Application to Munishi Secondary School")
|
| 403 |
+
body = _(
|
| 404 |
+
f"Dear {current_app['first_name']} {current_app['last_name']},\n\n"
|
| 405 |
+
"This email is to inform you that your application to Munishi Secondary School has been reviewed.\n\n"
|
| 406 |
+
"Our admissions committee has examined your application materials, and we are currently in the final stages "
|
| 407 |
+
"of our decision-making process.\n\n"
|
| 408 |
+
"We will notify you as soon as a final decision has been made. Thank you for your patience.\n\n"
|
| 409 |
+
"Sincerely,\n"
|
| 410 |
+
"The Admissions Committee\n"
|
| 411 |
+
"Munishi Secondary School"
|
| 412 |
+
)
|
| 413 |
+
else: # submitted (shouldn't happen, but just in case)
|
| 414 |
+
subject = _("Application Update")
|
| 415 |
+
body = _(
|
| 416 |
+
f"Dear {current_app['first_name']} {current_app['last_name']},\n\n"
|
| 417 |
+
"Your application status has been updated to: Submitted\n\n"
|
| 418 |
+
"This is usually an initial status when we receive your application. "
|
| 419 |
+
"We will begin reviewing it shortly.\n\n"
|
| 420 |
+
"Sincerely,\n"
|
| 421 |
+
"The Admissions Committee\n"
|
| 422 |
+
"Munishi Secondary School"
|
| 423 |
+
)
|
| 424 |
+
|
| 425 |
+
send_email(subject, [applicant_email], body)
|
| 426 |
+
|
| 427 |
+
# Send to admin
|
| 428 |
+
admin_subject = _("Application Status Updated: {} {}").format(
|
| 429 |
+
current_app['first_name'], current_app['last_name'])
|
| 430 |
+
admin_body = _(
|
| 431 |
+
f"Application ID: {application_id}\n"
|
| 432 |
+
f"Student: {current_app['first_name']} {current_app['last_name']}\n"
|
| 433 |
+
f"Parent Email: {current_app.get('parent_email', 'N/A')}\n"
|
| 434 |
+
f"Status changed from {old_status} to: {new_status}\n\n"
|
| 435 |
+
"Review the application: {}\n"
|
| 436 |
+
).format(url_for('admin_application_detail', application_id=application_id, _external=True))
|
| 437 |
+
send_email(admin_subject, [app.config['ADMIN_EMAIL']], admin_body)
|
| 438 |
+
else:
|
| 439 |
+
flash(_('Failed to save application update. Please try again.'), 'error')
|
| 440 |
+
|
| 441 |
+
return redirect(url_for('admin_application_detail', application_id=application_id))
|
| 442 |
+
|
| 443 |
+
# Document fields to display
|
| 444 |
+
document_fields = [
|
| 445 |
+
'birth_certificate', 'academic_records',
|
| 446 |
+
'recommendation_letter', 'photo'
|
| 447 |
+
]
|
| 448 |
+
|
| 449 |
+
# Get all uploaded documents
|
| 450 |
+
documents = []
|
| 451 |
+
for field in document_fields:
|
| 452 |
+
if current_app.get(field):
|
| 453 |
+
documents.append({
|
| 454 |
+
'name': field.replace('_', ' ').title(),
|
| 455 |
+
'filename': current_app[field],
|
| 456 |
+
'path': url_for('download_application_file', filename=current_app[field])
|
| 457 |
+
})
|
| 458 |
+
|
| 459 |
+
# Get admin uploaded documents
|
| 460 |
+
admin_documents = []
|
| 461 |
+
for doc in current_app.get('admin_uploads', []):
|
| 462 |
+
admin_documents.append({
|
| 463 |
+
'name': doc['original_name'],
|
| 464 |
+
'uploaded_by': doc['uploaded_by'],
|
| 465 |
+
'upload_date': doc['upload_date'],
|
| 466 |
+
'path': url_for('download_admin_file', filename=doc['filename'])
|
| 467 |
+
})
|
| 468 |
+
|
| 469 |
+
return render_template('admin/application_detail.html',
|
| 470 |
+
application=current_app,
|
| 471 |
+
documents=documents,
|
| 472 |
+
admin_documents=admin_documents)
|
| 473 |
+
|
| 474 |
+
|
| 475 |
+
|
| 476 |
+
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
@app.route('/admin/settings', methods=['GET', 'POST'])
|
| 480 |
+
@admin_required
|
| 481 |
+
def admin_settings():
|
| 482 |
+
if request.method == 'POST':
|
| 483 |
+
current_password = request.form.get('current_password')
|
| 484 |
+
new_password = request.form.get('new_password')
|
| 485 |
+
confirm_password = request.form.get('confirm_password')
|
| 486 |
+
|
| 487 |
+
if not check_password_hash(app.config['ADMIN_PASSWORD'], current_password):
|
| 488 |
+
flash(_('Current password is incorrect'), 'error')
|
| 489 |
+
elif new_password != confirm_password:
|
| 490 |
+
flash(_('New passwords do not match'), 'error')
|
| 491 |
+
elif len(new_password) < 8:
|
| 492 |
+
flash(_('Password must be at least 8 characters long'), 'error')
|
| 493 |
+
else:
|
| 494 |
+
app.config['ADMIN_PASSWORD'] = generate_password_hash(new_password)
|
| 495 |
+
flash(_('Password updated successfully'), 'success')
|
| 496 |
+
return redirect(url_for('admin_settings'))
|
| 497 |
+
|
| 498 |
+
return render_template('admin/settings.html')
|
| 499 |
+
|
| 500 |
+
@app.route('/admin/content')
|
| 501 |
+
@admin_required
|
| 502 |
+
def admin_content():
|
| 503 |
+
# Get all content types available for management
|
| 504 |
+
content_types = [
|
| 505 |
+
{'name': 'News', 'endpoint': 'news', 'count': len(load_data('news') or [])},
|
| 506 |
+
{'name': 'Events', 'endpoint': 'events', 'count': len(load_data('events') or [])},
|
| 507 |
+
{'name': 'Faculty', 'endpoint': 'faculty', 'count': len(load_data('faculty') or [])},
|
| 508 |
+
{'name': 'Alumni', 'endpoint': 'alumni', 'count': len(load_data('alumni') or [])},
|
| 509 |
+
{'name': 'Clubs', 'endpoint': 'clubs', 'count': len(load_data('clubs') or [])}
|
| 510 |
+
]
|
| 511 |
+
|
| 512 |
+
return render_template('admin/content.html', content_types=content_types)
|
| 513 |
+
|
| 514 |
+
@app.route('/admin/content/<content_type>', methods=['GET', 'POST'])
|
| 515 |
+
@admin_required
|
| 516 |
+
def manage_content(content_type):
|
| 517 |
+
if content_type not in ['news', 'events', 'faculty', 'alumni', 'clubs']:
|
| 518 |
+
flash(_('Invalid content type'), 'error')
|
| 519 |
+
return redirect(url_for('admin_content'))
|
| 520 |
+
|
| 521 |
+
data = load_data(content_type) or []
|
| 522 |
+
|
| 523 |
+
if request.method == 'POST':
|
| 524 |
+
# Handle content creation/update
|
| 525 |
+
action = request.form.get('action')
|
| 526 |
+
item_id = request.form.get('id')
|
| 527 |
+
|
| 528 |
+
if action == 'delete':
|
| 529 |
+
# Delete item
|
| 530 |
+
data = [item for item in data if item.get('id') != item_id]
|
| 531 |
+
save_data(content_type, data)
|
| 532 |
+
flash(_('Item deleted successfully'), 'success')
|
| 533 |
+
return redirect(url_for('manage_content', content_type=content_type))
|
| 534 |
+
|
| 535 |
+
elif action in ['create', 'update']:
|
| 536 |
+
# Validate required fields
|
| 537 |
+
required_fields = {
|
| 538 |
+
'news': ['title', 'content', 'date'],
|
| 539 |
+
'events': ['title', 'date', 'location'],
|
| 540 |
+
'faculty': ['name', 'position', 'department'],
|
| 541 |
+
'alumni': ['name', 'graduation_year', 'current_position'],
|
| 542 |
+
'clubs': ['name', 'description', 'meeting_schedule']
|
| 543 |
+
}.get(content_type, [])
|
| 544 |
+
|
| 545 |
+
form_data = {k: request.form.get(k, '').strip() for k in request.form}
|
| 546 |
+
|
| 547 |
+
if not all(form_data.get(field) for field in required_fields):
|
| 548 |
+
flash(_('Please fill in all required fields'), 'error')
|
| 549 |
+
return redirect(url_for('manage_content', content_type=content_type))
|
| 550 |
+
|
| 551 |
+
# Handle file upload
|
| 552 |
+
image_file = request.files.get('image')
|
| 553 |
+
image_filename = None
|
| 554 |
+
if image_file and allowed_file(image_file.filename):
|
| 555 |
+
image_filename = secure_filename(f"{content_type}_{datetime.now().strftime('%Y%m%d%H%M%S')}_{image_file.filename}")
|
| 556 |
+
upload_dir = os.path.join(app.config['ADMIN_UPLOAD_FOLDER'], content_type)
|
| 557 |
+
os.makedirs(upload_dir, exist_ok=True)
|
| 558 |
+
image_file.save(os.path.join(upload_dir, image_filename))
|
| 559 |
+
|
| 560 |
+
if action == 'create':
|
| 561 |
+
# Create new item
|
| 562 |
+
new_item = {
|
| 563 |
+
'id': str(uuid.uuid4()),
|
| 564 |
+
'created_at': datetime.now().strftime("%Y-%m-%d %H:%M"),
|
| 565 |
+
'created_by': session.get('admin_username', 'admin'),
|
| 566 |
+
**form_data
|
| 567 |
+
}
|
| 568 |
+
if image_filename:
|
| 569 |
+
new_item['image'] = image_filename
|
| 570 |
+
data.append(new_item)
|
| 571 |
+
flash(_('Item created successfully'), 'success')
|
| 572 |
+
else:
|
| 573 |
+
# Update existing item
|
| 574 |
+
for item in data:
|
| 575 |
+
if item.get('id') == item_id:
|
| 576 |
+
item.update({
|
| 577 |
+
'updated_at': datetime.now().strftime("%Y-%m-%d %H:%M"),
|
| 578 |
+
'updated_by': session.get('admin_username', 'admin'),
|
| 579 |
+
**{k: v for k, v in form_data.items() if v}
|
| 580 |
+
})
|
| 581 |
+
if image_filename:
|
| 582 |
+
item['image'] = image_filename
|
| 583 |
+
break
|
| 584 |
+
flash(_('Item updated successfully'), 'success')
|
| 585 |
+
|
| 586 |
+
save_data(content_type, data)
|
| 587 |
+
return redirect(url_for('manage_content', content_type=content_type))
|
| 588 |
+
|
| 589 |
+
return render_template('admin/manage_content.html',
|
| 590 |
+
content_type=content_type,
|
| 591 |
+
items=data,
|
| 592 |
+
fields=get_content_fields(content_type))
|
| 593 |
+
|
| 594 |
+
def get_content_fields(content_type):
|
| 595 |
+
"""Return field configuration for different content types"""
|
| 596 |
+
fields = {
|
| 597 |
+
'news': [
|
| 598 |
+
{'name': 'title', 'type': 'text', 'required': True, 'label': _('Title')},
|
| 599 |
+
{'name': 'content', 'type': 'textarea', 'required': True, 'label': _('Content')},
|
| 600 |
+
{'name': 'excerpt', 'type': 'textarea', 'required': False, 'label': _('Excerpt')},
|
| 601 |
+
{'name': 'date', 'type': 'date', 'required': True, 'label': _('Date')},
|
| 602 |
+
{'name': 'image', 'type': 'file', 'required': False, 'label': _('Featured Image')},
|
| 603 |
+
{'name': 'author', 'type': 'text', 'required': False, 'label': _('Author')},
|
| 604 |
+
{'name': 'tags', 'type': 'text', 'required': False, 'label': _('Tags')}
|
| 605 |
+
],
|
| 606 |
+
'events': [
|
| 607 |
+
{'name': 'title', 'type': 'text', 'required': True, 'label': _('Title')},
|
| 608 |
+
{'name': 'description', 'type': 'textarea', 'required': True, 'label': _('Description')},
|
| 609 |
+
{'name': 'date', 'type': 'date', 'required': True, 'label': _('Date')},
|
| 610 |
+
{'name': 'time', 'type': 'text', 'required': False, 'label': _('Time')},
|
| 611 |
+
{'name': 'location', 'type': 'text', 'required': True, 'label': _('Location')},
|
| 612 |
+
{'name': 'image', 'type': 'file', 'required': False, 'label': _('Featured Image')},
|
| 613 |
+
{'name': 'registration_link', 'type': 'url', 'required': False, 'label': _('Registration Link')}
|
| 614 |
+
],
|
| 615 |
+
'faculty': [
|
| 616 |
+
{'name': 'name', 'type': 'text', 'required': True, 'label': _('Name')},
|
| 617 |
+
{'name': 'position', 'type': 'text', 'required': True, 'label': _('Position')},
|
| 618 |
+
{'name': 'department', 'type': 'text', 'required': True, 'label': _('Department')},
|
| 619 |
+
{'name': 'bio', 'type': 'textarea', 'required': False, 'label': _('Biography')},
|
| 620 |
+
{'name': 'image', 'type': 'file', 'required': False, 'label': _('Photo')},
|
| 621 |
+
{'name': 'email', 'type': 'email', 'required': False, 'label': _('Email')},
|
| 622 |
+
{'name': 'phone', 'type': 'tel', 'required': False, 'label': _('Phone')}
|
| 623 |
+
]
|
| 624 |
+
}
|
| 625 |
+
return fields.get(content_type, [])
|
| 626 |
+
|
| 627 |
+
# Admin API Endpoints
|
| 628 |
+
@app.route('/admin/api/application/<application_id>/status', methods=['POST'])
|
| 629 |
+
@admin_required
|
| 630 |
+
def update_application_status(application_id):
|
| 631 |
+
applications = load_data('applications') or []
|
| 632 |
+
application = next((app for app in applications if app['id'] == application_id), None)
|
| 633 |
+
|
| 634 |
+
if not application:
|
| 635 |
+
return jsonify({'success': False, 'message': 'Application not found'}), 404
|
| 636 |
+
|
| 637 |
+
new_status = request.json.get('status')
|
| 638 |
+
if new_status not in ['submitted', 'reviewed', 'accepted', 'rejected', 'waitlisted']:
|
| 639 |
+
return jsonify({'success': False, 'message': 'Invalid status'}), 400
|
| 640 |
+
|
| 641 |
+
# Update application
|
| 642 |
+
for app in applications:
|
| 643 |
+
if app['id'] == application_id:
|
| 644 |
+
old_status = app['status']
|
| 645 |
+
app['status'] = new_status
|
| 646 |
+
app['review_date'] = datetime.now().strftime("%Y-%m-%d %H:%M")
|
| 647 |
+
app['reviewed_by'] = session.get('admin_username', 'admin')
|
| 648 |
+
break
|
| 649 |
+
|
| 650 |
+
save_data('applications', applications)
|
| 651 |
+
|
| 652 |
+
# Send email notification if status changed to accepted
|
| 653 |
+
if new_status == 'accepted' and new_status != old_status:
|
| 654 |
+
# Send to applicant
|
| 655 |
+
applicant_email = application.get('parent_email')
|
| 656 |
+
if applicant_email:
|
| 657 |
+
subject = _("Your Application to Munishi Secondary School Has Been Accepted!")
|
| 658 |
+
body = _(
|
| 659 |
+
f"Dear {application['first_name']} {application['last_name']},\n\n"
|
| 660 |
+
"We are pleased to inform you that your application to Munishi Secondary School has been accepted!\n\n"
|
| 661 |
+
"Congratulations! We look forward to welcoming you to our school community.\n\n"
|
| 662 |
+
"Next Steps:\n"
|
| 663 |
+
"1. Please log in to your application portal to review the acceptance letter\n"
|
| 664 |
+
"2. Complete the enrollment forms by [date]\n"
|
| 665 |
+
"3. Submit any remaining documents\n\n"
|
| 666 |
+
"If you have any questions, please contact our admissions office at admissions@munishischool.ac.tz\n\n"
|
| 667 |
+
"Sincerely,\n"
|
| 668 |
+
"The Admissions Committee\n"
|
| 669 |
+
"Munishi Secondary School"
|
| 670 |
+
)
|
| 671 |
+
send_email(subject, [applicant_email], body)
|
| 672 |
+
|
| 673 |
+
# Send to admin
|
| 674 |
+
admin_subject = _("Application Accepted: {} {}").format(
|
| 675 |
+
application['first_name'], application['last_name'])
|
| 676 |
+
admin_body = _(
|
| 677 |
+
f"Application ID: {application_id}\n"
|
| 678 |
+
f"Student: {application['first_name']} {application['last_name']}\n"
|
| 679 |
+
f"Parent Email: {application.get('parent_email', 'N/A')}\n"
|
| 680 |
+
f"Status changed to: Accepted\n\n"
|
| 681 |
+
"Review the application: {}\n"
|
| 682 |
+
).format(url_for('admin_application_detail', application_id=application_id, _external=True))
|
| 683 |
+
send_email(admin_subject, [app.config['ADMIN_EMAIL']], admin_body)
|
| 684 |
+
|
| 685 |
+
return jsonify({'success': True, 'new_status': new_status})
|
| 686 |
+
|
| 687 |
+
@app.route('/admin/api/application/<application_id>/notes', methods=['POST'])
|
| 688 |
+
@admin_required
|
| 689 |
+
def update_application_notes(application_id):
|
| 690 |
+
applications = load_data('applications') or []
|
| 691 |
+
application = next((app for app in applications if app['id'] == application_id), None)
|
| 692 |
+
|
| 693 |
+
if not application:
|
| 694 |
+
return jsonify({'success': False, 'message': 'Application not found'}), 404
|
| 695 |
+
|
| 696 |
+
notes = request.json.get('notes', '')
|
| 697 |
+
|
| 698 |
+
# Update application
|
| 699 |
+
for app in applications:
|
| 700 |
+
if app['id'] == application_id:
|
| 701 |
+
app['admin_notes'] = notes
|
| 702 |
+
break
|
| 703 |
+
|
| 704 |
+
save_data('applications', applications)
|
| 705 |
+
return jsonify({'success': True})
|
| 706 |
+
|
| 707 |
+
# Main Routes
|
| 708 |
+
@app.route('/')
|
| 709 |
+
def home():
|
| 710 |
+
"""Home page route"""
|
| 711 |
+
news_data = load_data('news')
|
| 712 |
+
events_data = load_data('events')
|
| 713 |
+
highlights_data = load_data('highlights')
|
| 714 |
+
|
| 715 |
+
news = news_data[:3] if news_data else []
|
| 716 |
+
events = events_data[:3] if events_data else []
|
| 717 |
+
highlights = highlights_data[:3] if highlights_data else []
|
| 718 |
+
|
| 719 |
+
return render_template('home.html',
|
| 720 |
+
news=news,
|
| 721 |
+
events=events,
|
| 722 |
+
highlights=highlights)
|
| 723 |
+
|
| 724 |
+
@app.route('/about')
|
| 725 |
+
def about():
|
| 726 |
+
"""About page route"""
|
| 727 |
+
return render_template('about.html',
|
| 728 |
+
history=load_data('history') or {},
|
| 729 |
+
mission=load_data('mission') or {},
|
| 730 |
+
leadership=load_data('leadership') or [],
|
| 731 |
+
facilities=load_data('facilities') or [],
|
| 732 |
+
faculty=load_data('faculty') or {
|
| 733 |
+
'stats': {'teachers': 0, 'degrees': 0, 'training': 0},
|
| 734 |
+
'department_heads': []
|
| 735 |
+
})
|
| 736 |
+
|
| 737 |
+
@app.route('/academics')
|
| 738 |
+
def academics():
|
| 739 |
+
"""Academics page route"""
|
| 740 |
+
return render_template('academics.html',
|
| 741 |
+
subjects=load_data('subjects') or [],
|
| 742 |
+
results=load_data('results') or {},
|
| 743 |
+
calendar=load_data('calendar') or [])
|
| 744 |
+
|
| 745 |
+
# Admissions Routes
|
| 746 |
+
@app.route('/admissions')
|
| 747 |
+
def admissions():
|
| 748 |
+
"""Admissions main page"""
|
| 749 |
+
return render_template('admissions.html',
|
| 750 |
+
process={
|
| 751 |
+
'steps': load_data('admissions_steps') or [],
|
| 752 |
+
'requirements': load_data('admissions_requirements') or []
|
| 753 |
+
},
|
| 754 |
+
fees=load_data('fee_structure') or [],
|
| 755 |
+
scholarships=load_data('scholarships') or [],
|
| 756 |
+
downloads=load_data('admissions_downloads') or [])
|
| 757 |
+
|
| 758 |
+
@app.route('/admissions/apply', methods=['GET', 'POST'])
|
| 759 |
+
def admissions_apply():
|
| 760 |
+
"""Admissions application form"""
|
| 761 |
+
if request.method == 'POST':
|
| 762 |
+
# Validate required fields
|
| 763 |
+
required_fields = [
|
| 764 |
+
'first_name', 'last_name', 'birthdate', 'gender',
|
| 765 |
+
'parent_name', 'parent_email', 'parent_phone'
|
| 766 |
+
]
|
| 767 |
+
if not all(request.form.get(field) for field in required_fields):
|
| 768 |
+
flash(_('Please fill in all required fields'), 'error')
|
| 769 |
+
return redirect(url_for('admissions_apply'))
|
| 770 |
+
|
| 771 |
+
# Create application data
|
| 772 |
+
student_data = {
|
| 773 |
+
'id': str(uuid.uuid4()),
|
| 774 |
+
'first_name': request.form.get('first_name'),
|
| 775 |
+
'last_name': request.form.get('last_name'),
|
| 776 |
+
'birthdate': request.form.get('birthdate'),
|
| 777 |
+
'gender': request.form.get('gender'),
|
| 778 |
+
'nationality': request.form.get('nationality', ''),
|
| 779 |
+
'current_school': request.form.get('current_school', ''),
|
| 780 |
+
'applying_grade': request.form.get('applying_grade', ''),
|
| 781 |
+
'parent_name': request.form.get('parent_name'),
|
| 782 |
+
'parent_email': request.form.get('parent_email'),
|
| 783 |
+
'parent_phone': request.form.get('parent_phone'),
|
| 784 |
+
'address': request.form.get('address', ''),
|
| 785 |
+
'emergency_contact': request.form.get('emergency_contact', ''),
|
| 786 |
+
'medical_conditions': request.form.get('medical_conditions', ''),
|
| 787 |
+
'previous_schools': request.form.get('previous_schools', ''),
|
| 788 |
+
'extracurriculars': request.form.get('extracurriculars', ''),
|
| 789 |
+
'why_join': request.form.get('why_join', ''),
|
| 790 |
+
'status': 'submitted',
|
| 791 |
+
'submission_date': datetime.now().strftime("%Y-%m-%d %H:%M"),
|
| 792 |
+
}
|
| 793 |
+
|
| 794 |
+
# Handle file uploads
|
| 795 |
+
uploaded_files = {}
|
| 796 |
+
for file_field in ['birth_certificate', 'academic_records', 'recommendation_letter', 'photo']:
|
| 797 |
+
file = request.files.get(file_field)
|
| 798 |
+
if file and allowed_file(file.filename):
|
| 799 |
+
filename = secure_filename(f"{student_data['id']}_{file_field}{os.path.splitext(file.filename)[1]}")
|
| 800 |
+
upload_dir = os.path.join(app.config['UPLOAD_FOLDER'], 'applications')
|
| 801 |
+
os.makedirs(upload_dir, exist_ok=True)
|
| 802 |
+
file_path = os.path.join(upload_dir, filename)
|
| 803 |
+
file.save(file_path)
|
| 804 |
+
uploaded_files[file_field] = filename
|
| 805 |
+
|
| 806 |
+
# Save application data
|
| 807 |
+
applications = load_data('applications') or []
|
| 808 |
+
full_data = {**student_data, **uploaded_files}
|
| 809 |
+
applications.append(full_data)
|
| 810 |
+
save_data('applications', applications)
|
| 811 |
+
|
| 812 |
+
# Send email notifications
|
| 813 |
+
# To applicant
|
| 814 |
+
applicant_subject = _("Application Submitted to Munishi Secondary School")
|
| 815 |
+
applicant_body = _(
|
| 816 |
+
f"Dear {student_data['first_name']} {student_data['last_name']},\n\n"
|
| 817 |
+
"Thank you for submitting your application to Munishi Secondary School!\n\n"
|
| 818 |
+
f"Your application ID is: {student_data['id']}\n"
|
| 819 |
+
"We will review your application and contact you within 5-7 business days.\n\n"
|
| 820 |
+
"If you have any questions, please contact our admissions office at admissions@munishischool.ac.tz\n\n"
|
| 821 |
+
"Sincerely,\n"
|
| 822 |
+
"The Admissions Committee\n"
|
| 823 |
+
"Munishi Secondary School"
|
| 824 |
+
)
|
| 825 |
+
send_email(applicant_subject, [student_data['parent_email']], applicant_body)
|
| 826 |
+
|
| 827 |
+
# To admin
|
| 828 |
+
admin_subject = _("New Application Submitted: {} {}").format(
|
| 829 |
+
student_data['first_name'], student_data['last_name'])
|
| 830 |
+
admin_body = _(
|
| 831 |
+
f"Application ID: {student_data['id']}\n"
|
| 832 |
+
f"Student: {student_data['first_name']} {student_data['last_name']}\n"
|
| 833 |
+
f"Applying Grade: {student_data.get('applying_grade', 'N/A')}\n"
|
| 834 |
+
f"Parent: {student_data['parent_name']}\n"
|
| 835 |
+
f"Email: {student_data['parent_email']}\n"
|
| 836 |
+
f"Phone: {student_data['parent_phone']}\n\n"
|
| 837 |
+
"Review the application: {}\n"
|
| 838 |
+
).format(url_for('admin_application_detail', application_id=student_data['id'], _external=True))
|
| 839 |
+
send_email(admin_subject, [app.config['ADMIN_EMAIL']], admin_body)
|
| 840 |
+
|
| 841 |
+
flash(_('Application submitted successfully!'), 'success')
|
| 842 |
+
return redirect(url_for('application_success', application_id=student_data['id']))
|
| 843 |
+
|
| 844 |
+
return render_template('admissions/apply.html')
|
| 845 |
+
|
| 846 |
+
@app.route('/admissions/success/<application_id>')
|
| 847 |
+
def application_success(application_id):
|
| 848 |
+
"""Application submission success page"""
|
| 849 |
+
return render_template('admissions/application_success.html',
|
| 850 |
+
application_id=application_id)
|
| 851 |
+
|
| 852 |
+
@app.route('/admissions/view/<application_id>')
|
| 853 |
+
def view_application(application_id):
|
| 854 |
+
"""View submitted application (admin view)"""
|
| 855 |
+
applications = load_data('applications') or []
|
| 856 |
+
application = next((app for app in applications if app['id'] == application_id), None)
|
| 857 |
+
|
| 858 |
+
if not application:
|
| 859 |
+
return render_template('404.html'), 404
|
| 860 |
+
|
| 861 |
+
return render_template('admissions/view_application.html',
|
| 862 |
+
application=application)
|
| 863 |
+
|
| 864 |
+
# Other Routes
|
| 865 |
+
@app.route('/student-life')
|
| 866 |
+
def student_life():
|
| 867 |
+
"""Student life page route"""
|
| 868 |
+
return render_template('student_life.html',
|
| 869 |
+
clubs=load_data('clubs') or [],
|
| 870 |
+
sports={
|
| 871 |
+
'competitive': load_data('sports_competitive') or [],
|
| 872 |
+
'recreational': load_data('sports_recreational') or [],
|
| 873 |
+
'achievements': load_data('sports_achievements') or []
|
| 874 |
+
},
|
| 875 |
+
arts={
|
| 876 |
+
'performing': load_data('arts_performing') or [],
|
| 877 |
+
'visual': load_data('arts_visual') or []
|
| 878 |
+
},
|
| 879 |
+
activities=load_data('activities') or [],
|
| 880 |
+
blogs=load_data('blogs') or [])
|
| 881 |
+
|
| 882 |
+
@app.route('/safeguarding')
|
| 883 |
+
def safeguarding():
|
| 884 |
+
"""Safeguarding page route"""
|
| 885 |
+
return render_template('safeguarding.html',
|
| 886 |
+
policies=load_data('policies') or [])
|
| 887 |
+
|
| 888 |
+
@app.route('/news')
|
| 889 |
+
def news():
|
| 890 |
+
"""News listing page route"""
|
| 891 |
+
return render_template('news.html',
|
| 892 |
+
news=load_data('news') or [])
|
| 893 |
+
|
| 894 |
+
@app.route('/news/<slug>')
|
| 895 |
+
def news_detail(slug):
|
| 896 |
+
"""News detail page route"""
|
| 897 |
+
news_items = load_data('news') or []
|
| 898 |
+
item = next((item for item in news_items if item.get('slug') == slug), None)
|
| 899 |
+
if not item:
|
| 900 |
+
return render_template('404.html'), 404
|
| 901 |
+
return render_template('news_detail.html', item=item)
|
| 902 |
+
|
| 903 |
+
@app.route('/events')
|
| 904 |
+
def events():
|
| 905 |
+
"""Events listing page route"""
|
| 906 |
+
return render_template('events.html',
|
| 907 |
+
events=load_data('events') or [])
|
| 908 |
+
|
| 909 |
+
@app.route('/alumni')
|
| 910 |
+
def alumni():
|
| 911 |
+
"""Alumni page route"""
|
| 912 |
+
return render_template('alumni.html',
|
| 913 |
+
alumni=load_data('alumni') or [])
|
| 914 |
+
|
| 915 |
+
|
| 916 |
+
|
| 917 |
+
|
| 918 |
+
# Add these routes in the "Admin Routes" section
|
| 919 |
+
|
| 920 |
+
@app.route('/download/application/<filename>')
|
| 921 |
+
@admin_required
|
| 922 |
+
def download_application_file(filename):
|
| 923 |
+
"""Download an application file uploaded by the applicant"""
|
| 924 |
+
directory = os.path.join(app.config['UPLOAD_FOLDER'], 'applications')
|
| 925 |
+
return send_from_directory(directory, filename, as_attachment=True)
|
| 926 |
+
|
| 927 |
+
@app.route('/download/admin/<filename>')
|
| 928 |
+
@admin_required
|
| 929 |
+
def download_admin_file(filename):
|
| 930 |
+
"""Download an admin uploaded file for an application"""
|
| 931 |
+
directory = os.path.join(app.config['ADMIN_UPLOAD_FOLDER'], 'application_docs')
|
| 932 |
+
return send_from_directory(directory, filename, as_attachment=True)
|
| 933 |
+
|
| 934 |
+
|
| 935 |
+
|
| 936 |
+
|
| 937 |
+
@app.route('/contact', methods=['GET', 'POST'])
|
| 938 |
+
def contact():
|
| 939 |
+
"""Contact page route with form handling"""
|
| 940 |
+
contact_data = load_data('contact') or {
|
| 941 |
+
'locations': [],
|
| 942 |
+
'departments': [],
|
| 943 |
+
'office_hours': {}
|
| 944 |
+
}
|
| 945 |
+
|
| 946 |
+
if request.method == 'POST':
|
| 947 |
+
name = request.form.get('name', '').strip()
|
| 948 |
+
email = request.form.get('email', '').strip()
|
| 949 |
+
subject = request.form.get('subject', 'No Subject').strip()
|
| 950 |
+
message = request.form.get('message', '').strip()
|
| 951 |
+
|
| 952 |
+
# Validate form data
|
| 953 |
+
if not all([name, email, message]):
|
| 954 |
+
flash(_('Please fill in all required fields'), 'error')
|
| 955 |
+
return redirect(url_for('contact'))
|
| 956 |
+
|
| 957 |
+
if '@' not in email or '.' not in email:
|
| 958 |
+
flash(_('Please enter a valid email address'), 'error')
|
| 959 |
+
return redirect(url_for('contact'))
|
| 960 |
+
|
| 961 |
+
# Process the message (in production: save to DB and send email)
|
| 962 |
+
print(f"New contact message from {name} ({email}): {message}")
|
| 963 |
+
|
| 964 |
+
# Send email to admin
|
| 965 |
+
admin_subject = f"New Contact Form Submission: {subject}"
|
| 966 |
+
admin_body = (
|
| 967 |
+
f"Name: {name}\n"
|
| 968 |
+
f"Email: {email}\n"
|
| 969 |
+
f"Subject: {subject}\n\n"
|
| 970 |
+
f"Message:\n{message}"
|
| 971 |
+
)
|
| 972 |
+
send_email(admin_subject, [app.config['ADMIN_EMAIL']], admin_body)
|
| 973 |
+
|
| 974 |
+
flash(_('Your message has been sent successfully!'), 'success')
|
| 975 |
+
return redirect(url_for('contact_success'))
|
| 976 |
+
|
| 977 |
+
return render_template('contact.html',
|
| 978 |
+
locations=contact_data.get('locations', []),
|
| 979 |
+
departments=contact_data.get('departments', []),
|
| 980 |
+
office_hours=contact_data.get('office_hours', {}))
|
| 981 |
+
|
| 982 |
+
@app.route('/contact/success')
|
| 983 |
+
def contact_success():
|
| 984 |
+
"""Contact success page"""
|
| 985 |
+
return render_template('contact_success.html')
|
| 986 |
+
|
| 987 |
+
@app.route('/downloads/<category>/<filename>')
|
| 988 |
+
def download_file(category, filename):
|
| 989 |
+
"""File download route"""
|
| 990 |
+
try:
|
| 991 |
+
# Secure the filename to prevent directory traversal attacks
|
| 992 |
+
safe_filename = secure_filename(filename)
|
| 993 |
+
directory = os.path.join(app.root_path, 'static', 'downloads', category)
|
| 994 |
+
|
| 995 |
+
# Verify file exists before sending
|
| 996 |
+
if not os.path.exists(os.path.join(directory, safe_filename)):
|
| 997 |
+
app.logger.error(f"File not found: {category}/{safe_filename}")
|
| 998 |
+
return render_template('404.html'), 404
|
| 999 |
+
|
| 1000 |
+
return send_from_directory(
|
| 1001 |
+
directory,
|
| 1002 |
+
safe_filename,
|
| 1003 |
+
as_attachment=True,
|
| 1004 |
+
mimetype='application/octet-stream'
|
| 1005 |
+
)
|
| 1006 |
+
except Exception as e:
|
| 1007 |
+
app.logger.error(f"Download error: {str(e)}")
|
| 1008 |
+
return render_template('500.html'), 500
|
| 1009 |
+
|
| 1010 |
+
# Error Handlers
|
| 1011 |
+
@app.errorhandler(404)
|
| 1012 |
+
def page_not_found(e):
|
| 1013 |
+
"""404 Error handler"""
|
| 1014 |
+
return render_template('404.html'), 404
|
| 1015 |
+
|
| 1016 |
+
@app.errorhandler(500)
|
| 1017 |
+
def internal_server_error(e):
|
| 1018 |
+
"""500 Error handler"""
|
| 1019 |
+
return render_template('500.html'), 500
|
| 1020 |
+
|
| 1021 |
+
if __name__ == '__main__':
|
| 1022 |
+
# Create necessary directories if they don't exist
|
| 1023 |
+
os.makedirs('data', exist_ok=True)
|
| 1024 |
+
os.makedirs('static/downloads/admissions', exist_ok=True)
|
| 1025 |
+
os.makedirs('static/downloads/scholarships', exist_ok=True)
|
| 1026 |
+
os.makedirs('static/uploads/applications', exist_ok=True)
|
| 1027 |
+
os.makedirs(app.config['ADMIN_UPLOAD_FOLDER'], exist_ok=True)
|
| 1028 |
+
|
| 1029 |
+
# Create admin template files if they don't exist
|
| 1030 |
+
admin_templates = [
|
| 1031 |
+
'admin/base.html',
|
| 1032 |
+
'admin/login.html',
|
| 1033 |
+
'admin/dashboard.html',
|
| 1034 |
+
'admin/applications.html',
|
| 1035 |
+
'admin/application_detail.html',
|
| 1036 |
+
'admin/settings.html',
|
| 1037 |
+
'admin/content.html',
|
| 1038 |
+
'admin/manage_content.html'
|
| 1039 |
+
]
|
| 1040 |
+
|
| 1041 |
+
os.makedirs('templates/admin', exist_ok=True)
|
| 1042 |
+
for template in admin_templates:
|
| 1043 |
+
template_path = os.path.join('templates', template)
|
| 1044 |
+
if not os.path.exists(template_path):
|
| 1045 |
+
with open(template_path, 'w') as f:
|
| 1046 |
+
f.write(f"<!-- {template} -->\n")
|
| 1047 |
+
|
| 1048 |
+
app.run(debug=True, port=33445)
|
app_errors.log
ADDED
|
File without changes
|
static/css/style.css
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* static/css/style.css */
|
| 2 |
+
:root {
|
| 3 |
+
--primary: #1a4d8c;
|
| 4 |
+
--secondary: #f9a826;
|
| 5 |
+
--accent: #e74c3c;
|
| 6 |
+
--light: #f8f9fa;
|
| 7 |
+
--dark: #343a40;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
body {
|
| 11 |
+
font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 12 |
+
color: #333;
|
| 13 |
+
line-height: 1.6;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
/* Accessibility enhancements */
|
| 17 |
+
a:focus, button:focus {
|
| 18 |
+
outline: 3px solid var(--secondary);
|
| 19 |
+
outline-offset: 2px;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.skip-link {
|
| 23 |
+
position: absolute;
|
| 24 |
+
top: -40px;
|
| 25 |
+
left: 0;
|
| 26 |
+
background: var(--primary);
|
| 27 |
+
color: white;
|
| 28 |
+
padding: 8px;
|
| 29 |
+
z-index: 100;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.skip-link:focus {
|
| 33 |
+
top: 0;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
/* Header */
|
| 37 |
+
.navbar-brand img {
|
| 38 |
+
max-height: 70px;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.navbar .nav-link {
|
| 42 |
+
font-weight: 500;
|
| 43 |
+
padding: 0.5rem 1rem;
|
| 44 |
+
transition: all 0.3s;
|
| 45 |
+
position: relative;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.navbar .nav-link:hover {
|
| 49 |
+
color: var(--primary);
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.navbar .nav-link:after {
|
| 53 |
+
content: '';
|
| 54 |
+
position: absolute;
|
| 55 |
+
width: 0;
|
| 56 |
+
height: 2px;
|
| 57 |
+
bottom: 0;
|
| 58 |
+
left: 0;
|
| 59 |
+
background-color: var(--secondary);
|
| 60 |
+
transition: width 0.3s;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.navbar .nav-link:hover:after,
|
| 64 |
+
.navbar .nav-link.active:after {
|
| 65 |
+
width: 100%;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/* Hero Section */
|
| 69 |
+
.hero {
|
| 70 |
+
background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') center/cover no-repeat;
|
| 71 |
+
color: white;
|
| 72 |
+
padding: 100px 0;
|
| 73 |
+
text-align: center;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
.hero h1 {
|
| 77 |
+
font-weight: 700;
|
| 78 |
+
font-size: 3rem;
|
| 79 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
.hero p {
|
| 83 |
+
font-size: 1.2rem;
|
| 84 |
+
max-width: 700px;
|
| 85 |
+
margin: 20px auto;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
/* Cards */
|
| 89 |
+
.card {
|
| 90 |
+
border: none;
|
| 91 |
+
border-radius: 10px;
|
| 92 |
+
overflow: hidden;
|
| 93 |
+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
| 94 |
+
transition: transform 0.3s, box-shadow 0.3s;
|
| 95 |
+
height: 100%;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
.card:hover {
|
| 99 |
+
transform: translateY(-10px);
|
| 100 |
+
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.card-img-top {
|
| 104 |
+
height: 200px;
|
| 105 |
+
object-fit: cover;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
.card-title {
|
| 109 |
+
color: var(--primary);
|
| 110 |
+
font-weight: 700;
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
/* News section */
|
| 114 |
+
.news-card .date {
|
| 115 |
+
color: var(--secondary);
|
| 116 |
+
font-weight: 600;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
/* Buttons */
|
| 120 |
+
.btn-primary {
|
| 121 |
+
background-color: var(--primary);
|
| 122 |
+
border-color: var(--primary);
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
.btn-primary:hover {
|
| 126 |
+
background-color: #0d3a6e;
|
| 127 |
+
border-color: #0d3a6e;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
.btn-secondary {
|
| 131 |
+
background-color: var(--secondary);
|
| 132 |
+
border-color: var(--secondary);
|
| 133 |
+
color: #fff;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
.btn-secondary:hover {
|
| 137 |
+
background-color: #e59400;
|
| 138 |
+
border-color: #e59400;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
/* Section titles */
|
| 142 |
+
.section-title {
|
| 143 |
+
position: relative;
|
| 144 |
+
margin-bottom: 40px;
|
| 145 |
+
text-align: center;
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
.section-title:after {
|
| 149 |
+
content: '';
|
| 150 |
+
display: block;
|
| 151 |
+
width: 80px;
|
| 152 |
+
height: 4px;
|
| 153 |
+
background: var(--secondary);
|
| 154 |
+
margin: 15px auto 0;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
/* Testimonials */
|
| 158 |
+
.testimonial {
|
| 159 |
+
background: var(--light);
|
| 160 |
+
padding: 30px;
|
| 161 |
+
border-radius: 10px;
|
| 162 |
+
position: relative;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.testimonial:after {
|
| 166 |
+
content: '"';
|
| 167 |
+
position: absolute;
|
| 168 |
+
top: 20px;
|
| 169 |
+
left: 20px;
|
| 170 |
+
font-size: 5rem;
|
| 171 |
+
color: rgba(0, 0, 0, 0.05);
|
| 172 |
+
font-family: Georgia, serif;
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
.testimonial .author {
|
| 176 |
+
font-weight: 600;
|
| 177 |
+
color: var(--primary);
|
| 178 |
+
margin-top: 20px;
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
/* Footer */
|
| 182 |
+
footer {
|
| 183 |
+
background: linear-gradient(to right, #0a3a6d, #1a4d8c);
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
footer h5 {
|
| 187 |
+
position: relative;
|
| 188 |
+
padding-bottom: 15px;
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
footer h5:after {
|
| 192 |
+
content: '';
|
| 193 |
+
position: absolute;
|
| 194 |
+
left: 0;
|
| 195 |
+
bottom: 0;
|
| 196 |
+
width: 50px;
|
| 197 |
+
height: 2px;
|
| 198 |
+
background: var(--secondary);
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
footer a {
|
| 202 |
+
color: #ddd;
|
| 203 |
+
text-decoration: none;
|
| 204 |
+
transition: color 0.3s;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
footer a:hover {
|
| 208 |
+
color: var(--secondary);
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
.social-links a {
|
| 212 |
+
display: inline-block;
|
| 213 |
+
width: 40px;
|
| 214 |
+
height: 40px;
|
| 215 |
+
background: rgba(255, 255, 255, 0.1);
|
| 216 |
+
border-radius: 50%;
|
| 217 |
+
text-align: center;
|
| 218 |
+
line-height: 40px;
|
| 219 |
+
transition: all 0.3s;
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
.social-links a:hover {
|
| 223 |
+
background: var(--secondary);
|
| 224 |
+
transform: translateY(-5px);
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
/* WhatsApp Button */
|
| 228 |
+
.whatsapp-button {
|
| 229 |
+
position: fixed;
|
| 230 |
+
bottom: 30px;
|
| 231 |
+
right: 30px;
|
| 232 |
+
width: 60px;
|
| 233 |
+
height: 60px;
|
| 234 |
+
background: #25d366;
|
| 235 |
+
border-radius: 50%;
|
| 236 |
+
display: flex;
|
| 237 |
+
align-items: center;
|
| 238 |
+
justify-content: center;
|
| 239 |
+
color: white;
|
| 240 |
+
font-size: 2rem;
|
| 241 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
| 242 |
+
z-index: 1000;
|
| 243 |
+
transition: all 0.3s;
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
.whatsapp-button:hover {
|
| 247 |
+
transform: scale(1.1);
|
| 248 |
+
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
|
| 249 |
+
color: white;
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
+
/* Responsive adjustments */
|
| 253 |
+
@media (max-width: 768px) {
|
| 254 |
+
.hero {
|
| 255 |
+
padding: 60px 0;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
.hero h1 {
|
| 259 |
+
font-size: 2.2rem;
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
.navbar-brand img {
|
| 263 |
+
max-height: 50px;
|
| 264 |
+
}
|
| 265 |
+
}
|
static/downloads/admissions/company logo.jpg
ADDED
|
static/downloads/admissions/prospectus.pdf
ADDED
|
Binary file (49.1 kB). View file
|
|
|
static/downloads/general/index.html
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>Downloads</title>
|
| 5 |
+
</head>
|
| 6 |
+
<body>
|
| 7 |
+
<h1>Downloads</h1>
|
| 8 |
+
<p>Available downloads will be listed here.</p>
|
| 9 |
+
</body>
|
| 10 |
+
</html>
|
static/images/default.jpg
ADDED
|
static/js/main.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Initialize tooltips
|
| 2 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 3 |
+
// Enable Bootstrap tooltips
|
| 4 |
+
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
|
| 5 |
+
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
|
| 6 |
+
return new bootstrap.Tooltip(tooltipTriggerEl);
|
| 7 |
+
});
|
| 8 |
+
|
| 9 |
+
// Handle contact form submission
|
| 10 |
+
const contactForm = document.getElementById('contact-form');
|
| 11 |
+
if (contactForm) {
|
| 12 |
+
contactForm.addEventListener('submit', function(e) {
|
| 13 |
+
e.preventDefault();
|
| 14 |
+
|
| 15 |
+
// Simple validation
|
| 16 |
+
const name = document.getElementById('name').value.trim();
|
| 17 |
+
const email = document.getElementById('email').value.trim();
|
| 18 |
+
const message = document.getElementById('message').value.trim();
|
| 19 |
+
|
| 20 |
+
if (!name || !email || !message) {
|
| 21 |
+
alert('Please fill in all fields');
|
| 22 |
+
return;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
// In a real app, you would send this data to the server
|
| 26 |
+
console.log('Form submitted:', { name, email, message });
|
| 27 |
+
|
| 28 |
+
// Show success message
|
| 29 |
+
alert('Thank you for your message. We will contact you soon.');
|
| 30 |
+
contactForm.reset();
|
| 31 |
+
});
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
// Language switcher
|
| 35 |
+
const langSwitcher = document.querySelector('.lang-selector');
|
| 36 |
+
if (langSwitcher) {
|
| 37 |
+
langSwitcher.addEventListener('click', function(e) {
|
| 38 |
+
if (e.target.tagName === 'A') {
|
| 39 |
+
// In a real app, this would be handled by Flask
|
| 40 |
+
localStorage.setItem('preferredLanguage', e.target.dataset.lang);
|
| 41 |
+
}
|
| 42 |
+
});
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
// Lazy loading for images
|
| 46 |
+
if ('loading' in HTMLImageElement.prototype) {
|
| 47 |
+
const images = document.querySelectorAll('img[loading="lazy"]');
|
| 48 |
+
images.forEach(img => {
|
| 49 |
+
img.src = img.dataset.src;
|
| 50 |
+
});
|
| 51 |
+
} else {
|
| 52 |
+
// Fallback for browsers that don't support lazy loading
|
| 53 |
+
const lazyLoadScript = document.createElement('script');
|
| 54 |
+
lazyLoadScript.src = 'https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.6.1/dist/lazyload.min.js';
|
| 55 |
+
document.body.appendChild(lazyLoadScript);
|
| 56 |
+
|
| 57 |
+
lazyLoadScript.onload = function() {
|
| 58 |
+
new LazyLoad({
|
| 59 |
+
elements_selector: "[loading=lazy]"
|
| 60 |
+
});
|
| 61 |
+
};
|
| 62 |
+
}
|
| 63 |
+
});
|
static/uploads/applications/348f9a45-0184-40ed-8fc4-444829eea40d_academic_records.pdf
ADDED
|
Binary file (49.1 kB). View file
|
|
|
static/uploads/applications/348f9a45-0184-40ed-8fc4-444829eea40d_birth_certificate.pdf
ADDED
|
Binary file (49.1 kB). View file
|
|
|
static/uploads/applications/348f9a45-0184-40ed-8fc4-444829eea40d_photo.png
ADDED
|
Git LFS Details
|
static/uploads/applications/348f9a45-0184-40ed-8fc4-444829eea40d_recommendation_letter.pdf
ADDED
|
Binary file (49.1 kB). View file
|
|
|
static/uploads/applications/7d8de7f4-a5c9-47c3-81e0-9e95eed94557_academic_records.pdf
ADDED
|
Binary file (49.1 kB). View file
|
|
|
static/uploads/applications/7d8de7f4-a5c9-47c3-81e0-9e95eed94557_birth_certificate.pdf
ADDED
|
Binary file (49.1 kB). View file
|
|
|
static/uploads/applications/7d8de7f4-a5c9-47c3-81e0-9e95eed94557_photo.png
ADDED
|
Git LFS Details
|
static/uploads/applications/7d8de7f4-a5c9-47c3-81e0-9e95eed94557_recommendation_letter.pdf
ADDED
|
Binary file (49.1 kB). View file
|
|
|
templates/404.html
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<section class="container py-20 text-center">
|
| 5 |
+
<div class="max-w-2xl mx-auto glass-card p-12">
|
| 6 |
+
<div class="text-primary text-6xl mb-6">
|
| 7 |
+
<i class="fas fa-exclamation-triangle"></i>
|
| 8 |
+
</div>
|
| 9 |
+
<h1 class="text-3xl md:text-4xl font-bold mb-6">{{ _('Page Not Found') }}</h1>
|
| 10 |
+
<p class="text-xl mb-8">{{ _('The page you are looking for does not exist.') }}</p>
|
| 11 |
+
<p class="mb-10 text-dark/80">{{ _('Please check the URL or navigate back to the homepage.') }}</p>
|
| 12 |
+
<a href="{{ url_for('home') }}" class="btn-primary inline-block">
|
| 13 |
+
{{ _('Return to Homepage') }}
|
| 14 |
+
</a>
|
| 15 |
+
</div>
|
| 16 |
+
</section>
|
| 17 |
+
{% endblock %}
|
templates/about.html
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<!-- Hero Section -->
|
| 5 |
+
<section class="relative py-20 bg-gradient-to-r from-primary to-indigo-800 text-white">
|
| 6 |
+
<div class="container mx-auto px-4 text-center">
|
| 7 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-6">{{ _('About Our School') }}</h1>
|
| 8 |
+
<p class="text-xl max-w-2xl mx-auto">{{ _('Discover our rich history, mission, and the dedicated team that makes Munishi School exceptional') }}</p>
|
| 9 |
+
</div>
|
| 10 |
+
</section>
|
| 11 |
+
|
| 12 |
+
<!-- History Section -->
|
| 13 |
+
<section class="py-16">
|
| 14 |
+
<div class="container mx-auto px-4">
|
| 15 |
+
<div class="flex flex-col md:flex-row items-center gap-10">
|
| 16 |
+
<div class="md:w-1/2 relative">
|
| 17 |
+
<div class="rounded-2xl overflow-hidden shadow-xl">
|
| 18 |
+
<div class="aspect-w-16 aspect-h-9 bg-gray-200 rounded-2xl overflow-hidden">
|
| 19 |
+
<div class="bg-gradient-to-r from-primary/30 to-secondary/30 w-full h-full flex items-center justify-center">
|
| 20 |
+
<i class="fas fa-landmark text-white text-6xl"></i>
|
| 21 |
+
</div>
|
| 22 |
+
</div>
|
| 23 |
+
</div>
|
| 24 |
+
<div class="absolute -bottom-6 -right-6 w-40 h-40 bg-accent rounded-2xl z-[-1] animate-float"></div>
|
| 25 |
+
</div>
|
| 26 |
+
|
| 27 |
+
<div class="md:w-1/2">
|
| 28 |
+
<div class="glass-card p-8">
|
| 29 |
+
<h2 class="text-3xl font-bold mb-6 text-primary">{{ _('Our History') }}</h2>
|
| 30 |
+
<p class="mb-6 text-dark/80">
|
| 31 |
+
{{ history.founding.description }}
|
| 32 |
+
</p>
|
| 33 |
+
<div class="mt-8">
|
| 34 |
+
<h3 class="text-xl font-bold mb-4 text-secondary">{{ _('Key Milestones') }}</h3>
|
| 35 |
+
<div class="relative pl-8 border-l-2 border-primary/20">
|
| 36 |
+
{% for milestone in history.milestones %}
|
| 37 |
+
<div class="mb-8 relative">
|
| 38 |
+
<div class="absolute -left-11 w-8 h-8 rounded-full bg-primary text-white flex items-center justify-center">
|
| 39 |
+
{{ milestone.year }}
|
| 40 |
+
</div>
|
| 41 |
+
<h4 class="text-lg font-bold">{{ milestone.event }}</h4>
|
| 42 |
+
<p class="text-dark/70 mt-2">{{ milestone.description }}</p>
|
| 43 |
+
</div>
|
| 44 |
+
{% endfor %}
|
| 45 |
+
</div>
|
| 46 |
+
</div>
|
| 47 |
+
</div>
|
| 48 |
+
</div>
|
| 49 |
+
</div>
|
| 50 |
+
</div>
|
| 51 |
+
</section>
|
| 52 |
+
|
| 53 |
+
<!-- Mission & Vision -->
|
| 54 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 55 |
+
<div class="container mx-auto px-4">
|
| 56 |
+
<div class="max-w-4xl mx-auto glass-card p-8">
|
| 57 |
+
<h2 class="section-title">{{ _('Our Mission & Vision') }}</h2>
|
| 58 |
+
|
| 59 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 mt-8">
|
| 60 |
+
<div class="bg-primary/10 p-6 rounded-xl border-l-4 border-primary">
|
| 61 |
+
<div class="text-primary text-4xl mb-4">
|
| 62 |
+
<i class="fas fa-bullseye"></i>
|
| 63 |
+
</div>
|
| 64 |
+
<h3 class="text-xl font-bold mb-3 text-primary">{{ _('Mission Statement') }}</h3>
|
| 65 |
+
<p>{{ mission.mission }}</p>
|
| 66 |
+
</div>
|
| 67 |
+
|
| 68 |
+
<div class="bg-secondary/10 p-6 rounded-xl border-l-4 border-secondary">
|
| 69 |
+
<div class="text-secondary text-4xl mb-4">
|
| 70 |
+
<i class="fas fa-eye"></i>
|
| 71 |
+
</div>
|
| 72 |
+
<h3 class="text-xl font-bold mb-3 text-secondary">{{ _('Vision Statement') }}</h3>
|
| 73 |
+
<p>{{ mission.vision }}</p>
|
| 74 |
+
</div>
|
| 75 |
+
</div>
|
| 76 |
+
|
| 77 |
+
<div class="mt-10">
|
| 78 |
+
<h3 class="text-2xl font-bold mb-6 text-center">{{ _('Core Values') }}</h3>
|
| 79 |
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
|
| 80 |
+
{% for value in mission.get('values', []) %}
|
| 81 |
+
<div class="glass-card p-6 text-center transform transition-all duration-300 hover:-translate-y-2">
|
| 82 |
+
<div class="w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4">
|
| 83 |
+
<i class="fas fa-star text-primary text-2xl"></i>
|
| 84 |
+
</div>
|
| 85 |
+
<h4 class="text-xl font-bold">{{ value.name }}</h4>
|
| 86 |
+
<p class="text-dark/70 mt-2">{{ value.description }}</p>
|
| 87 |
+
</div>
|
| 88 |
+
{% endfor %}
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
</div>
|
| 93 |
+
</section>
|
| 94 |
+
|
| 95 |
+
<!-- Leadership -->
|
| 96 |
+
<section class="py-16">
|
| 97 |
+
<div class="container mx-auto px-4">
|
| 98 |
+
<h2 class="section-title">{{ _('School Leadership') }}</h2>
|
| 99 |
+
<p class="text-center max-w-2xl mx-auto mb-12 text-dark/80">
|
| 100 |
+
{{ _('Our dedicated leadership team brings decades of educational experience and a passion for student success') }}
|
| 101 |
+
</p>
|
| 102 |
+
|
| 103 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mt-12">
|
| 104 |
+
{% for leader in leadership %}
|
| 105 |
+
<div class="glass-card overflow-hidden transform transition-all duration-300 hover:-translate-y-2">
|
| 106 |
+
<div class="aspect-w-16 aspect-h-12 bg-gray-200">
|
| 107 |
+
<div class="bg-gradient-to-r from-primary/30 to-secondary/30 w-full h-full flex items-center justify-center">
|
| 108 |
+
<i class="fas fa-user-tie text-white text-5xl"></i>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
<div class="p-6">
|
| 112 |
+
<h3 class="text-xl font-bold">{{ leader.name }}</h3>
|
| 113 |
+
<p class="text-primary font-medium mb-4">{{ leader.position }}</p>
|
| 114 |
+
<p class="text-dark/70 mb-4">{{ leader.bio }}</p>
|
| 115 |
+
<div class="flex items-center text-sm text-dark/80">
|
| 116 |
+
<i class="fas fa-envelope mr-2"></i>
|
| 117 |
+
<span>{{ leader.email }}</span>
|
| 118 |
+
</div>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
{% endfor %}
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
</section>
|
| 125 |
+
|
| 126 |
+
<!-- Faculty -->
|
| 127 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 128 |
+
<div class="container mx-auto px-4">
|
| 129 |
+
<h2 class="section-title">{{ _('Our Faculty') }}</h2>
|
| 130 |
+
<p class="text-center max-w-2xl mx-auto mb-12 text-dark/80">
|
| 131 |
+
{{ _('Highly qualified educators committed to academic excellence and student development') }}
|
| 132 |
+
</p>
|
| 133 |
+
|
| 134 |
+
<div class="glass-card p-8">
|
| 135 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 136 |
+
<div class="text-center">
|
| 137 |
+
<div class="text-5xl font-bold text-primary mb-2">{{ faculty.stats.teachers }}</div>
|
| 138 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Dedicated Teachers') }}</h3>
|
| 139 |
+
<p class="text-dark/70">{{ _('Average 15 years teaching experience') }}</p>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<div class="text-center">
|
| 143 |
+
<div class="text-5xl font-bold text-secondary mb-2">{{ faculty.stats.degrees }}%</div>
|
| 144 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Advanced Degrees') }}</h3>
|
| 145 |
+
<p class="text-dark/70">{{ _('Masters or PhD qualifications') }}</p>
|
| 146 |
+
</div>
|
| 147 |
+
|
| 148 |
+
<div class="text-center">
|
| 149 |
+
<div class="text-5xl font-bold text-accent mb-2">{{ faculty.stats.training }}</div>
|
| 150 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Annual Training Hours') }}</h3>
|
| 151 |
+
<p class="text-dark/70">{{ _('Professional development commitment') }}</p>
|
| 152 |
+
</div>
|
| 153 |
+
</div>
|
| 154 |
+
|
| 155 |
+
<div class="mt-12">
|
| 156 |
+
<h3 class="text-2xl font-bold mb-6 text-center">{{ _('Department Heads') }}</h3>
|
| 157 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
|
| 158 |
+
{% for head in faculty.department_heads %}
|
| 159 |
+
<div class="glass-card p-5 text-center">
|
| 160 |
+
<div class="w-20 h-20 rounded-full bg-gradient-to-r from-primary to-secondary mx-auto mb-4 flex items-center justify-center text-white text-2xl font-bold">
|
| 161 |
+
{{ head.initials }}
|
| 162 |
+
</div>
|
| 163 |
+
<h4 class="font-bold">{{ head.name }}</h4>
|
| 164 |
+
<p class="text-primary text-sm">{{ head.department }}</p>
|
| 165 |
+
<p class="text-dark/70 text-sm mt-2">{{ head.qualification }}</p>
|
| 166 |
+
</div>
|
| 167 |
+
{% endfor %}
|
| 168 |
+
</div>
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
</section>
|
| 173 |
+
|
| 174 |
+
<!-- Facilities -->
|
| 175 |
+
<section class="py-16">
|
| 176 |
+
<div class="container mx-auto px-4">
|
| 177 |
+
<h2 class="section-title">{{ _('Our Facilities') }}</h2>
|
| 178 |
+
<p class="text-center max-w-2xl mx-auto mb-12 text-dark/80">
|
| 179 |
+
{{ _('Modern learning environments designed to inspire and support academic achievement') }}
|
| 180 |
+
</p>
|
| 181 |
+
|
| 182 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 mt-12">
|
| 183 |
+
{% for facility in facilities %}
|
| 184 |
+
<div class="glass-card overflow-hidden transform transition-all duration-300 hover:-translate-y-2">
|
| 185 |
+
<div class="aspect-w-16 aspect-h-9 bg-gray-200">
|
| 186 |
+
<div class="bg-gradient-to-r from-primary/30 to-secondary/30 w-full h-full flex items-center justify-center">
|
| 187 |
+
<i class="fas fa-{{ facility.icon }} text-white text-5xl"></i>
|
| 188 |
+
</div>
|
| 189 |
+
</div>
|
| 190 |
+
<div class="p-6">
|
| 191 |
+
<h3 class="text-xl font-bold mb-2">{{ facility.name }}</h3>
|
| 192 |
+
<p class="text-dark/70 mb-4">{{ facility.description }}</p>
|
| 193 |
+
<div class="flex flex-wrap gap-2">
|
| 194 |
+
{% for feature in facility.features %}
|
| 195 |
+
<span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">
|
| 196 |
+
{{ feature }}
|
| 197 |
+
</span>
|
| 198 |
+
{% endfor %}
|
| 199 |
+
</div>
|
| 200 |
+
</div>
|
| 201 |
+
</div>
|
| 202 |
+
{% endfor %}
|
| 203 |
+
</div>
|
| 204 |
+
</div>
|
| 205 |
+
</section>
|
| 206 |
+
|
| 207 |
+
<!-- Accreditation -->
|
| 208 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 209 |
+
<div class="container mx-auto px-4">
|
| 210 |
+
<div class="glass-card p-8">
|
| 211 |
+
<h2 class="section-title">{{ _('Accreditation & Partnerships') }}</h2>
|
| 212 |
+
|
| 213 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mt-12">
|
| 214 |
+
<div class="text-center">
|
| 215 |
+
<div class="bg-white/20 backdrop-blur-sm w-24 h-24 rounded-full flex items-center justify-center mx-auto mb-6">
|
| 216 |
+
<i class="fas fa-award text-primary text-4xl"></i>
|
| 217 |
+
</div>
|
| 218 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Fully Accredited') }}</h3>
|
| 219 |
+
<p class="text-dark/70">{{ _('Recognized by the Tanzanian Ministry of Education') }}</p>
|
| 220 |
+
</div>
|
| 221 |
+
|
| 222 |
+
<div class="text-center">
|
| 223 |
+
<div class="bg-white/20 backdrop-blur-sm w-24 h-24 rounded-full flex items-center justify-center mx-auto mb-6">
|
| 224 |
+
<i class="fas fa-handshake text-secondary text-4xl"></i>
|
| 225 |
+
</div>
|
| 226 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Global Partnerships') }}</h3>
|
| 227 |
+
<p class="text-dark/70">{{ _('Collaborations with international educational institutions') }}</p>
|
| 228 |
+
</div>
|
| 229 |
+
|
| 230 |
+
<div class="text-center">
|
| 231 |
+
<div class="bg-white/20 backdrop-blur-sm w-24 h-24 rounded-full flex items-center justify-center mx-auto mb-6">
|
| 232 |
+
<i class="fas fa-chart-line text-accent text-4xl"></i>
|
| 233 |
+
</div>
|
| 234 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Quality Assurance') }}</h3>
|
| 235 |
+
<p class="text-dark/70">{{ _('Regular evaluations to maintain educational standards') }}</p>
|
| 236 |
+
</div>
|
| 237 |
+
</div>
|
| 238 |
+
|
| 239 |
+
<div class="mt-12">
|
| 240 |
+
<h3 class="text-2xl font-bold mb-6 text-center">{{ _('Our Partners') }}</h3>
|
| 241 |
+
<div class="grid grid-cols-2 md:grid-cols-4 gap-6">
|
| 242 |
+
<div class="glass-card p-6 flex items-center justify-center">
|
| 243 |
+
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-16 h-16" />
|
| 244 |
+
</div>
|
| 245 |
+
<div class="glass-card p-6 flex items-center justify-center">
|
| 246 |
+
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-16 h-16" />
|
| 247 |
+
</div>
|
| 248 |
+
<div class="glass-card p-6 flex items-center justify-center">
|
| 249 |
+
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-16 h-16" />
|
| 250 |
+
</div>
|
| 251 |
+
<div class="glass-card p-6 flex items-center justify-center">
|
| 252 |
+
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-16 h-16" />
|
| 253 |
+
</div>
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
+
</div>
|
| 257 |
+
</div>
|
| 258 |
+
</section>
|
| 259 |
+
|
| 260 |
+
<!-- Testimonials -->
|
| 261 |
+
<section class="py-16">
|
| 262 |
+
<div class="container mx-auto px-4">
|
| 263 |
+
<h2 class="section-title">{{ _('What Parents & Students Say') }}</h2>
|
| 264 |
+
|
| 265 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mt-12">
|
| 266 |
+
<div class="glass-card p-6 transform transition-all duration-300 hover:-translate-y-2">
|
| 267 |
+
<div class="flex items-center mb-4">
|
| 268 |
+
<div class="w-12 h-12 rounded-full bg-gradient-to-r from-primary to-secondary flex items-center justify-center text-white font-bold">A</div>
|
| 269 |
+
<div class="ml-4">
|
| 270 |
+
<h4 class="font-bold">Amina Juma</h4>
|
| 271 |
+
<p class="text-dark/70 text-sm">{{ _('Parent') }}</p>
|
| 272 |
+
</div>
|
| 273 |
+
</div>
|
| 274 |
+
<p class="text-dark/80 italic">"{{ _('The transformation in my daughter since joining Munishi has been remarkable. She\'s more confident and passionate about learning.') }}"</p>
|
| 275 |
+
<div class="flex text-yellow-400 mt-4">
|
| 276 |
+
<i class="fas fa-star"></i>
|
| 277 |
+
<i class="fas fa-star"></i>
|
| 278 |
+
<i class="fas fa-star"></i>
|
| 279 |
+
<i class="fas fa-star"></i>
|
| 280 |
+
<i class="fas fa-star"></i>
|
| 281 |
+
</div>
|
| 282 |
+
</div>
|
| 283 |
+
|
| 284 |
+
<div class="glass-card p-6 transform transition-all duration-300 hover:-translate-y-2">
|
| 285 |
+
<div class="flex items-center mb-4">
|
| 286 |
+
<div class="w-12 h-12 rounded-full bg-gradient-to-r from-secondary to-accent flex items-center justify-center text-white font-bold">D</div>
|
| 287 |
+
<div class="ml-4">
|
| 288 |
+
<h4 class="font-bold">David Omondi</h4>
|
| 289 |
+
<p class="text-dark/70 text-sm">{{ _('Alumni') }}</p>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
<p class="text-dark/80 italic">"{{ _('Munishi prepared me not just academically, but for life. The leadership opportunities I had shaped my career path.') }}"</p>
|
| 293 |
+
<div class="flex text-yellow-400 mt-4">
|
| 294 |
+
<i class="fas fa-star"></i>
|
| 295 |
+
<i class="fas fa-star"></i>
|
| 296 |
+
<i class="fas fa-star"></i>
|
| 297 |
+
<i class="fas fa-star"></i>
|
| 298 |
+
<i class="fas fa-star"></i>
|
| 299 |
+
</div>
|
| 300 |
+
</div>
|
| 301 |
+
|
| 302 |
+
<div class="glass-card p-6 transform transition-all duration-300 hover:-translate-y-2">
|
| 303 |
+
<div class="flex items-center mb-4">
|
| 304 |
+
<div class="w-12 h-12 rounded-full bg-gradient-to-r from-accent to-primary flex items-center justify-center text-white font-bold">J</div>
|
| 305 |
+
<div class="ml-4">
|
| 306 |
+
<h4 class="font-bold">John Mwamba</h4>
|
| 307 |
+
<p class="text-dark/70 text-sm">{{ _('Student') }}</p>
|
| 308 |
+
</div>
|
| 309 |
+
</div>
|
| 310 |
+
<p class="text-dark/80 italic">"{{ _('I love the balance between academics and extracurriculars. The robotics club has been life-changing for me!') }}"</p>
|
| 311 |
+
<div class="flex text-yellow-400 mt-4">
|
| 312 |
+
<i class="fas fa-star"></i>
|
| 313 |
+
<i class="fas fa-star"></i>
|
| 314 |
+
<i class="fas fa-star"></i>
|
| 315 |
+
<i class="fas fa-star"></i>
|
| 316 |
+
<i class="fas fa-star"></i>
|
| 317 |
+
</div>
|
| 318 |
+
</div>
|
| 319 |
+
</div>
|
| 320 |
+
</div>
|
| 321 |
+
</section>
|
| 322 |
+
|
| 323 |
+
<!-- CTA Section -->
|
| 324 |
+
<section class="py-16 bg-gradient-to-r from-primary to-secondary">
|
| 325 |
+
<div class="container mx-auto px-4">
|
| 326 |
+
<div class="max-w-4xl mx-auto text-center">
|
| 327 |
+
<h2 class="text-3xl md:text-4xl font-bold text-white mb-6">{{ _('Experience Munishi School') }}</h2>
|
| 328 |
+
<p class="text-white/90 text-xl mb-10 max-w-2xl mx-auto">
|
| 329 |
+
{{ _('Schedule a campus tour and discover why Munishi is the right choice for your child\'s education') }}
|
| 330 |
+
</p>
|
| 331 |
+
<div class="flex flex-col sm:flex-row items-center justify-center space-y-4 sm:space-y-0 sm:space-x-6">
|
| 332 |
+
<a href="{{ url_for('contact') }}" class="bg-white text-primary px-8 py-4 rounded-full font-bold transition-all duration-300 hover:bg-gray-100 hover:scale-105">
|
| 333 |
+
{{ _('Schedule a Tour') }}
|
| 334 |
+
</a>
|
| 335 |
+
<a href="{{ url_for('admissions') }}" class="bg-transparent border-2 border-white text-white px-8 py-4 rounded-full font-bold transition-all duration-300 hover:bg-white/10">
|
| 336 |
+
{{ _('Apply Now') }}
|
| 337 |
+
</a>
|
| 338 |
+
</div>
|
| 339 |
+
</div>
|
| 340 |
+
</div>
|
| 341 |
+
</section>
|
| 342 |
+
{% endblock %}
|
templates/academics.html
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<!-- Hero Section -->
|
| 5 |
+
<section class="relative py-20 bg-gradient-to-r from-primary to-secondary text-white">
|
| 6 |
+
<div class="container mx-auto px-4 text-center">
|
| 7 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-6">{{ _('Academic Excellence') }}</h1>
|
| 8 |
+
<p class="text-xl max-w-2xl mx-auto">{{ _('Rigorous academic programs designed to prepare students for university and beyond') }}</p>
|
| 9 |
+
</div>
|
| 10 |
+
</section>
|
| 11 |
+
|
| 12 |
+
<!-- Academic Performance -->
|
| 13 |
+
<section class="py-16">
|
| 14 |
+
<div class="container mx-auto px-4">
|
| 15 |
+
<div class="glass-card p-8">
|
| 16 |
+
<h2 class="section-title">{{ _('Academic Performance') }}</h2>
|
| 17 |
+
|
| 18 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mt-12">
|
| 19 |
+
<div class="glass-card p-6 text-center transform transition-all duration-300 hover:-translate-y-2">
|
| 20 |
+
<div class="text-5xl font-bold text-primary mb-3">{{ results.pass_rate }}%</div>
|
| 21 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Pass Rate') }}</h3>
|
| 22 |
+
<p class="text-dark/70">{{ _('Consistent outstanding results in national examinations') }}</p>
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
<div class="glass-card p-6 text-center transform transition-all duration-300 hover:-translate-y-2">
|
| 26 |
+
<div class="text-5xl font-bold text-secondary mb-3">{{ results.university_admission }}%</div>
|
| 27 |
+
<h3 class="text-xl font-bold mb-2">{{ _('University Admission') }}</h3>
|
| 28 |
+
<p class="text-dark/70">{{ _('Students admitted to top universities worldwide') }}</p>
|
| 29 |
+
</div>
|
| 30 |
+
|
| 31 |
+
<div class="glass-card p-6 text-center transform transition-all duration-300 hover:-translate-y-2">
|
| 32 |
+
<div class="text-5xl font-bold text-accent mb-3">{{ subjects|length }}</div>
|
| 33 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Subjects Offered') }}</h3>
|
| 34 |
+
<p class="text-dark/70">{{ _('Comprehensive range of academic disciplines') }}</p>
|
| 35 |
+
</div>
|
| 36 |
+
|
| 37 |
+
<div class="glass-card p-6 text-center transform transition-all duration-300 hover:-translate-y-2">
|
| 38 |
+
<div class="text-5xl font-bold text-primary mb-3">{{ results.teacher_ratio }}</div>
|
| 39 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Teacher-Student Ratio') }}</h3>
|
| 40 |
+
<p class="text-dark/70">{{ _('Personalized attention for every learner') }}</p>
|
| 41 |
+
</div>
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
<!-- Performance Chart -->
|
| 45 |
+
<div class="mt-16">
|
| 46 |
+
<h3 class="text-2xl font-bold mb-6 text-center">{{ _('5-Year NECTA Performance') }}</h3>
|
| 47 |
+
<div class="bg-white/30 backdrop-blur-sm rounded-xl p-6">
|
| 48 |
+
<div class="flex justify-between mb-4">
|
| 49 |
+
<div class="text-center">
|
| 50 |
+
<div class="text-lg font-bold">{{ results.current_year }}</div>
|
| 51 |
+
<div class="text-3xl font-bold text-primary">{{ results.current_pass_rate }}%</div>
|
| 52 |
+
</div>
|
| 53 |
+
<div class="flex items-center">
|
| 54 |
+
<div class="text-green-500 font-bold mr-2">
|
| 55 |
+
<i class="fas fa-arrow-up mr-1"></i> {{ results.improvement }}%
|
| 56 |
+
</div>
|
| 57 |
+
<div>{{ _('improvement since') }} {{ results.start_year }}</div>
|
| 58 |
+
</div>
|
| 59 |
+
</div>
|
| 60 |
+
|
| 61 |
+
<div class="grid grid-cols-5 gap-4 h-48 items-end mt-8">
|
| 62 |
+
{% for year in results.years %}
|
| 63 |
+
<div class="flex flex-col items-center">
|
| 64 |
+
<div class="text-center mb-2">{{ year.year }}</div>
|
| 65 |
+
<div
|
| 66 |
+
class="w-full bg-gradient-to-t from-primary to-secondary rounded-t-lg transition-all duration-500"
|
| 67 |
+
style="height: {{ year.pass_rate * 0.4 }}%"
|
| 68 |
+
></div>
|
| 69 |
+
<div class="mt-2 font-bold">{{ year.pass_rate }}%</div>
|
| 70 |
+
</div>
|
| 71 |
+
{% endfor %}
|
| 72 |
+
</div>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
</div>
|
| 76 |
+
</div>
|
| 77 |
+
</section>
|
| 78 |
+
|
| 79 |
+
<!-- Academic Departments -->
|
| 80 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 81 |
+
<div class="container mx-auto px-4">
|
| 82 |
+
<h2 class="section-title">{{ _('Academic Departments') }}</h2>
|
| 83 |
+
<p class="text-center max-w-2xl mx-auto mb-12 text-dark/80">
|
| 84 |
+
{{ _('Our comprehensive curriculum is organized into specialized departments, each with expert faculty and modern facilities') }}
|
| 85 |
+
</p>
|
| 86 |
+
|
| 87 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 88 |
+
{% for department in subjects %}
|
| 89 |
+
<div class="glass-card p-6 transform transition-all duration-300 hover:-translate-y-2">
|
| 90 |
+
<div class="flex items-center mb-4">
|
| 91 |
+
<div class="w-12 h-12 rounded-full bg-{{ department.color }}/10 flex items-center justify-center mr-4">
|
| 92 |
+
<i class="{{ department.icon }} text-{{ department.color }} text-xl"></i>
|
| 93 |
+
</div>
|
| 94 |
+
<h3 class="text-xl font-bold">{{ department.name }}</h3>
|
| 95 |
+
</div>
|
| 96 |
+
|
| 97 |
+
<ul class="space-y-2 mt-4">
|
| 98 |
+
{% for subject in department.subjects %}
|
| 99 |
+
<li class="flex items-center">
|
| 100 |
+
<i class="fas fa-book text-{{ department.color }}/70 mr-2"></i>
|
| 101 |
+
<span>{{ subject }}</span>
|
| 102 |
+
</li>
|
| 103 |
+
{% endfor %}
|
| 104 |
+
</ul>
|
| 105 |
+
|
| 106 |
+
<div class="mt-6">
|
| 107 |
+
<h4 class="font-bold mb-2">{{ _('Department Head') }}:</h4>
|
| 108 |
+
<div class="flex items-center">
|
| 109 |
+
<div class="w-8 h-8 rounded-full bg-{{ department.color }}/20 flex items-center justify-center mr-2">
|
| 110 |
+
<i class="fas fa-user text-{{ department.color }}"></i>
|
| 111 |
+
</div>
|
| 112 |
+
<span>{{ department.head }}</span>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
{% endfor %}
|
| 117 |
+
</div>
|
| 118 |
+
</div>
|
| 119 |
+
</section>
|
| 120 |
+
|
| 121 |
+
<!-- Curriculum & Programs -->
|
| 122 |
+
<section class="py-16">
|
| 123 |
+
<div class="container mx-auto px-4">
|
| 124 |
+
<div class="glass-card p-8">
|
| 125 |
+
<h2 class="section-title">{{ _('Curriculum & Programs') }}</h2>
|
| 126 |
+
|
| 127 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mt-12">
|
| 128 |
+
<div>
|
| 129 |
+
<h3 class="text-2xl font-bold mb-6 text-primary">{{ _('Form 1-4 Curriculum') }}</h3>
|
| 130 |
+
<p class="text-dark/80 mb-6">
|
| 131 |
+
{{ _('Our comprehensive curriculum follows the Tanzanian National Curriculum while incorporating international best practices:') }}
|
| 132 |
+
</p>
|
| 133 |
+
|
| 134 |
+
<ul class="space-y-4">
|
| 135 |
+
<li class="flex">
|
| 136 |
+
<div class="bg-primary/10 w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 mr-4">
|
| 137 |
+
<i class="fas fa-check text-primary"></i>
|
| 138 |
+
</div>
|
| 139 |
+
<span>{{ _('Core subjects in Mathematics, Sciences, Languages, and Social Sciences') }}</span>
|
| 140 |
+
</li>
|
| 141 |
+
<li class="flex">
|
| 142 |
+
<div class="bg-primary/10 w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 mr-4">
|
| 143 |
+
<i class="fas fa-check text-primary"></i>
|
| 144 |
+
</div>
|
| 145 |
+
<span>{{ _('Practical skills development through ICT, Entrepreneurship, and Life Skills') }}</span>
|
| 146 |
+
</li>
|
| 147 |
+
<li class="flex">
|
| 148 |
+
<div class="bg-primary/10 w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 mr-4">
|
| 149 |
+
<i class="fas fa-check text-primary"></i>
|
| 150 |
+
</div>
|
| 151 |
+
<span>{{ _('Project-based learning and research opportunities') }}</span>
|
| 152 |
+
</li>
|
| 153 |
+
<li class="flex">
|
| 154 |
+
<div class="bg-primary/10 w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 mr-4">
|
| 155 |
+
<i class="fas fa-check text-primary"></i>
|
| 156 |
+
</div>
|
| 157 |
+
<span>{{ _('Career guidance and university preparation programs') }}</span>
|
| 158 |
+
</li>
|
| 159 |
+
</ul>
|
| 160 |
+
|
| 161 |
+
<a href="{{ url_for('download_file', category='academics', filename='curriculum-overview.pdf') }}" class="btn-primary mt-8 inline-block">
|
| 162 |
+
{{ _('Download Curriculum Guide') }}
|
| 163 |
+
</a>
|
| 164 |
+
</div>
|
| 165 |
+
|
| 166 |
+
<div>
|
| 167 |
+
<h3 class="text-2xl font-bold mb-6 text-secondary">{{ _('Special Programs') }}</h3>
|
| 168 |
+
|
| 169 |
+
<div class="space-y-6">
|
| 170 |
+
<div class="glass-card p-6">
|
| 171 |
+
<div class="flex items-center">
|
| 172 |
+
<div class="bg-secondary/10 w-12 h-12 rounded-full flex items-center justify-center mr-4">
|
| 173 |
+
<i class="fas fa-microscope text-secondary text-xl"></i>
|
| 174 |
+
</div>
|
| 175 |
+
<h4 class="text-lg font-bold">{{ _('STEM Program') }}</h4>
|
| 176 |
+
</div>
|
| 177 |
+
<p class="mt-3 text-dark/70">
|
| 178 |
+
{{ _('Advanced studies in Science, Technology, Engineering, and Mathematics with specialized labs and competitions') }}
|
| 179 |
+
</p>
|
| 180 |
+
</div>
|
| 181 |
+
|
| 182 |
+
<div class="glass-card p-6">
|
| 183 |
+
<div class="flex items-center">
|
| 184 |
+
<div class="bg-accent/10 w-12 h-12 rounded-full flex items-center justify-center mr-4">
|
| 185 |
+
<i class="fas fa-globe-africa text-accent text-xl"></i>
|
| 186 |
+
</div>
|
| 187 |
+
<h4 class="text-lg font-bold">{{ _('Global Citizenship') }}</h4>
|
| 188 |
+
</div>
|
| 189 |
+
<p class="mt-3 text-dark/70">
|
| 190 |
+
{{ _('International exchange programs, Model UN, and global awareness curriculum') }}
|
| 191 |
+
</p>
|
| 192 |
+
</div>
|
| 193 |
+
|
| 194 |
+
<div class="glass-card p-6">
|
| 195 |
+
<div class="flex items-center">
|
| 196 |
+
<div class="bg-primary/10 w-12 h-12 rounded-full flex items-center justify-center mr-4">
|
| 197 |
+
<i class="fas fa-laptop-code text-primary text-xl"></i>
|
| 198 |
+
</div>
|
| 199 |
+
<h4 class="text-lg font-bold">{{ _('Digital Literacy') }}</h4>
|
| 200 |
+
</div>
|
| 201 |
+
<p class="mt-3 text-dark/70">
|
| 202 |
+
{{ _('Comprehensive ICT education with coding, robotics, and digital creativity courses') }}
|
| 203 |
+
</p>
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
</div>
|
| 208 |
+
</div>
|
| 209 |
+
</div>
|
| 210 |
+
</section>
|
| 211 |
+
|
| 212 |
+
<!-- Academic Calendar -->
|
| 213 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 214 |
+
<div class="container mx-auto px-4">
|
| 215 |
+
<div class="flex flex-col md:flex-row justify-between items-center mb-12">
|
| 216 |
+
<h2 class="section-title">{{ _('Academic Calendar') }}</h2>
|
| 217 |
+
<a href="{{ url_for('download_file', category='academics', filename='academic-calendar-2023.pdf') }}" class="btn-secondary mt-4 md:mt-0">
|
| 218 |
+
{{ _('Download Full Calendar') }}
|
| 219 |
+
</a>
|
| 220 |
+
</div>
|
| 221 |
+
|
| 222 |
+
<div class="glass-card p-6 overflow-x-auto">
|
| 223 |
+
<table class="min-w-full">
|
| 224 |
+
<thead>
|
| 225 |
+
<tr class="bg-primary/10">
|
| 226 |
+
<th class="py-3 px-4 text-left">{{ _('Term') }}</th>
|
| 227 |
+
<th class="py-3 px-4 text-left">{{ _('Start Date') }}</th>
|
| 228 |
+
<th class="py-3 px-4 text-left">{{ _('End Date') }}</th>
|
| 229 |
+
<th class="py-3 px-4 text-left">{{ _('Key Events') }}</th>
|
| 230 |
+
</tr>
|
| 231 |
+
</thead>
|
| 232 |
+
<tbody>
|
| 233 |
+
{% for term in calendar %}
|
| 234 |
+
<tr class="border-b border-white/20">
|
| 235 |
+
<td class="py-3 px-4 font-bold">{{ term.name }}</td>
|
| 236 |
+
<td class="py-3 px-4">{{ term.start_date|format_date }}</td>
|
| 237 |
+
<td class="py-3 px-4">{{ term.end_date|format_date }}</td>
|
| 238 |
+
<td class="py-3 px-4">
|
| 239 |
+
<ul class="list-disc pl-5">
|
| 240 |
+
{% for event in term.events %}
|
| 241 |
+
<li>{{ event }}</li>
|
| 242 |
+
{% endfor %}
|
| 243 |
+
</ul>
|
| 244 |
+
</td>
|
| 245 |
+
</tr>
|
| 246 |
+
{% endfor %}
|
| 247 |
+
</tbody>
|
| 248 |
+
</table>
|
| 249 |
+
</div>
|
| 250 |
+
|
| 251 |
+
<div class="mt-12 glass-card p-6">
|
| 252 |
+
<h3 class="text-2xl font-bold mb-6 text-center">{{ _('Upcoming Academic Events') }}</h3>
|
| 253 |
+
|
| 254 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 255 |
+
{% for event in upcoming_events %}
|
| 256 |
+
<div class="glass-card p-4">
|
| 257 |
+
<div class="flex items-center justify-between mb-3">
|
| 258 |
+
<span class="bg-{{ event.color }}/10 text-{{ event.color }} px-3 py-1 rounded-full text-sm">{{ event.term }}</span>
|
| 259 |
+
<span class="text-sm text-dark/70">{{ event.date|format_date }}</span>
|
| 260 |
+
</div>
|
| 261 |
+
<h4 class="font-bold text-lg">{{ event.title }}</h4>
|
| 262 |
+
<p class="text-dark/70 mt-2">{{ event.description }}</p>
|
| 263 |
+
</div>
|
| 264 |
+
{% endfor %}
|
| 265 |
+
</div>
|
| 266 |
+
</div>
|
| 267 |
+
</div>
|
| 268 |
+
</section>
|
| 269 |
+
|
| 270 |
+
<!-- Resources & Downloads -->
|
| 271 |
+
<section class="py-16">
|
| 272 |
+
<div class="container mx-auto px-4">
|
| 273 |
+
<h2 class="section-title">{{ _('Learning Resources') }}</h2>
|
| 274 |
+
|
| 275 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mt-12">
|
| 276 |
+
<div class="glass-card p-6 text-center transform transition-all duration-300 hover:-translate-y-2">
|
| 277 |
+
<div class="text-5xl text-primary mb-4">
|
| 278 |
+
<i class="fas fa-book-open"></i>
|
| 279 |
+
</div>
|
| 280 |
+
<h3 class="text-xl font-bold mb-3">{{ _('Syllabus Guides') }}</h3>
|
| 281 |
+
<p class="text-dark/70 mb-4">{{ _('Detailed subject syllabi and learning objectives') }}</p>
|
| 282 |
+
<a href="#" class="btn-secondary">{{ _('View Resources') }}</a>
|
| 283 |
+
</div>
|
| 284 |
+
|
| 285 |
+
<div class="glass-card p-6 text-center transform transition-all duration-300 hover:-translate-y-2">
|
| 286 |
+
<div class="text-5xl text-secondary mb-4">
|
| 287 |
+
<i class="fas fa-laptop"></i>
|
| 288 |
+
</div>
|
| 289 |
+
<h3 class="text-xl font-bold mb-3">{{ _('E-Learning Portal') }}</h3>
|
| 290 |
+
<p class="text-dark/70 mb-4">{{ _('Access to online courses, materials, and assignments') }}</p>
|
| 291 |
+
<a href="#" class="btn-secondary">{{ _('Login to Portal') }}</a>
|
| 292 |
+
</div>
|
| 293 |
+
|
| 294 |
+
<div class="glass-card p-6 text-center transform transition-all duration-300 hover:-translate-y-2">
|
| 295 |
+
<div class="text-5xl text-accent mb-4">
|
| 296 |
+
<i class="fas fa-graduation-cap"></i>
|
| 297 |
+
</div>
|
| 298 |
+
<h3 class="text-xl font-bold mb-3">{{ _('University Prep') }}</h3>
|
| 299 |
+
<p class="text-dark/70 mb-4">{{ _('Resources for university applications and scholarships') }}</p>
|
| 300 |
+
<a href="#" class="btn-secondary">{{ _('Explore Options') }}</a>
|
| 301 |
+
</div>
|
| 302 |
+
|
| 303 |
+
<div class="glass-card p-6 text-center transform transition-all duration-300 hover:-translate-y-2">
|
| 304 |
+
<div class="text-5xl text-primary mb-4">
|
| 305 |
+
<i class="fas fa-download"></i>
|
| 306 |
+
</div>
|
| 307 |
+
<h3 class="text-xl font-bold mb-3">{{ _('Download Center') }}</h3>
|
| 308 |
+
<p class="text-dark/70 mb-4">{{ _('Timetables, syllabi, and academic forms') }}</p>
|
| 309 |
+
<a href="#" class="btn-secondary">{{ _('Browse Files') }}</a>
|
| 310 |
+
</div>
|
| 311 |
+
</div>
|
| 312 |
+
</div>
|
| 313 |
+
</section>
|
| 314 |
+
{% endblock %}
|
templates/admin/application_detail.html
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- templates/admin/application_detail.html -->
|
| 2 |
+
{% extends "admin/base.html" %}
|
| 3 |
+
|
| 4 |
+
{% block admin_title %}{{ _('Application') }} #{{ application.id|truncate(8) }}{% endblock %}
|
| 5 |
+
|
| 6 |
+
{% block admin_content %}
|
| 7 |
+
<div class="bg-white rounded-lg shadow overflow-hidden">
|
| 8 |
+
<!-- Application Header -->
|
| 9 |
+
<div class="px-6 py-4 border-b border-gray-200 bg-gray-50 flex justify-between items-center">
|
| 10 |
+
<div>
|
| 11 |
+
<h3 class="text-lg font-medium text-gray-900">
|
| 12 |
+
{{ application.first_name }} {{ application.last_name }}
|
| 13 |
+
<span class="ml-2 px-2 inline-flex text-xs leading-5 font-semibold rounded-full
|
| 14 |
+
{% if application.status == 'submitted' %}bg-yellow-100 text-yellow-800
|
| 15 |
+
{% elif application.status == 'accepted' %}bg-green-100 text-green-800
|
| 16 |
+
{% elif application.status == 'rejected' %}bg-red-100 text-red-800
|
| 17 |
+
{% else %}bg-gray-100 text-gray-800{% endif %}">
|
| 18 |
+
{{ application.status|title }}
|
| 19 |
+
</span>
|
| 20 |
+
</h3>
|
| 21 |
+
<p class="text-sm text-gray-500">
|
| 22 |
+
{{ _('Applying for') }}: {{ application.applying_grade }} •
|
| 23 |
+
{{ _('Submitted on') }}: {{ application.submission_date|format_date('full') }}
|
| 24 |
+
</p>
|
| 25 |
+
</div>
|
| 26 |
+
<div class="flex space-x-3">
|
| 27 |
+
<a href="#" class="inline-flex items-center px-3 py-1 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
|
| 28 |
+
<i class="fas fa-download mr-2"></i> {{ _('Download') }}
|
| 29 |
+
</a>
|
| 30 |
+
</div>
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<div class="px-6 py-4">
|
| 34 |
+
<!-- Status Update Form -->
|
| 35 |
+
<form method="POST" enctype="multipart/form-data" class="mb-8">
|
| 36 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 37 |
+
<div>
|
| 38 |
+
<label for="status" class="block text-sm font-medium text-gray-700 mb-1">{{ _('Update Status') }}</label>
|
| 39 |
+
<select id="status" name="status" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
|
| 40 |
+
<option value="submitted" {% if application.status == 'submitted' %}selected{% endif %}>{{ _('Submitted') }}</option>
|
| 41 |
+
<option value="reviewed" {% if application.status == 'reviewed' %}selected{% endif %}>{{ _('Reviewed') }}</option>
|
| 42 |
+
<option value="accepted" {% if application.status == 'accepted' %}selected{% endif %}>{{ _('Accepted') }}</option>
|
| 43 |
+
<option value="rejected" {% if application.status == 'rejected' %}selected{% endif %}>{{ _('Rejected') }}</option>
|
| 44 |
+
<option value="waitlisted" {% if application.status == 'waitlisted' %}selected{% endif %}>{{ _('Waitlisted') }}</option>
|
| 45 |
+
</select>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<div class="md:col-span-2">
|
| 49 |
+
<label for="admin_notes" class="block text-sm font-medium text-gray-700 mb-1">{{ _('Admin Notes') }}</label>
|
| 50 |
+
<textarea id="admin_notes" name="admin_notes" rows="1" class="shadow-sm focus:ring-blue-500 focus:border-blue-500 block w-full sm:text-sm border-gray-300 rounded-md">{{ application.admin_notes or '' }}</textarea>
|
| 51 |
+
</div>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<div class="mt-4">
|
| 55 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">{{ _('Upload Additional Documents') }}</label>
|
| 56 |
+
<div class="mt-1 flex items-center">
|
| 57 |
+
<input type="file" name="additional_docs" id="additional_docs" class="p-2 block w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 cursor-pointer focus:outline-none">
|
| 58 |
+
</div>
|
| 59 |
+
</div>
|
| 60 |
+
|
| 61 |
+
<div class="mt-6 flex justify-end">
|
| 62 |
+
<button type="submit" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
|
| 63 |
+
{{ _('Update Application') }}
|
| 64 |
+
</button>
|
| 65 |
+
</div>
|
| 66 |
+
</form>
|
| 67 |
+
|
| 68 |
+
<!-- Application Details Tabs -->
|
| 69 |
+
<div>
|
| 70 |
+
<div class="border-b border-gray-200">
|
| 71 |
+
<nav class="-mb-px flex space-x-8" id="applicationTabs">
|
| 72 |
+
<a href="#" data-tab="student" class="tab-link border-blue-500 text-blue-600 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">{{ _('Student Information') }}</a>
|
| 73 |
+
<a href="#" data-tab="parent" class="tab-link border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">{{ _('Parent Information') }}</a>
|
| 74 |
+
<a href="#" data-tab="documents" class="tab-link border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">{{ _('Documents') }}</a>
|
| 75 |
+
<a href="#" data-tab="additional" class="tab-link border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">{{ _('Additional Info') }}</a>
|
| 76 |
+
</nav>
|
| 77 |
+
</div>
|
| 78 |
+
|
| 79 |
+
<!-- Student Information -->
|
| 80 |
+
<div id="studentTab" class="tab-content py-6">
|
| 81 |
+
<h4 class="text-lg font-medium text-gray-900 mb-4">{{ _('Student Details') }}</h4>
|
| 82 |
+
|
| 83 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 84 |
+
<div>
|
| 85 |
+
<p class="text-sm text-gray-500">{{ _('Full Name') }}</p>
|
| 86 |
+
<p class="mt-1 text-sm font-medium text-gray-900">{{ application.first_name }} {{ application.last_name }}</p>
|
| 87 |
+
</div>
|
| 88 |
+
|
| 89 |
+
<div>
|
| 90 |
+
<p class="text-sm text-gray-500">{{ _('Date of Birth') }}</p>
|
| 91 |
+
<p class="mt-1 text-sm font-medium text-gray-900">{{ application.birthdate|format_date('full') }}</p>
|
| 92 |
+
</div>
|
| 93 |
+
|
| 94 |
+
<div>
|
| 95 |
+
<p class="text-sm text-gray-500">{{ _('Gender') }}</p>
|
| 96 |
+
<p class="mt-1 text-sm font-medium text-gray-900">{{ application.gender|title }}</p>
|
| 97 |
+
</div>
|
| 98 |
+
|
| 99 |
+
<div>
|
| 100 |
+
<p class="text-sm text-gray-500">{{ _('Nationality') }}</p>
|
| 101 |
+
<p class="mt-1 text-sm font-medium text-gray-900">{{ application.nationality or 'N/A' }}</p>
|
| 102 |
+
</div>
|
| 103 |
+
|
| 104 |
+
<div>
|
| 105 |
+
<p class="text-sm text-gray-500">{{ _('Current School') }}</p>
|
| 106 |
+
<p class="mt-1 text-sm font-medium text-gray-900">{{ application.current_school or 'N/A' }}</p>
|
| 107 |
+
</div>
|
| 108 |
+
|
| 109 |
+
<div>
|
| 110 |
+
<p class="text-sm text-gray-500">{{ _('Applying for Grade') }}</p>
|
| 111 |
+
<p class="mt-1 text-sm font-medium text-gray-900">{{ application.applying_grade or 'N/A' }}</p>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
|
| 116 |
+
<!-- Parent Information -->
|
| 117 |
+
<div id="parentTab" class="tab-content py-6 hidden">
|
| 118 |
+
<h4 class="text-lg font-medium text-gray-900 mb-4">{{ _('Parent/Guardian Details') }}</h4>
|
| 119 |
+
|
| 120 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 121 |
+
<div>
|
| 122 |
+
<p class="text-sm text-gray-500">{{ _('Parent/Guardian Name') }}</p>
|
| 123 |
+
<p class="mt-1 text-sm font-medium text-gray-900">{{ application.parent_name or 'N/A' }}</p>
|
| 124 |
+
</div>
|
| 125 |
+
|
| 126 |
+
<div>
|
| 127 |
+
<p class="text-sm text-gray-500">{{ _('Email') }}</p>
|
| 128 |
+
<p class="mt-1 text-sm font-medium text-gray-900">{{ application.parent_email or 'N/A' }}</p>
|
| 129 |
+
</div>
|
| 130 |
+
|
| 131 |
+
<div>
|
| 132 |
+
<p class="text-sm text-gray-500">{{ _('Phone Number') }}</p>
|
| 133 |
+
<p class="mt-1 text-sm font-medium text-gray-900">{{ application.parent_phone or 'N/A' }}</p>
|
| 134 |
+
</div>
|
| 135 |
+
|
| 136 |
+
<div>
|
| 137 |
+
<p class="text-sm text-gray-500">{{ _('Emergency Contact') }}</p>
|
| 138 |
+
<p class="mt-1 text-sm font-medium text-gray-900">{{ application.emergency_contact or 'N/A' }}</p>
|
| 139 |
+
</div>
|
| 140 |
+
|
| 141 |
+
<div class="md:col-span-2">
|
| 142 |
+
<p class="text-sm text-gray-500">{{ _('Address') }}</p>
|
| 143 |
+
<p class="mt-1 text-sm font-medium text-gray-900">{{ application.address or 'N/A' }}</p>
|
| 144 |
+
</div>
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
|
| 148 |
+
<!-- Documents -->
|
| 149 |
+
<div id="documentsTab" class="tab-content py-6 hidden">
|
| 150 |
+
<h4 class="text-lg font-medium text-gray-900 mb-4">{{ _('Application Documents') }}</h4>
|
| 151 |
+
|
| 152 |
+
<!-- Applicant Documents -->
|
| 153 |
+
<div class="mb-8">
|
| 154 |
+
<h5 class="text-md font-medium text-gray-700 mb-3">{{ _('Applicant Submitted Documents') }}</h5>
|
| 155 |
+
{% if documents %}
|
| 156 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 157 |
+
{% for doc in documents %}
|
| 158 |
+
<div class="border rounded-md p-4 bg-gray-50">
|
| 159 |
+
<div class="flex justify-between items-start">
|
| 160 |
+
<div>
|
| 161 |
+
<p class="text-sm font-medium text-gray-900">{{ doc.name }}</p>
|
| 162 |
+
<p class="text-xs text-gray-500 truncate">{{ doc.filename }}</p>
|
| 163 |
+
</div>
|
| 164 |
+
<a href="{{ doc.path }}"
|
| 165 |
+
class="text-blue-600 hover:text-blue-800 text-sm font-medium">
|
| 166 |
+
{{ _('Download') }}
|
| 167 |
+
</a>
|
| 168 |
+
</div>
|
| 169 |
+
</div>
|
| 170 |
+
{% endfor %}
|
| 171 |
+
</div>
|
| 172 |
+
{% else %}
|
| 173 |
+
<p class="text-sm text-gray-500 italic">{{ _('No documents uploaded by applicant') }}</p>
|
| 174 |
+
{% endif %}
|
| 175 |
+
</div>
|
| 176 |
+
|
| 177 |
+
<!-- Admin Uploaded Documents -->
|
| 178 |
+
<div>
|
| 179 |
+
<h5 class="text-md font-medium text-gray-700 mb-3">{{ _('Admin Uploaded Documents') }}</h5>
|
| 180 |
+
{% if admin_documents %}
|
| 181 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 182 |
+
{% for doc in admin_documents %}
|
| 183 |
+
<div class="border rounded-md p-4 bg-blue-50">
|
| 184 |
+
<div class="flex justify-between items-start">
|
| 185 |
+
<div>
|
| 186 |
+
<p class="text-sm font-medium text-gray-900">{{ doc.name }}</p>
|
| 187 |
+
<p class="text-xs text-gray-500">
|
| 188 |
+
{{ _('Uploaded by') }}: {{ doc.uploaded_by }}<br>
|
| 189 |
+
{{ _('on') }}: {{ doc.upload_date }}
|
| 190 |
+
</p>
|
| 191 |
+
</div>
|
| 192 |
+
<a href="{{ doc.path }}"
|
| 193 |
+
class="text-blue-600 hover:text-blue-800 text-sm font-medium">
|
| 194 |
+
{{ _('Download') }}
|
| 195 |
+
</a>
|
| 196 |
+
</div>
|
| 197 |
+
</div>
|
| 198 |
+
{% endfor %}
|
| 199 |
+
</div>
|
| 200 |
+
{% else %}
|
| 201 |
+
<p class="text-sm text-gray-500 italic">{{ _('No additional documents uploaded by admin') }}</p>
|
| 202 |
+
{% endif %}
|
| 203 |
+
</div>
|
| 204 |
+
</div>
|
| 205 |
+
|
| 206 |
+
<!-- Additional Information -->
|
| 207 |
+
<div id="additionalTab" class="tab-content py-6 hidden">
|
| 208 |
+
<h4 class="text-lg font-medium text-gray-900 mb-4">{{ _('Additional Information') }}</h4>
|
| 209 |
+
|
| 210 |
+
<div class="grid grid-cols-1 gap-6">
|
| 211 |
+
<div>
|
| 212 |
+
<p class="text-sm text-gray-500">{{ _('Medical Conditions') }}</p>
|
| 213 |
+
<p class="mt-1 text-sm text-gray-900 bg-gray-50 p-3 rounded-md">
|
| 214 |
+
{{ application.medical_conditions or 'None reported' }}
|
| 215 |
+
</p>
|
| 216 |
+
</div>
|
| 217 |
+
|
| 218 |
+
<div>
|
| 219 |
+
<p class="text-sm text-gray-500">{{ _('Previous Schools') }}</p>
|
| 220 |
+
<p class="mt-1 text-sm text-gray-900 bg-gray-50 p-3 rounded-md">
|
| 221 |
+
{{ application.previous_schools or 'None specified' }}
|
| 222 |
+
</p>
|
| 223 |
+
</div>
|
| 224 |
+
|
| 225 |
+
<div>
|
| 226 |
+
<p class="text-sm text-gray-500">{{ _('Extracurricular Activities') }}</p>
|
| 227 |
+
<p class="mt-1 text-sm text-gray-900 bg-gray-50 p-3 rounded-md">
|
| 228 |
+
{{ application.extracurriculars or 'None specified' }}
|
| 229 |
+
</p>
|
| 230 |
+
</div>
|
| 231 |
+
|
| 232 |
+
<div>
|
| 233 |
+
<p class="text-sm text-gray-500">{{ _('Why do you want to join our school?') }}</p>
|
| 234 |
+
<p class="mt-1 text-sm text-gray-900 bg-gray-50 p-3 rounded-md">
|
| 235 |
+
{{ application.why_join or 'No response' }}
|
| 236 |
+
</p>
|
| 237 |
+
</div>
|
| 238 |
+
</div>
|
| 239 |
+
</div>
|
| 240 |
+
</div>
|
| 241 |
+
</div>
|
| 242 |
+
</div>
|
| 243 |
+
|
| 244 |
+
<script>
|
| 245 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 246 |
+
// Tab switching functionality
|
| 247 |
+
const tabs = document.querySelectorAll('.tab-link');
|
| 248 |
+
const tabContents = document.querySelectorAll('.tab-content');
|
| 249 |
+
|
| 250 |
+
// Show first tab by default
|
| 251 |
+
if (tabs.length > 0 && tabContents.length > 0) {
|
| 252 |
+
tabs[0].classList.add('border-blue-500', 'text-blue-600');
|
| 253 |
+
tabs[0].classList.remove('border-transparent', 'text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
|
| 254 |
+
tabContents[0].classList.remove('hidden');
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
tabs.forEach(tab => {
|
| 258 |
+
tab.addEventListener('click', function(e) {
|
| 259 |
+
e.preventDefault();
|
| 260 |
+
|
| 261 |
+
// Hide all tab contents
|
| 262 |
+
tabContents.forEach(content => {
|
| 263 |
+
content.classList.add('hidden');
|
| 264 |
+
});
|
| 265 |
+
|
| 266 |
+
// Remove active styles from all tabs
|
| 267 |
+
tabs.forEach(t => {
|
| 268 |
+
t.classList.remove('border-blue-500', 'text-blue-600');
|
| 269 |
+
t.classList.add('border-transparent', 'text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
|
| 270 |
+
});
|
| 271 |
+
|
| 272 |
+
// Add active styles to clicked tab
|
| 273 |
+
this.classList.remove('border-transparent', 'text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
|
| 274 |
+
this.classList.add('border-blue-500', 'text-blue-600');
|
| 275 |
+
|
| 276 |
+
// Show corresponding content
|
| 277 |
+
const tabName = this.getAttribute('data-tab');
|
| 278 |
+
document.getElementById(`${tabName}Tab`).classList.remove('hidden');
|
| 279 |
+
});
|
| 280 |
+
});
|
| 281 |
+
});
|
| 282 |
+
</script>
|
| 283 |
+
|
| 284 |
+
<style>
|
| 285 |
+
.tab-link {
|
| 286 |
+
transition: all 0.2s ease;
|
| 287 |
+
cursor: pointer;
|
| 288 |
+
}
|
| 289 |
+
</style>
|
| 290 |
+
{% endblock %}
|
templates/admin/applications.html
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- admin/applications.html -->
|
| 2 |
+
{% extends "admin/base.html" %}
|
| 3 |
+
|
| 4 |
+
{% block admin_title %}{{ _('Applications') }}{% endblock %}
|
| 5 |
+
|
| 6 |
+
{% block admin_content %}
|
| 7 |
+
<div class="bg-white p-6 rounded-lg shadow mb-6">
|
| 8 |
+
<div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6">
|
| 9 |
+
<h2 class="text-xl font-semibold mb-4 md:mb-0">{{ _('Manage Applications') }}</h2>
|
| 10 |
+
|
| 11 |
+
<div class="flex space-x-2">
|
| 12 |
+
<div class="relative">
|
| 13 |
+
<select id="status-filter" class="appearance-none bg-gray-100 border border-gray-300 rounded-md pl-3 pr-8 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 14 |
+
<option value="all" {% if status_filter == 'all' %}selected{% endif %}>{{ _('All Statuses') }}</option>
|
| 15 |
+
<option value="submitted" {% if status_filter == 'submitted' %}selected{% endif %}>{{ _('Submitted') }}</option>
|
| 16 |
+
<option value="reviewed" {% if status_filter == 'reviewed' %}selected{% endif %}>{{ _('Reviewed') }}</option>
|
| 17 |
+
<option value="accepted" {% if status_filter == 'accepted' %}selected{% endif %}>{{ _('Accepted') }}</option>
|
| 18 |
+
<option value="rejected" {% if status_filter == 'rejected' %}selected{% endif %}>{{ _('Rejected') }}</option>
|
| 19 |
+
</select>
|
| 20 |
+
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
|
| 21 |
+
<i class="fas fa-chevron-down text-xs"></i>
|
| 22 |
+
</div>
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
<div class="relative">
|
| 26 |
+
<input type="text" id="search-input" placeholder="{{ _('Search...') }}"
|
| 27 |
+
value="{{ search_query }}" class="bg-gray-100 border border-gray-300 rounded-md pl-3 pr-8 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 28 |
+
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
|
| 29 |
+
<i class="fas fa-search"></i>
|
| 30 |
+
</div>
|
| 31 |
+
</div>
|
| 32 |
+
</div>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
{% if applications %}
|
| 36 |
+
<div class="overflow-x-auto">
|
| 37 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 38 |
+
<thead class="bg-gray-50">
|
| 39 |
+
<tr>
|
| 40 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">{{ _('ID') }}</th>
|
| 41 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">{{ _('Name') }}</th>
|
| 42 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">{{ _('Parent') }}</th>
|
| 43 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">{{ _('Grade') }}</th>
|
| 44 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">{{ _('Status') }}</th>
|
| 45 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">{{ _('Submitted') }}</th>
|
| 46 |
+
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase">{{ _('Actions') }}</th>
|
| 47 |
+
</tr>
|
| 48 |
+
</thead>
|
| 49 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 50 |
+
{% for app in applications %}
|
| 51 |
+
<tr class="hover:bg-gray-50">
|
| 52 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
|
| 53 |
+
{{ app.id|truncate(8) }}
|
| 54 |
+
</td>
|
| 55 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 56 |
+
{{ app.first_name }} {{ app.last_name }}
|
| 57 |
+
</td>
|
| 58 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 59 |
+
{{ app.parent_name }}<br>
|
| 60 |
+
<span class="text-xs text-gray-400">{{ app.parent_email }}</span>
|
| 61 |
+
</td>
|
| 62 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 63 |
+
{{ app.applying_grade }}
|
| 64 |
+
</td>
|
| 65 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 66 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full
|
| 67 |
+
{% if app.status == 'submitted' %}bg-yellow-100 text-yellow-800
|
| 68 |
+
{% elif app.status == 'accepted' %}bg-green-100 text-green-800
|
| 69 |
+
{% elif app.status == 'rejected' %}bg-red-100 text-red-800
|
| 70 |
+
{% else %}bg-gray-100 text-gray-800{% endif %}">
|
| 71 |
+
{{ app.status|title }}
|
| 72 |
+
</span>
|
| 73 |
+
</td>
|
| 74 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 75 |
+
{{ app.submission_date|format_date('medium') }}
|
| 76 |
+
</td>
|
| 77 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
| 78 |
+
<a href="{{ url_for('admin_application_detail', application_id=app.id) }}" class="text-blue-600 hover:text-blue-900 mr-3">
|
| 79 |
+
<i class="fas fa-eye"></i>
|
| 80 |
+
</a>
|
| 81 |
+
<a href="#" class="text-gray-600 hover:text-gray-900">
|
| 82 |
+
<i class="fas fa-download"></i>
|
| 83 |
+
</a>
|
| 84 |
+
</td>
|
| 85 |
+
</tr>
|
| 86 |
+
{% endfor %}
|
| 87 |
+
</tbody>
|
| 88 |
+
</table>
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
{% if total_pages > 1 %}
|
| 92 |
+
<div class="flex items-center justify-between mt-6">
|
| 93 |
+
<div class="text-sm text-gray-700">
|
| 94 |
+
{{ _('Showing') }} <span class="font-medium">{{ (current_page-1)*APPLICATIONS_PER_PAGE + 1 }}</span>
|
| 95 |
+
{{ _('to') }} <span class="font-medium">{{ min(current_page*APPLICATIONS_PER_PAGE, (applications|length)) }}</span>
|
| 96 |
+
{{ _('of') }} <span class="font-medium">{{ applications|length }}</span> {{ _('results') }}
|
| 97 |
+
</div>
|
| 98 |
+
<div class="flex space-x-2">
|
| 99 |
+
{% if current_page > 1 %}
|
| 100 |
+
<a href="{{ url_for('admin_applications', page=current_page-1, status=status_filter, search=search_query) }}"
|
| 101 |
+
class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50">
|
| 102 |
+
{{ _('Previous') }}
|
| 103 |
+
</a>
|
| 104 |
+
{% endif %}
|
| 105 |
+
|
| 106 |
+
{% for page_num in range(1, total_pages+1) %}
|
| 107 |
+
<a href="{{ url_for('admin_applications', page=page_num, status=status_filter, search=search_query) }}"
|
| 108 |
+
class="px-3 py-1 border rounded-md text-sm font-medium {% if page_num == current_page %}bg-blue-600 text-white border-blue-600{% else %}border-gray-300 text-gray-700 hover:bg-gray-50{% endif %}">
|
| 109 |
+
{{ page_num }}
|
| 110 |
+
</a>
|
| 111 |
+
{% endfor %}
|
| 112 |
+
|
| 113 |
+
{% if current_page < total_pages %}
|
| 114 |
+
<a href="{{ url_for('admin_applications', page=current_page+1, status=status_filter, search=search_query) }}"
|
| 115 |
+
class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50">
|
| 116 |
+
{{ _('Next') }}
|
| 117 |
+
</a>
|
| 118 |
+
{% endif %}
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
{% endif %}
|
| 122 |
+
{% else %}
|
| 123 |
+
<div class="text-center py-12">
|
| 124 |
+
<i class="fas fa-file-alt text-4xl text-gray-300 mb-4"></i>
|
| 125 |
+
<h3 class="text-lg font-medium text-gray-900">{{ _('No applications found') }}</h3>
|
| 126 |
+
<p class="mt-1 text-sm text-gray-500">{{ _('Try changing your filters or search criteria') }}</p>
|
| 127 |
+
</div>
|
| 128 |
+
{% endif %}
|
| 129 |
+
</div>
|
| 130 |
+
|
| 131 |
+
<script>
|
| 132 |
+
document.getElementById('status-filter').addEventListener('change', function() {
|
| 133 |
+
const status = this.value;
|
| 134 |
+
const search = document.getElementById('search-input').value;
|
| 135 |
+
window.location.href = `{{ url_for('admin_applications') }}?status=${status}&search=${encodeURIComponent(search)}`;
|
| 136 |
+
});
|
| 137 |
+
|
| 138 |
+
document.getElementById('search-input').addEventListener('keyup', function(e) {
|
| 139 |
+
if (e.key === 'Enter') {
|
| 140 |
+
const status = document.getElementById('status-filter').value;
|
| 141 |
+
const search = this.value;
|
| 142 |
+
window.location.href = `{{ url_for('admin_applications') }}?status=${status}&search=${encodeURIComponent(search)}`;
|
| 143 |
+
}
|
| 144 |
+
});
|
| 145 |
+
</script>
|
| 146 |
+
{% endblock %}
|
templates/admin/base.html
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- admin/base.html -->
|
| 2 |
+
<!DOCTYPE html>
|
| 3 |
+
<html lang="en">
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<title>{{ _('Admin Panel') }} | {{ school_name }}</title>
|
| 8 |
+
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
| 10 |
+
</head>
|
| 11 |
+
<body class="bg-gray-100">
|
| 12 |
+
<div class="flex h-screen">
|
| 13 |
+
<!-- Sidebar -->
|
| 14 |
+
<div class="bg-blue-800 text-white w-64 flex-shrink-0">
|
| 15 |
+
<div class="p-4 border-b border-blue-700">
|
| 16 |
+
<h1 class="text-xl font-bold">{{ _('Admin Panel') }}</h1>
|
| 17 |
+
<p class="text-sm text-blue-200">{{ school_name }}</p>
|
| 18 |
+
</div>
|
| 19 |
+
<nav class="p-2">
|
| 20 |
+
<a href="{{ url_for('admin_dashboard') }}" class="block py-2 px-4 rounded hover:bg-blue-700 {{ 'bg-blue-700' if request.endpoint == 'admin_dashboard' }}">
|
| 21 |
+
<i class="fas fa-tachometer-alt mr-2"></i> {{ _('Dashboard') }}
|
| 22 |
+
</a>
|
| 23 |
+
<a href="{{ url_for('admin_applications') }}" class="block py-2 px-4 rounded hover:bg-blue-700 {{ 'bg-blue-700' if request.endpoint.startswith('admin_application') }}">
|
| 24 |
+
<i class="fas fa-file-alt mr-2"></i> {{ _('Applications') }}
|
| 25 |
+
</a>
|
| 26 |
+
<a href="{{ url_for('admin_settings') }}" class="block py-2 px-4 rounded hover:bg-blue-700 {{ 'bg-blue-700' if request.endpoint == 'admin_settings' }}">
|
| 27 |
+
<i class="fas fa-cog mr-2"></i> {{ _('Settings') }}
|
| 28 |
+
</a>
|
| 29 |
+
<a href="{{ url_for('admin_logout') }}" class="block py-2 px-4 rounded hover:bg-blue-700 text-red-200 hover:text-white">
|
| 30 |
+
<i class="fas fa-sign-out-alt mr-2"></i> {{ _('Logout') }}
|
| 31 |
+
</a>
|
| 32 |
+
</nav>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
<!-- Main Content -->
|
| 36 |
+
<div class="flex-1 overflow-auto">
|
| 37 |
+
<header class="bg-white shadow-sm p-4 flex justify-between items-center">
|
| 38 |
+
<h2 class="text-xl font-semibold text-gray-800">{% block admin_title %}{% endblock %}</h2>
|
| 39 |
+
<div class="text-sm text-gray-600">
|
| 40 |
+
{{ _('Logged in as') }} <span class="font-medium">admin</span>
|
| 41 |
+
</div>
|
| 42 |
+
</header>
|
| 43 |
+
|
| 44 |
+
<main class="p-6">
|
| 45 |
+
{% with messages = get_flashed_messages(with_categories=true) %}
|
| 46 |
+
{% if messages %}
|
| 47 |
+
{% for category, message in messages %}
|
| 48 |
+
<div class="mb-4 p-4 rounded {% if category == 'error' %}bg-red-100 text-red-800{% else %}bg-green-100 text-green-800{% endif %}">
|
| 49 |
+
{{ message }}
|
| 50 |
+
</div>
|
| 51 |
+
{% endfor %}
|
| 52 |
+
{% endif %}
|
| 53 |
+
{% endwith %}
|
| 54 |
+
|
| 55 |
+
{% block admin_content %}{% endblock %}
|
| 56 |
+
</main>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
</body>
|
| 60 |
+
</html>
|
templates/admin/content.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
<!-- admin/content.html -->
|
templates/admin/dashboard.html
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- admin/dashboard.html -->
|
| 2 |
+
{% extends "admin/base.html" %}
|
| 3 |
+
|
| 4 |
+
{% block admin_title %}{{ _('Dashboard') }}{% endblock %}
|
| 5 |
+
|
| 6 |
+
{% block admin_content %}
|
| 7 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
|
| 8 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
| 9 |
+
<h3 class="text-gray-500 text-sm font-medium">{{ _('Total Applications') }}</h3>
|
| 10 |
+
<p class="text-3xl font-bold text-blue-600">{{ stats.total }}</p>
|
| 11 |
+
</div>
|
| 12 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
| 13 |
+
<h3 class="text-gray-500 text-sm font-medium">{{ _('Submitted') }}</h3>
|
| 14 |
+
<p class="text-3xl font-bold text-yellow-600">{{ stats.submitted }}</p>
|
| 15 |
+
</div>
|
| 16 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
| 17 |
+
<h3 class="text-gray-500 text-sm font-medium">{{ _('Accepted') }}</h3>
|
| 18 |
+
<p class="text-3xl font-bold text-green-600">{{ stats.accepted }}</p>
|
| 19 |
+
</div>
|
| 20 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
| 21 |
+
<h3 class="text-gray-500 text-sm font-medium">{{ _('Rejected') }}</h3>
|
| 22 |
+
<p class="text-3xl font-bold text-red-600">{{ stats.rejected }}</p>
|
| 23 |
+
</div>
|
| 24 |
+
</div>
|
| 25 |
+
|
| 26 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
| 27 |
+
<h3 class="text-lg font-semibold mb-4">{{ _('Recent Applications') }}</h3>
|
| 28 |
+
{% set recent_apps = load_data('applications')|sort(attribute='submission_date', reverse=True)|slice(5) %}
|
| 29 |
+
{% if recent_apps %}
|
| 30 |
+
<div class="overflow-x-auto">
|
| 31 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 32 |
+
<thead class="bg-gray-50">
|
| 33 |
+
<tr>
|
| 34 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">{{ _('ID') }}</th>
|
| 35 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">{{ _('Name') }}</th>
|
| 36 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">{{ _('Grade') }}</th>
|
| 37 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">{{ _('Status') }}</th>
|
| 38 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">{{ _('Date') }}</th>
|
| 39 |
+
</tr>
|
| 40 |
+
</thead>
|
| 41 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 42 |
+
{% for app in recent_apps %}
|
| 43 |
+
<tr class="hover:bg-gray-50">
|
| 44 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
|
| 45 |
+
<a href="{{ url_for('admin_application_detail', application_id=app.id) }}" class="text-blue-600 hover:underline">
|
| 46 |
+
{{ app.id|truncate(8) }}
|
| 47 |
+
</a>
|
| 48 |
+
</td>
|
| 49 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 50 |
+
{{ app.first_name }} {{ app.last_name }}
|
| 51 |
+
</td>
|
| 52 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 53 |
+
{{ app.applying_grade }}
|
| 54 |
+
</td>
|
| 55 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 56 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full
|
| 57 |
+
{% if app.status == 'submitted' %}bg-yellow-100 text-yellow-800
|
| 58 |
+
{% elif app.status == 'accepted' %}bg-green-100 text-green-800
|
| 59 |
+
{% elif app.status == 'rejected' %}bg-red-100 text-red-800
|
| 60 |
+
{% else %}bg-gray-100 text-gray-800{% endif %}">
|
| 61 |
+
{{ app.status|title }}
|
| 62 |
+
</span>
|
| 63 |
+
</td>
|
| 64 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 65 |
+
{{ app.submission_date|format_date('medium') }}
|
| 66 |
+
</td>
|
| 67 |
+
</tr>
|
| 68 |
+
{% endfor %}
|
| 69 |
+
</tbody>
|
| 70 |
+
</table>
|
| 71 |
+
</div>
|
| 72 |
+
{% else %}
|
| 73 |
+
<p class="text-gray-500">{{ _('No applications found') }}</p>
|
| 74 |
+
{% endif %}
|
| 75 |
+
</div>
|
| 76 |
+
{% endblock %}
|
templates/admin/login.html
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- admin/login.html -->
|
| 2 |
+
<!DOCTYPE html>
|
| 3 |
+
<html lang="en">
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<title>{{ _('Admin Login') }} | {{ school_name }}</title>
|
| 8 |
+
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
| 10 |
+
</head>
|
| 11 |
+
<body class="bg-gray-100 h-screen flex items-center justify-center">
|
| 12 |
+
<div class="w-full max-w-md">
|
| 13 |
+
<div class="bg-white rounded-lg shadow-lg overflow-hidden">
|
| 14 |
+
<div class="bg-blue-600 py-4 px-6">
|
| 15 |
+
<h1 class="text-xl font-bold text-white">{{ school_name }}</h1>
|
| 16 |
+
<p class="text-blue-100 text-sm">{{ _('Administrator Portal') }}</p>
|
| 17 |
+
</div>
|
| 18 |
+
|
| 19 |
+
<div class="p-6">
|
| 20 |
+
{% with messages = get_flashed_messages(with_categories=true) %}
|
| 21 |
+
{% if messages %}
|
| 22 |
+
{% for category, message in messages %}
|
| 23 |
+
<div class="mb-4 p-3 rounded {% if category == 'error' %}bg-red-100 text-red-800{% else %}bg-green-100 text-green-800{% endif %}">
|
| 24 |
+
{{ message }}
|
| 25 |
+
</div>
|
| 26 |
+
{% endfor %}
|
| 27 |
+
{% endif %}
|
| 28 |
+
{% endwith %}
|
| 29 |
+
|
| 30 |
+
<form method="POST" class="space-y-6">
|
| 31 |
+
<div>
|
| 32 |
+
<label for="username" class="block text-sm font-medium text-gray-700">{{ _('Username') }}</label>
|
| 33 |
+
<div class="mt-1">
|
| 34 |
+
<input id="username" name="username" type="text" required
|
| 35 |
+
class="appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm">
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
| 38 |
+
|
| 39 |
+
<div>
|
| 40 |
+
<label for="password" class="block text-sm font-medium text-gray-700">{{ _('Password') }}</label>
|
| 41 |
+
<div class="mt-1">
|
| 42 |
+
<input id="password" name="password" type="password" required
|
| 43 |
+
class="appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm">
|
| 44 |
+
</div>
|
| 45 |
+
</div>
|
| 46 |
+
|
| 47 |
+
<div>
|
| 48 |
+
<button type="submit" class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
|
| 49 |
+
{{ _('Sign in') }}
|
| 50 |
+
</button>
|
| 51 |
+
</div>
|
| 52 |
+
</form>
|
| 53 |
+
</div>
|
| 54 |
+
</div>
|
| 55 |
+
|
| 56 |
+
<div class="mt-6 text-center text-sm text-gray-600">
|
| 57 |
+
<p>{{ _('For authorized personnel only. Unauthorized access is prohibited.') }}</p>
|
| 58 |
+
</div>
|
| 59 |
+
</div>
|
| 60 |
+
</body>
|
| 61 |
+
</html>
|
templates/admin/manage_content.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
<!-- admin/manage_content.html -->
|
templates/admin/settings.html
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- admin/settings.html -->
|
| 2 |
+
{% extends "admin/base.html" %}
|
| 3 |
+
|
| 4 |
+
{% block admin_title %}{{ _('Admin Settings') }}{% endblock %}
|
| 5 |
+
|
| 6 |
+
{% block admin_content %}
|
| 7 |
+
<div class="bg-white rounded-lg shadow overflow-hidden">
|
| 8 |
+
<div class="px-6 py-4 border-b border-gray-200 bg-gray-50">
|
| 9 |
+
<h3 class="text-lg font-medium text-gray-900">{{ _('Account Settings') }}</h3>
|
| 10 |
+
<p class="mt-1 text-sm text-gray-500">{{ _('Update your administrator account details') }}</p>
|
| 11 |
+
</div>
|
| 12 |
+
|
| 13 |
+
<div class="px-6 py-4">
|
| 14 |
+
<form method="POST" class="space-y-6">
|
| 15 |
+
<div class="grid grid-cols-1 gap-6">
|
| 16 |
+
<div>
|
| 17 |
+
<label for="current_password" class="block text-sm font-medium text-gray-700">{{ _('Current Password') }}</label>
|
| 18 |
+
<input type="password" id="current_password" name="current_password" required
|
| 19 |
+
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm">
|
| 20 |
+
</div>
|
| 21 |
+
|
| 22 |
+
<div>
|
| 23 |
+
<label for="new_password" class="block text-sm font-medium text-gray-700">{{ _('New Password') }}</label>
|
| 24 |
+
<input type="password" id="new_password" name="new_password" required
|
| 25 |
+
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm">
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<div>
|
| 29 |
+
<label for="confirm_password" class="block text-sm font-medium text-gray-700">{{ _('Confirm New Password') }}</label>
|
| 30 |
+
<input type="password" id="confirm_password" name="confirm_password" required
|
| 31 |
+
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm">
|
| 32 |
+
</div>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
<div class="flex justify-end">
|
| 36 |
+
<button type="submit" class="ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
|
| 37 |
+
{{ _('Update Password') }}
|
| 38 |
+
</button>
|
| 39 |
+
</div>
|
| 40 |
+
</form>
|
| 41 |
+
</div>
|
| 42 |
+
</div>
|
| 43 |
+
{% endblock %}
|
templates/admissions.html
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<!-- Hero Section -->
|
| 5 |
+
<section class="relative py-20 bg-gradient-to-r from-primary to-secondary text-white">
|
| 6 |
+
<div class="container mx-auto px-4 text-center">
|
| 7 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-6">{{ _('Admissions') }}</h1>
|
| 8 |
+
<p class="text-xl max-w-2xl mx-auto">{{ _('Join our community of learners and achievers. Start your journey with Munishi School today.') }}</p>
|
| 9 |
+
</div>
|
| 10 |
+
</section>
|
| 11 |
+
|
| 12 |
+
<!-- Admissions Process -->
|
| 13 |
+
<section class="py-16">
|
| 14 |
+
<div class="container mx-auto px-4">
|
| 15 |
+
<div class="glass-card p-8">
|
| 16 |
+
<h2 class="section-title">{{ _('Admissions Process') }}</h2>
|
| 17 |
+
|
| 18 |
+
<div class="mt-10 space-y-8">
|
| 19 |
+
{% for step in process.steps %}
|
| 20 |
+
<div class="flex items-start">
|
| 21 |
+
<div class="bg-primary text-white rounded-full w-12 h-12 flex items-center justify-center font-bold text-xl mr-6 flex-shrink-0">
|
| 22 |
+
{{ loop.index }}
|
| 23 |
+
</div>
|
| 24 |
+
<div>
|
| 25 |
+
<h3 class="text-xl font-bold">{{ step.title }}</h3>
|
| 26 |
+
<p class="mt-2 text-dark/70">{{ step.description }}</p>
|
| 27 |
+
{% if step.date %}
|
| 28 |
+
<p class="mt-2 text-primary font-medium">
|
| 29 |
+
<i class="far fa-calendar-alt mr-2"></i> {{ _('Date') }}: {{ step.date|format_date('full') }}
|
| 30 |
+
</p>
|
| 31 |
+
{% endif %}
|
| 32 |
+
{% if step.deadline %}
|
| 33 |
+
<p class="mt-2 text-secondary font-medium">
|
| 34 |
+
<i class="far fa-clock mr-2"></i> {{ _('Deadline') }}: {{ step.deadline|format_date('full') }}
|
| 35 |
+
</p>
|
| 36 |
+
{% endif %}
|
| 37 |
+
</div>
|
| 38 |
+
</div>
|
| 39 |
+
{% endfor %}
|
| 40 |
+
</div>
|
| 41 |
+
</div>
|
| 42 |
+
</div>
|
| 43 |
+
</section>
|
| 44 |
+
|
| 45 |
+
<!-- Requirements & Fees -->
|
| 46 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 47 |
+
<div class="container mx-auto px-4">
|
| 48 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
| 49 |
+
<!-- Requirements -->
|
| 50 |
+
<div class="glass-card p-8">
|
| 51 |
+
<h2 class="text-2xl font-bold mb-6 text-primary">{{ _('Admission Requirements') }}</h2>
|
| 52 |
+
<ul class="space-y-3">
|
| 53 |
+
{% for requirement in process.requirements %}
|
| 54 |
+
<li class="flex items-start">
|
| 55 |
+
<i class="fas fa-check-circle text-secondary mt-1 mr-3"></i>
|
| 56 |
+
<span>{{ requirement }}</span>
|
| 57 |
+
</li>
|
| 58 |
+
{% endfor %}
|
| 59 |
+
</ul>
|
| 60 |
+
</div>
|
| 61 |
+
|
| 62 |
+
<!-- Fees -->
|
| 63 |
+
<div class="glass-card p-8">
|
| 64 |
+
<h2 class="text-2xl font-bold mb-6 text-secondary">{{ _('Fee Structure') }}</h2>
|
| 65 |
+
<div class="overflow-x-auto">
|
| 66 |
+
<table class="min-w-full">
|
| 67 |
+
<thead>
|
| 68 |
+
<tr class="bg-primary/10">
|
| 69 |
+
<th class="py-3 px-4 text-left">{{ _('Description') }}</th>
|
| 70 |
+
<th class="py-3 px-4 text-right">{{ _('Amount') }}</th>
|
| 71 |
+
</tr>
|
| 72 |
+
</thead>
|
| 73 |
+
<tbody>
|
| 74 |
+
{% for fee in fees %}
|
| 75 |
+
<tr class="border-b border-white/20">
|
| 76 |
+
<td class="py-3 px-4">{{ fee.description }}</td>
|
| 77 |
+
<td class="py-3 px-4 text-right">{{ fee.amount|format_currency }}</td>
|
| 78 |
+
</tr>
|
| 79 |
+
{% endfor %}
|
| 80 |
+
<tr class="bg-secondary/10 font-bold">
|
| 81 |
+
<td class="py-3 px-4">{{ _('Total Annual Fees') }}</td>
|
| 82 |
+
<td class="py-3 px-4 text-right">{{ fees|sum(attribute='amount')|format_currency }}</td>
|
| 83 |
+
</tr>
|
| 84 |
+
</tbody>
|
| 85 |
+
</table>
|
| 86 |
+
</div>
|
| 87 |
+
<a href="{{ url_for('download_file', category='admissions', filename='fee-structure-2023.pdf') }}" class="btn-secondary mt-6 inline-block">
|
| 88 |
+
{{ _('Download Full Fee Structure') }}
|
| 89 |
+
</a>
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
</div>
|
| 93 |
+
</section>
|
| 94 |
+
|
| 95 |
+
<!-- Scholarships -->
|
| 96 |
+
<section class="py-16">
|
| 97 |
+
<div class="container mx-auto px-4">
|
| 98 |
+
<h2 class="section-title">{{ _('Scholarships & Bursaries') }}</h2>
|
| 99 |
+
|
| 100 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mt-12">
|
| 101 |
+
{% for scholarship in scholarships %}
|
| 102 |
+
<div class="glass-card p-6 transform transition-all duration-300 hover:-translate-y-2">
|
| 103 |
+
<div class="text-accent text-5xl mb-4">
|
| 104 |
+
<i class="fas fa-graduation-cap"></i>
|
| 105 |
+
</div>
|
| 106 |
+
<h3 class="text-xl font-bold mb-3">{{ scholarship.name }}</h3>
|
| 107 |
+
<p class="text-dark/70 mb-4">{{ scholarship.description }}</p>
|
| 108 |
+
<a href="{{ url_for('download_file', category='scholarships', filename=scholarship.form) }}" class="btn-secondary">
|
| 109 |
+
{{ _('Download Application') }}
|
| 110 |
+
</a>
|
| 111 |
+
</div>
|
| 112 |
+
{% endfor %}
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
</section>
|
| 116 |
+
|
| 117 |
+
<!-- Downloads -->
|
| 118 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 119 |
+
<div class="container mx-auto px-4">
|
| 120 |
+
<h2 class="section-title">{{ _('Admissions Downloads') }}</h2>
|
| 121 |
+
|
| 122 |
+
<div class="glass-card p-6 mt-12">
|
| 123 |
+
<div class="overflow-x-auto">
|
| 124 |
+
<table class="min-w-full">
|
| 125 |
+
<thead>
|
| 126 |
+
<tr class="bg-primary/10">
|
| 127 |
+
<th class="py-3 px-4 text-left">{{ _('Document') }}</th>
|
| 128 |
+
<th class="py-3 px-4 text-left">{{ _('Description') }}</th>
|
| 129 |
+
<th class="py-3 px-4 text-center">{{ _('File Size') }}</th>
|
| 130 |
+
<th class="py-3 px-4 text-right">{{ _('Download') }}</th>
|
| 131 |
+
</tr>
|
| 132 |
+
</thead>
|
| 133 |
+
<tbody>
|
| 134 |
+
{% for download in downloads %}
|
| 135 |
+
<tr class="border-b border-white/20">
|
| 136 |
+
<td class="py-3 px-4">{{ download.name }}</td>
|
| 137 |
+
<td class="py-3 px-4">{{ download.description }}</td>
|
| 138 |
+
<td class="py-3 px-4 text-center">{{ download.size }}</td>
|
| 139 |
+
<td class="py-3 px-4 text-right">
|
| 140 |
+
<a href="{{ url_for('download_file', category='admissions', filename=download.file) }}" class="text-primary hover:underline">
|
| 141 |
+
<i class="fas fa-download mr-2"></i> {{ _('Download') }}
|
| 142 |
+
</a>
|
| 143 |
+
</td>
|
| 144 |
+
</tr>
|
| 145 |
+
{% endfor %}
|
| 146 |
+
</tbody>
|
| 147 |
+
</table>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
</section>
|
| 152 |
+
<!-- Add after the Downloads section -->
|
| 153 |
+
<section class="py-16 bg-gradient-to-b from-blue-50 to-white">
|
| 154 |
+
<div class="container mx-auto px-4">
|
| 155 |
+
<div class="max-w-4xl mx-auto glass-card p-12 text-center">
|
| 156 |
+
<h2 class="text-3xl font-bold mb-6 text-primary">{{ _('Ready to Apply?') }}</h2>
|
| 157 |
+
<p class="text-xl mb-8 text-dark/80">
|
| 158 |
+
{{ _('Begin your journey with Munishi School today. Our online application makes the process simple and straightforward.') }}
|
| 159 |
+
</p>
|
| 160 |
+
|
| 161 |
+
<div class="flex flex-col sm:flex-row items-center justify-center space-y-4 sm:space-y-0 sm:space-x-6">
|
| 162 |
+
<a href="{{ url_for('admissions_apply') }}" class="px-8 py-4 bg-primary text-white rounded-full hover:bg-primary-dark transition-colors">
|
| 163 |
+
{{ _('Start Online Application') }}
|
| 164 |
+
</a>
|
| 165 |
+
<a href="{{ url_for('download_file', category='admissions', filename='application-form.pdf') }}" class="px-8 py-4 border-2 border-gray-300 text-gray-700 rounded-full hover:bg-gray-50 transition-colors">
|
| 166 |
+
{{ _('Download Paper Form') }}
|
| 167 |
+
</a>
|
| 168 |
+
</div>
|
| 169 |
+
|
| 170 |
+
<div class="mt-8 pt-6 border-t border-gray-200">
|
| 171 |
+
<h3 class="text-lg font-bold mb-4">{{ _('Application Support') }}</h3>
|
| 172 |
+
<p class="text-dark/70 mb-2">
|
| 173 |
+
<i class="fas fa-envelope mr-2 text-primary"></i>
|
| 174 |
+
admissions@munishischool.ac.tz
|
| 175 |
+
</p>
|
| 176 |
+
<p class="text-dark/70">
|
| 177 |
+
<i class="fas fa-phone mr-2 text-primary"></i>
|
| 178 |
+
+255 22 123 4567 (Admissions Office)
|
| 179 |
+
</p>
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
</section>
|
| 184 |
+
{% endblock %}
|
templates/admissions/application_success.html
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<section class="relative py-20 bg-gradient-to-b from-blue-50 to-white">
|
| 5 |
+
<div class="container mx-auto px-4">
|
| 6 |
+
<div class="max-w-3xl mx-auto glass-card p-12 text-center">
|
| 7 |
+
<div class="text-green-500 text-6xl mb-6">
|
| 8 |
+
<i class="fas fa-check-circle"></i>
|
| 9 |
+
</div>
|
| 10 |
+
<h1 class="text-3xl md:text-4xl font-bold mb-6 text-primary">{{ _('Application Submitted Successfully!') }}</h1>
|
| 11 |
+
|
| 12 |
+
<div class="glass-card p-6 text-left mb-8">
|
| 13 |
+
<h2 class="text-xl font-bold mb-4">{{ _('Application Details') }}</h2>
|
| 14 |
+
<p class="mb-4">
|
| 15 |
+
<strong>{{ _('Application ID') }}:</strong> {{ application_id }}
|
| 16 |
+
</p>
|
| 17 |
+
<p>
|
| 18 |
+
{{ _('We have received your application for admission to Munishi School. Our admissions team will review your application and contact you within 7-10 business days.') }}
|
| 19 |
+
</p>
|
| 20 |
+
</div>
|
| 21 |
+
|
| 22 |
+
<div class="mb-8">
|
| 23 |
+
<h2 class="text-xl font-bold mb-4">{{ _('Next Steps') }}</h2>
|
| 24 |
+
<ul class="space-y-3 text-left glass-card p-6">
|
| 25 |
+
<li class="flex items-start">
|
| 26 |
+
<i class="fas fa-check-circle text-primary mt-1 mr-3"></i>
|
| 27 |
+
<span>{{ _('Review of your application documents') }}</span>
|
| 28 |
+
</li>
|
| 29 |
+
<li class="flex items-start">
|
| 30 |
+
<i class="fas fa-check-circle text-primary mt-1 mr-3"></i>
|
| 31 |
+
<span>{{ _('Possible request for additional information') }}</span>
|
| 32 |
+
</li>
|
| 33 |
+
<li class="flex items-start">
|
| 34 |
+
<i class="fas fa-check-circle text-primary mt-1 mr-3"></i>
|
| 35 |
+
<span>{{ _('Scheduling of entrance examination (if applicable)') }}</span>
|
| 36 |
+
</li>
|
| 37 |
+
<li class="flex items-start">
|
| 38 |
+
<i class="fas fa-check-circle text-primary mt-1 mr-3"></i>
|
| 39 |
+
<span>{{ _('Admission decision notification via email') }}</span>
|
| 40 |
+
</li>
|
| 41 |
+
</ul>
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
<div class="flex flex-col sm:flex-row items-center justify-center space-y-4 sm:space-y-0 sm:space-x-6">
|
| 45 |
+
<a href="{{ url_for('home') }}" class="btn-primary px-6 py-3">
|
| 46 |
+
{{ _('Return to Homepage') }}
|
| 47 |
+
</a>
|
| 48 |
+
<a href="{{ url_for('admissions') }}" class="btn-secondary px-6 py-3">
|
| 49 |
+
{{ _('Admissions Information') }}
|
| 50 |
+
</a>
|
| 51 |
+
<a href="#" class="text-primary hover:underline">
|
| 52 |
+
{{ _('Download Application Copy') }}
|
| 53 |
+
</a>
|
| 54 |
+
</div>
|
| 55 |
+
</div>
|
| 56 |
+
</div>
|
| 57 |
+
</section>
|
| 58 |
+
{% endblock %}
|
templates/admissions/apply.html
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<section class="relative py-12 bg-gradient-to-b from-blue-50 to-white">
|
| 5 |
+
<div class="container mx-auto px-4">
|
| 6 |
+
<div class="max-w-4xl mx-auto glass-card p-8">
|
| 7 |
+
<h2 class="text-3xl font-bold mb-6 text-primary">{{ _('Admissions Application') }}</h2>
|
| 8 |
+
<p class="text-dark/70 mb-8">
|
| 9 |
+
{{ _('Thank you for your interest in Munishi School. Please complete the form below to apply for admission.') }}
|
| 10 |
+
</p>
|
| 11 |
+
|
| 12 |
+
<form method="POST" enctype="multipart/form-data" class="space-y-8">
|
| 13 |
+
<!-- Student Information -->
|
| 14 |
+
<div class="glass-card p-6">
|
| 15 |
+
<h3 class="text-xl font-bold mb-6 text-primary">{{ _('Student Information') }}</h3>
|
| 16 |
+
|
| 17 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 18 |
+
<div>
|
| 19 |
+
<label for="first_name" class="block font-medium mb-2">{{ _('First Name') }} *</label>
|
| 20 |
+
<input type="text" id="first_name" name="first_name" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 21 |
+
</div>
|
| 22 |
+
|
| 23 |
+
<div>
|
| 24 |
+
<label for="last_name" class="block font-medium mb-2">{{ _('Last Name') }} *</label>
|
| 25 |
+
<input type="text" id="last_name" name="last_name" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<div>
|
| 29 |
+
<label for="birthdate" class="block font-medium mb-2">{{ _('Date of Birth') }} *</label>
|
| 30 |
+
<input type="date" id="birthdate" name="birthdate" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<div>
|
| 34 |
+
<label for="gender" class="block font-medium mb-2">{{ _('Gender') }} *</label>
|
| 35 |
+
<select id="gender" name="gender" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 36 |
+
<option value="">{{ _('Select') }}</option>
|
| 37 |
+
<option value="male">{{ _('Male') }}</option>
|
| 38 |
+
<option value="female">{{ _('Female') }}</option>
|
| 39 |
+
<option value="other">{{ _('Other') }}</option>
|
| 40 |
+
</select>
|
| 41 |
+
</div>
|
| 42 |
+
|
| 43 |
+
<div>
|
| 44 |
+
<label for="nationality" class="block font-medium mb-2">{{ _('Nationality') }} *</label>
|
| 45 |
+
<input type="text" id="nationality" name="nationality" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<div>
|
| 49 |
+
<label for="current_school" class="block font-medium mb-2">{{ _('Current School') }} *</label>
|
| 50 |
+
<input type="text" id="current_school" name="current_school" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 51 |
+
</div>
|
| 52 |
+
|
| 53 |
+
<div>
|
| 54 |
+
<label for="applying_grade" class="block font-medium mb-2">{{ _('Grade Applying For') }} *</label>
|
| 55 |
+
<select id="applying_grade" name="applying_grade" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 56 |
+
<option value="">{{ _('Select Grade') }}</option>
|
| 57 |
+
<option value="form1">{{ _('Form 1') }}</option>
|
| 58 |
+
<option value="form2">{{ _('Form 2') }}</option>
|
| 59 |
+
<option value="form3">{{ _('Form 3') }}</option>
|
| 60 |
+
<option value="form4">{{ _('Form 4') }}</option>
|
| 61 |
+
</select>
|
| 62 |
+
</div>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
|
| 66 |
+
<!-- Parent/Guardian Information -->
|
| 67 |
+
<div class="glass-card p-6">
|
| 68 |
+
<h3 class="text-xl font-bold mb-6 text-primary">{{ _('Parent/Guardian Information') }}</h3>
|
| 69 |
+
|
| 70 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 71 |
+
<div>
|
| 72 |
+
<label for="parent_name" class="block font-medium mb-2">{{ _('Full Name') }} *</label>
|
| 73 |
+
<input type="text" id="parent_name" name="parent_name" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
<div>
|
| 77 |
+
<label for="parent_email" class="block font-medium mb-2">{{ _('Email Address') }} *</label>
|
| 78 |
+
<input type="email" id="parent_email" name="parent_email" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<div>
|
| 82 |
+
<label for="parent_phone" class="block font-medium mb-2">{{ _('Phone Number') }} *</label>
|
| 83 |
+
<input type="tel" id="parent_phone" name="parent_phone" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<div>
|
| 87 |
+
<label for="emergency_contact" class="block font-medium mb-2">{{ _('Emergency Contact') }} *</label>
|
| 88 |
+
<input type="tel" id="emergency_contact" name="emergency_contact" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
<div class="md:col-span-2">
|
| 92 |
+
<label for="address" class="block font-medium mb-2">{{ _('Full Address') }} *</label>
|
| 93 |
+
<textarea id="address" name="address" rows="3" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary"></textarea>
|
| 94 |
+
</div>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
|
| 98 |
+
<!-- Additional Information -->
|
| 99 |
+
<div class="glass-card p-6">
|
| 100 |
+
<h3 class="text-xl font-bold mb-6 text-primary">{{ _('Additional Information') }}</h3>
|
| 101 |
+
|
| 102 |
+
<div class="space-y-6">
|
| 103 |
+
<div>
|
| 104 |
+
<label for="medical_conditions" class="block font-medium mb-2">{{ _('Medical Conditions/Allergies') }}</label>
|
| 105 |
+
<textarea id="medical_conditions" name="medical_conditions" rows="2" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary"></textarea>
|
| 106 |
+
<p class="text-sm text-dark/70 mt-1">{{ _('Please provide details of any medical conditions or allergies we should be aware of') }}</p>
|
| 107 |
+
</div>
|
| 108 |
+
|
| 109 |
+
<div>
|
| 110 |
+
<label for="previous_schools" class="block font-medium mb-2">{{ _('Previous Schools Attended') }} *</label>
|
| 111 |
+
<textarea id="previous_schools" name="previous_schools" rows="2" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary"></textarea>
|
| 112 |
+
<p class="text-sm text-dark/70 mt-1">{{ _('List schools attended in the last 3 years with dates') }}</p>
|
| 113 |
+
</div>
|
| 114 |
+
|
| 115 |
+
<div>
|
| 116 |
+
<label for="extracurriculars" class="block font-medium mb-2">{{ _('Extracurricular Interests') }}</label>
|
| 117 |
+
<textarea id="extracurriculars" name="extracurriculars" rows="2" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary"></textarea>
|
| 118 |
+
<p class="text-sm text-dark/70 mt-1">{{ _('Sports, arts, clubs, or other activities of interest') }}</p>
|
| 119 |
+
</div>
|
| 120 |
+
|
| 121 |
+
<div>
|
| 122 |
+
<label for="why_join" class="block font-medium mb-2">{{ _('Why do you want to join Munishi School?') }} *</label>
|
| 123 |
+
<textarea id="why_join" name="why_join" rows="3" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary"></textarea>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
|
| 128 |
+
<!-- Document Uploads -->
|
| 129 |
+
<div class="glass-card p-6">
|
| 130 |
+
<h3 class="text-xl font-bold mb-6 text-primary">{{ _('Required Documents') }}</h3>
|
| 131 |
+
<p class="text-dark/70 mb-6">
|
| 132 |
+
{{ _('Please upload the following documents in PDF or image format (max 2MB each)') }}
|
| 133 |
+
</p>
|
| 134 |
+
|
| 135 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 136 |
+
<div>
|
| 137 |
+
<label for="birth_certificate" class="block font-medium mb-2">{{ _('Birth Certificate') }} *</label>
|
| 138 |
+
<input type="file" id="birth_certificate" name="birth_certificate" accept=".pdf,.jpg,.jpeg,.png" required class="w-full">
|
| 139 |
+
<p class="text-sm text-dark/70 mt-1">{{ _('Clear copy of birth certificate') }}</p>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<div>
|
| 143 |
+
<label for="academic_records" class="block font-medium mb-2">{{ _('Academic Records') }} *</label>
|
| 144 |
+
<input type="file" id="academic_records" name="academic_records" accept=".pdf,.jpg,.jpeg,.png" required class="w-full">
|
| 145 |
+
<p class="text-sm text-dark/70 mt-1">{{ _('Most recent report cards or transcripts') }}</p>
|
| 146 |
+
</div>
|
| 147 |
+
|
| 148 |
+
<div>
|
| 149 |
+
<label for="recommendation_letter" class="block font-medium mb-2">{{ _('Recommendation Letter') }}</label>
|
| 150 |
+
<input type="file" id="recommendation_letter" name="recommendation_letter" accept=".pdf,.jpg,.jpeg,.png" class="w-full">
|
| 151 |
+
<p class="text-sm text-dark/70 mt-1">{{ _('From a teacher or principal (optional but recommended)') }}</p>
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
<div>
|
| 155 |
+
<label for="photo" class="block font-medium mb-2">{{ _('Passport Photo') }} *</label>
|
| 156 |
+
<input type="file" id="photo" name="photo" accept=".jpg,.jpeg,.png" required class="w-full">
|
| 157 |
+
<p class="text-sm text-dark/70 mt-1">{{ _('Recent color photo') }}</p>
|
| 158 |
+
</div>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
|
| 162 |
+
<!-- Consent and Submission -->
|
| 163 |
+
<div class="glass-card p-6">
|
| 164 |
+
<div class="flex items-start mb-6">
|
| 165 |
+
<input type="checkbox" id="consent" name="consent" required class="mt-1 mr-3">
|
| 166 |
+
<label for="consent" class="text-dark/80">
|
| 167 |
+
{{ _('I certify that the information provided in this application is true and complete. I understand that false information may result in denial of admission or dismissal.') }}
|
| 168 |
+
</label>
|
| 169 |
+
</div>
|
| 170 |
+
|
| 171 |
+
<div class="flex flex-col sm:flex-row items-center space-y-4 sm:space-y-0 sm:space-x-6">
|
| 172 |
+
<button type="submit" class="btn-primary px-8 py-4">
|
| 173 |
+
{{ _('Submit Application') }}
|
| 174 |
+
</button>
|
| 175 |
+
<a href="{{ url_for('admissions') }}" class="btn-secondary px-8 py-4">
|
| 176 |
+
{{ _('Cancel and Return') }}
|
| 177 |
+
</a>
|
| 178 |
+
</div>
|
| 179 |
+
</div>
|
| 180 |
+
</form>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
</section>
|
| 184 |
+
{% endblock %}
|
templates/admissions/view_application.html
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<section class="relative py-12 bg-gradient-to-b from-blue-50 to-white">
|
| 5 |
+
<div class="container mx-auto px-4">
|
| 6 |
+
<div class="glass-card p-8">
|
| 7 |
+
<div class="flex flex-col md:flex-row justify-between items-start mb-8">
|
| 8 |
+
<div>
|
| 9 |
+
<h1 class="text-3xl font-bold text-primary">{{ _('Application Review') }}</h1>
|
| 10 |
+
<p class="text-dark/70">{{ _('Application ID') }}: {{ application.id }}</p>
|
| 11 |
+
</div>
|
| 12 |
+
<div class="mt-4 md:mt-0">
|
| 13 |
+
<span class="bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-sm">
|
| 14 |
+
{{ application.status|capitalize }}
|
| 15 |
+
</span>
|
| 16 |
+
<span class="ml-2 text-dark/70">{{ _('Submitted on') }} {{ application.submission_date }}</span>
|
| 17 |
+
</div>
|
| 18 |
+
</div>
|
| 19 |
+
|
| 20 |
+
<!-- Application Details -->
|
| 21 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
| 22 |
+
<!-- Student Information -->
|
| 23 |
+
<div class="glass-card p-6">
|
| 24 |
+
<h2 class="text-xl font-bold mb-4 text-primary">{{ _('Student Information') }}</h2>
|
| 25 |
+
<div class="space-y-3">
|
| 26 |
+
<p><strong>{{ _('Full Name') }}:</strong> {{ application.first_name }} {{ application.last_name }}</p>
|
| 27 |
+
<p><strong>{{ _('Date of Birth') }}:</strong> {{ application.birthdate }}</p>
|
| 28 |
+
<p><strong>{{ _('Gender') }}:</strong> {{ application.gender|capitalize }}</p>
|
| 29 |
+
<p><strong>{{ _('Nationality') }}:</strong> {{ application.nationality }}</p>
|
| 30 |
+
<p><strong>{{ _('Current School') }}:</strong> {{ application.current_school }}</p>
|
| 31 |
+
<p><strong>{{ _('Applying for Grade') }}:</strong> {{ application.applying_grade|replace('form', 'Form ') }}</p>
|
| 32 |
+
<p><strong>{{ _('Medical Conditions') }}:</strong> {{ application.medical_conditions or 'None reported' }}</p>
|
| 33 |
+
</div>
|
| 34 |
+
</div>
|
| 35 |
+
|
| 36 |
+
<!-- Parent Information -->
|
| 37 |
+
<div class="glass-card p-6">
|
| 38 |
+
<h2 class="text-xl font-bold mb-4 text-primary">{{ _('Parent/Guardian Information') }}</h2>
|
| 39 |
+
<div class="space-y-3">
|
| 40 |
+
<p><strong>{{ _('Name') }}:</strong> {{ application.parent_name }}</p>
|
| 41 |
+
<p><strong>{{ _('Email') }}:</strong> {{ application.parent_email }}</p>
|
| 42 |
+
<p><strong>{{ _('Phone') }}:</strong> {{ application.parent_phone }}</p>
|
| 43 |
+
<p><strong>{{ _('Address') }}:</strong> {{ application.address }}</p>
|
| 44 |
+
<p><strong>{{ _('Emergency Contact') }}:</strong> {{ application.emergency_contact }}</p>
|
| 45 |
+
</div>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<!-- Academic Information -->
|
| 49 |
+
<div class="glass-card p-6">
|
| 50 |
+
<h2 class="text-xl font-bold mb-4 text-primary">{{ _('Academic Information') }}</h2>
|
| 51 |
+
<div class="space-y-3">
|
| 52 |
+
<p><strong>{{ _('Previous Schools') }}:</strong></p>
|
| 53 |
+
<p class="whitespace-pre-line">{{ application.previous_schools }}</p>
|
| 54 |
+
|
| 55 |
+
<p><strong>{{ _('Extracurricular Interests') }}:</strong></p>
|
| 56 |
+
<p class="whitespace-pre-line">{{ application.extracurriculars or 'None reported' }}</p>
|
| 57 |
+
|
| 58 |
+
<p><strong>{{ _('Why Join Munishi') }}:</strong></p>
|
| 59 |
+
<p class="whitespace-pre-line">{{ application.why_join }}</p>
|
| 60 |
+
</div>
|
| 61 |
+
</div>
|
| 62 |
+
|
| 63 |
+
<!-- Documents -->
|
| 64 |
+
<div class="glass-card p-6">
|
| 65 |
+
<h2 class="text-xl font-bold mb-4 text-primary">{{ _('Submitted Documents') }}</h2>
|
| 66 |
+
<div class="space-y-4">
|
| 67 |
+
{% if application.birth_certificate %}
|
| 68 |
+
<div>
|
| 69 |
+
<p class="font-medium">{{ _('Birth Certificate') }}</p>
|
| 70 |
+
<a href="{{ url_for('static', filename='uploads/applications/' + application.birth_certificate) }}"
|
| 71 |
+
target="_blank" class="text-blue-600 hover:underline flex items-center">
|
| 72 |
+
<i class="fas fa-file-pdf mr-2"></i> {{ _('View Document') }}
|
| 73 |
+
</a>
|
| 74 |
+
</div>
|
| 75 |
+
{% endif %}
|
| 76 |
+
|
| 77 |
+
{% if application.academic_records %}
|
| 78 |
+
<div>
|
| 79 |
+
<p class="font-medium">{{ _('Academic Records') }}</p>
|
| 80 |
+
<a href="{{ url_for('static', filename='uploads/applications/' + application.academic_records) }}"
|
| 81 |
+
target="_blank" class="text-blue-600 hover:underline flex items-center">
|
| 82 |
+
<i class="fas fa-file-pdf mr-2"></i> {{ _('View Document') }}
|
| 83 |
+
</a>
|
| 84 |
+
</div>
|
| 85 |
+
{% endif %}
|
| 86 |
+
|
| 87 |
+
{% if application.recommendation_letter %}
|
| 88 |
+
<div>
|
| 89 |
+
<p class="font-medium">{{ _('Recommendation Letter') }}</p>
|
| 90 |
+
<a href="{{ url_for('static', filename='uploads/applications/' + application.recommendation_letter) }}"
|
| 91 |
+
target="_blank" class="text-blue-600 hover:underline flex items-center">
|
| 92 |
+
<i class="fas fa-file-pdf mr-2"></i> {{ _('View Document') }}
|
| 93 |
+
</a>
|
| 94 |
+
</div>
|
| 95 |
+
{% endif %}
|
| 96 |
+
|
| 97 |
+
{% if application.photo %}
|
| 98 |
+
<div>
|
| 99 |
+
<p class="font-medium">{{ _('Student Photo') }}</p>
|
| 100 |
+
<a href="{{ url_for('static', filename='uploads/applications/' + application.photo) }}"
|
| 101 |
+
target="_blank" class="text-blue-600 hover:underline flex items-center">
|
| 102 |
+
<i class="fas fa-file-image mr-2"></i> {{ _('View Photo') }}
|
| 103 |
+
</a>
|
| 104 |
+
</div>
|
| 105 |
+
{% endif %}
|
| 106 |
+
</div>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
|
| 110 |
+
<!-- Admin Actions -->
|
| 111 |
+
<div class="mt-8 glass-card p-6">
|
| 112 |
+
<h2 class="text-xl font-bold mb-4 text-primary">{{ _('Admissions Committee') }}</h2>
|
| 113 |
+
<div class="flex flex-wrap gap-4">
|
| 114 |
+
<button class="btn-primary">
|
| 115 |
+
<i class="fas fa-check-circle mr-2"></i> {{ _('Approve Application') }}
|
| 116 |
+
</button>
|
| 117 |
+
<button class="btn-secondary">
|
| 118 |
+
<i class="fas fa-pencil-alt mr-2"></i> {{ _('Request More Information') }}
|
| 119 |
+
</button>
|
| 120 |
+
<button class="bg-yellow-500 hover:bg-yellow-600 text-white px-4 py-2 rounded-lg">
|
| 121 |
+
<i class="fas fa-calendar-alt mr-2"></i> {{ _('Schedule Interview') }}
|
| 122 |
+
</button>
|
| 123 |
+
<button class="bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-lg">
|
| 124 |
+
<i class="fas fa-times-circle mr-2"></i> {{ _('Reject Application') }}
|
| 125 |
+
</button>
|
| 126 |
+
</div>
|
| 127 |
+
|
| 128 |
+
<div class="mt-6">
|
| 129 |
+
<label for="status" class="block font-medium mb-2">{{ _('Update Application Status') }}</label>
|
| 130 |
+
<select id="status" class="w-full md:w-1/3 px-4 py-2 border border-gray-300 rounded-lg">
|
| 131 |
+
<option value="submitted" {% if application.status == 'submitted' %}selected{% endif %}>{{ _('Submitted') }}</option>
|
| 132 |
+
<option value="review" {% if application.status == 'review' %}selected{% endif %}>{{ _('Under Review') }}</option>
|
| 133 |
+
<option value="interview" {% if application.status == 'interview' %}selected{% endif %}>{{ _('Interview Scheduled') }}</option>
|
| 134 |
+
<option value="approved" {% if application.status == 'approved' %}selected{% endif %}>{{ _('Approved') }}</option>
|
| 135 |
+
<option value="rejected" {% if application.status == 'rejected' %}selected{% endif %}>{{ _('Rejected') }}</option>
|
| 136 |
+
</select>
|
| 137 |
+
</div>
|
| 138 |
+
|
| 139 |
+
<div class="mt-4">
|
| 140 |
+
<label for="notes" class="block font-medium mb-2">{{ _('Internal Notes') }}</label>
|
| 141 |
+
<textarea id="notes" rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg"></textarea>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
</div>
|
| 146 |
+
</section>
|
| 147 |
+
{% endblock %}
|
templates/base.html
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="{{ g.current_lang }}" dir="ltr">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>{% block title %}{{ school_name }} | {% block subtitle %}Excellence in Education{% endblock %}{% endblock %}</title>
|
| 7 |
+
<meta name="description" content="{% block meta_description %}{{ school_name }} - Excellence in Education since 1975. Join our community of learners and achievers.{% endblock %}">
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 11 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 12 |
+
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap" rel="stylesheet">
|
| 13 |
+
<script>
|
| 14 |
+
tailwind.config = {
|
| 15 |
+
theme: {
|
| 16 |
+
extend: {
|
| 17 |
+
colors: {
|
| 18 |
+
primary: '#1e40af',
|
| 19 |
+
secondary: '#0ea5e9',
|
| 20 |
+
accent: '#f59e0b',
|
| 21 |
+
dark: '#0f172a',
|
| 22 |
+
light: '#f8fafc'
|
| 23 |
+
},
|
| 24 |
+
fontFamily: {
|
| 25 |
+
heading: ['Poppins', 'sans-serif'],
|
| 26 |
+
body: ['Open Sans', 'sans-serif']
|
| 27 |
+
},
|
| 28 |
+
boxShadow: {
|
| 29 |
+
'glass': '0 8px 32px 0 rgba(31, 38, 135, 0.15)',
|
| 30 |
+
'btn': '0 4px 14px 0 rgba(14, 165, 233, 0.4)'
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
</script>
|
| 36 |
+
<style type="text/tailwindcss">
|
| 37 |
+
@layer base {
|
| 38 |
+
html {
|
| 39 |
+
scroll-behavior: smooth;
|
| 40 |
+
}
|
| 41 |
+
body {
|
| 42 |
+
@apply bg-gradient-to-br from-blue-50 to-indigo-100 font-body text-dark;
|
| 43 |
+
background-attachment: fixed;
|
| 44 |
+
}
|
| 45 |
+
h1, h2, h3, h4, h5 {
|
| 46 |
+
@apply font-heading font-bold;
|
| 47 |
+
}
|
| 48 |
+
.glass-card {
|
| 49 |
+
@apply bg-white/20 backdrop-blur-lg border border-white/30 rounded-xl shadow-glass;
|
| 50 |
+
}
|
| 51 |
+
.btn-primary {
|
| 52 |
+
@apply bg-gradient-to-r from-primary to-secondary text-white px-6 py-3 rounded-full font-medium transition-all duration-300 hover:shadow-btn hover:scale-105;
|
| 53 |
+
}
|
| 54 |
+
.btn-secondary {
|
| 55 |
+
@apply bg-white/30 backdrop-blur-sm text-primary border border-primary/30 px-6 py-3 rounded-full font-medium transition-all duration-300 hover:bg-white/50 hover:shadow-glass;
|
| 56 |
+
}
|
| 57 |
+
.section-title {
|
| 58 |
+
@apply text-3xl md:text-4xl font-bold text-center mb-4 relative pb-4;
|
| 59 |
+
}
|
| 60 |
+
.section-title::after {
|
| 61 |
+
@apply content-[''] absolute bottom-0 left-1/2 transform -translate-x-1/2 w-24 h-1 bg-gradient-to-r from-primary to-secondary rounded-full;
|
| 62 |
+
}
|
| 63 |
+
.nav-link {
|
| 64 |
+
@apply text-dark hover:text-primary transition-colors duration-300 relative;
|
| 65 |
+
}
|
| 66 |
+
.nav-link::after {
|
| 67 |
+
@apply content-[''] absolute left-0 -bottom-1 w-0 h-0.5 bg-primary transition-all duration-300;
|
| 68 |
+
}
|
| 69 |
+
.nav-link:hover::after {
|
| 70 |
+
@apply w-full;
|
| 71 |
+
}
|
| 72 |
+
.animate-float {
|
| 73 |
+
animation: float 6s ease-in-out infinite;
|
| 74 |
+
}
|
| 75 |
+
@keyframes float {
|
| 76 |
+
0% { transform: translateY(0px); }
|
| 77 |
+
50% { transform: translateY(-20px); }
|
| 78 |
+
100% { transform: translateY(0px); }
|
| 79 |
+
}
|
| 80 |
+
.animate-pulse-slow {
|
| 81 |
+
animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 82 |
+
}
|
| 83 |
+
@keyframes pulse-slow {
|
| 84 |
+
0%, 100% { opacity: 1; }
|
| 85 |
+
50% { opacity: 0.8; }
|
| 86 |
+
}
|
| 87 |
+
.fade-in {
|
| 88 |
+
animation: fadeIn 1s ease-in;
|
| 89 |
+
}
|
| 90 |
+
@keyframes fadeIn {
|
| 91 |
+
from { opacity: 0; transform: translateY(20px); }
|
| 92 |
+
to { opacity: 1; transform: translateY(0); }
|
| 93 |
+
}
|
| 94 |
+
.animate-fade-in {
|
| 95 |
+
animation: fadeIn 0.3s ease-out forwards;
|
| 96 |
+
}
|
| 97 |
+
.slide-down {
|
| 98 |
+
animation: slideDown 0.3s ease-out forwards;
|
| 99 |
+
}
|
| 100 |
+
@keyframes slideDown {
|
| 101 |
+
from { transform: translateY(-100%); opacity: 0; }
|
| 102 |
+
to { transform: translateY(0); opacity: 1; }
|
| 103 |
+
}
|
| 104 |
+
.slide-up {
|
| 105 |
+
animation: slideUp 0.3s ease-out forwards;
|
| 106 |
+
}
|
| 107 |
+
@keyframes slideUp {
|
| 108 |
+
from { transform: translateY(0); opacity: 1; }
|
| 109 |
+
to { transform: translateY(-100%); opacity: 0; }
|
| 110 |
+
}
|
| 111 |
+
}
|
| 112 |
+
</style>
|
| 113 |
+
{% block extra_css %}{% endblock %}
|
| 114 |
+
</head>
|
| 115 |
+
<body class="min-h-screen">
|
| 116 |
+
<!-- Language Toggle -->
|
| 117 |
+
<div class="bg-primary text-white py-2 px-4 text-right text-sm">
|
| 118 |
+
<div class="container mx-auto">
|
| 119 |
+
<a href="{{ url_for('set_lang', lang='en') }}" class="mr-2 {% if g.current_lang == 'en' %}font-bold{% endif %}">EN</a>
|
| 120 |
+
<a href="{{ url_for('set_lang', lang='sw') }}" class="{% if g.current_lang == 'sw' %}font-bold{% endif %}">SW</a>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
|
| 124 |
+
<!-- Sticky Navigation -->
|
| 125 |
+
<header class="sticky top-0 z-50 bg-white/80 backdrop-blur-md border-b border-white/30 shadow-sm">
|
| 126 |
+
<div class="container mx-auto px-4">
|
| 127 |
+
<nav class="flex items-center justify-between py-4">
|
| 128 |
+
<!-- Logo -->
|
| 129 |
+
<a href="{{ url_for('home') }}" class="flex items-center space-x-2">
|
| 130 |
+
<div class="w-10 h-10 rounded-full bg-gradient-to-r from-primary to-secondary flex items-center justify-center">
|
| 131 |
+
<span class="text-white font-bold text-xl">M</span>
|
| 132 |
+
</div>
|
| 133 |
+
<div class="text-xl font-bold font-heading text-primary">{{ school_name }}</div>
|
| 134 |
+
</a>
|
| 135 |
+
|
| 136 |
+
<!-- Desktop Navigation -->
|
| 137 |
+
<div class="hidden md:flex items-center space-x-8">
|
| 138 |
+
<a href="{{ url_for('home') }}" class="nav-link font-medium">{{ _('Home') }}</a>
|
| 139 |
+
<a href="{{ url_for('about') }}" class="nav-link font-medium">{{ _('About') }}</a>
|
| 140 |
+
<a href="{{ url_for('admissions') }}" class="nav-link font-medium">{{ _('Admissions') }}</a>
|
| 141 |
+
<a href="{{ url_for('academics') }}" class="nav-link font-medium">{{ _('Academics') }}</a>
|
| 142 |
+
<a href="{{ url_for('student_life') }}" class="nav-link font-medium">{{ _('Student Life') }}</a>
|
| 143 |
+
<a href="{{ url_for('admissions') }}" class="btn-primary">{{ _('Apply Now') }}</a>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<!-- Mobile Menu Button -->
|
| 147 |
+
<button id="mobileMenuBtn" class="md:hidden text-primary text-2xl">
|
| 148 |
+
<i class="fas fa-bars"></i>
|
| 149 |
+
</button>
|
| 150 |
+
</nav>
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<!-- Mobile Navigation -->
|
| 154 |
+
<div id="mobileMenu" class="hidden md:hidden bg-white/90 backdrop-blur-md py-4 px-4">
|
| 155 |
+
<div class="flex flex-col space-y-4">
|
| 156 |
+
<a href="{{ url_for('home') }}" class="nav-link font-medium">{{ _('Home') }}</a>
|
| 157 |
+
<a href="{{ url_for('about') }}" class="nav-link font-medium">{{ _('About') }}</a>
|
| 158 |
+
<a href="{{ url_for('admissions') }}" class="nav-link font-medium">{{ _('Admissions') }}</a>
|
| 159 |
+
<a href="{{ url_for('academics') }}" class="nav-link font-medium">{{ _('Academics') }}</a>
|
| 160 |
+
<a href="{{ url_for('student_life') }}" class="nav-link font-medium">{{ _('Student Life') }}</a>
|
| 161 |
+
<a href="{{ url_for('admissions') }}" class="btn-primary text-center">{{ _('Apply Now') }}</a>
|
| 162 |
+
</div>
|
| 163 |
+
</div>
|
| 164 |
+
</header>
|
| 165 |
+
|
| 166 |
+
<!-- Main Content -->
|
| 167 |
+
<main>
|
| 168 |
+
{% with messages = get_flashed_messages(with_categories=true) %}
|
| 169 |
+
{% if messages %}
|
| 170 |
+
<div class="container mx-auto px-4 py-4">
|
| 171 |
+
{% for category, message in messages %}
|
| 172 |
+
<div class="bg-{% if category == 'error' %}red-500{% else %}green-500{% endif %} text-white p-4 rounded-lg mb-4 animate-fade-in flex items-center justify-between">
|
| 173 |
+
<div class="flex items-center">
|
| 174 |
+
<i class="fas fa-{% if category == 'error' %}exclamation-circle{% else %}check-circle{% endif %} mr-3"></i>
|
| 175 |
+
{{ message }}
|
| 176 |
+
</div>
|
| 177 |
+
<button onclick="this.parentElement.remove()" class="text-white hover:text-white/80 transition-colors">
|
| 178 |
+
<i class="fas fa-times"></i>
|
| 179 |
+
</button>
|
| 180 |
+
</div>
|
| 181 |
+
{% endfor %}
|
| 182 |
+
</div>
|
| 183 |
+
{% endif %}
|
| 184 |
+
{% endwith %}
|
| 185 |
+
|
| 186 |
+
{% block content %}{% endblock %}
|
| 187 |
+
</main>
|
| 188 |
+
|
| 189 |
+
<!-- Footer -->
|
| 190 |
+
<footer class="bg-dark text-white py-12">
|
| 191 |
+
<div class="container mx-auto px-4">
|
| 192 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 193 |
+
<div>
|
| 194 |
+
<div class="flex items-center space-x-2 mb-6">
|
| 195 |
+
<div class="w-10 h-10 rounded-full bg-gradient-to-r from-primary to-secondary flex items-center justify-center">
|
| 196 |
+
<span class="text-white font-bold text-xl">M</span>
|
| 197 |
+
</div>
|
| 198 |
+
<div class="text-xl font-bold font-heading text-white">{{ school_name }}</div>
|
| 199 |
+
</div>
|
| 200 |
+
<p class="text-white/70 mb-6">
|
| 201 |
+
{{ _('Excellence in Education since 1975. Empowering future leaders through quality education.') }}
|
| 202 |
+
</p>
|
| 203 |
+
<div class="flex space-x-4">
|
| 204 |
+
<a href="{{ social_media.facebook }}" class="text-white/70 hover:text-white transition-colors" target="_blank">
|
| 205 |
+
<i class="fab fa-facebook-f"></i>
|
| 206 |
+
</a>
|
| 207 |
+
<a href="{{ social_media.twitter }}" class="text-white/70 hover:text-white transition-colors" target="_blank">
|
| 208 |
+
<i class="fab fa-twitter"></i>
|
| 209 |
+
</a>
|
| 210 |
+
<a href="{{ social_media.instagram }}" class="text-white/70 hover:text-white transition-colors" target="_blank">
|
| 211 |
+
<i class="fab fa-instagram"></i>
|
| 212 |
+
</a>
|
| 213 |
+
<a href="{{ social_media.youtube }}" class="text-white/70 hover:text-white transition-colors" target="_blank">
|
| 214 |
+
<i class="fab fa-youtube"></i>
|
| 215 |
+
</a>
|
| 216 |
+
</div>
|
| 217 |
+
</div>
|
| 218 |
+
|
| 219 |
+
<div>
|
| 220 |
+
<h3 class="text-lg font-bold mb-6 border-b border-white/20 pb-2">{{ _('Quick Links') }}</h3>
|
| 221 |
+
<ul class="space-y-3">
|
| 222 |
+
<li><a href="{{ url_for('home') }}" class="text-white/70 hover:text-white transition-colors">{{ _('Home') }}</a></li>
|
| 223 |
+
<li><a href="{{ url_for('about') }}" class="text-white/70 hover:text-white transition-colors">{{ _('About Us') }}</a></li>
|
| 224 |
+
<li><a href="{{ url_for('admissions') }}" class="text-white/70 hover:text-white transition-colors">{{ _('Admissions') }}</a></li>
|
| 225 |
+
<li><a href="{{ url_for('academics') }}" class="text-white/70 hover:text-white transition-colors">{{ _('Academics') }}</a></li>
|
| 226 |
+
<li><a href="{{ url_for('student_life') }}" class="text-white/70 hover:text-white transition-colors">{{ _('Student Life') }}</a></li>
|
| 227 |
+
</ul>
|
| 228 |
+
</div>
|
| 229 |
+
|
| 230 |
+
<div>
|
| 231 |
+
<h3 class="text-lg font-bold mb-6 border-b border-white/20 pb-2">{{ _('Resources') }}</h3>
|
| 232 |
+
<ul class="space-y-3">
|
| 233 |
+
<li><a href="{{ url_for('news') }}" class="text-white/70 hover:text-white transition-colors">{{ _('News & Events') }}</a></li>
|
| 234 |
+
<li><a href="{{ url_for('admissions') }}#downloads" class="text-white/70 hover:text-white transition-colors">{{ _('Download Centre') }}</a></li>
|
| 235 |
+
<li><a href="{{ url_for('alumni') }}" class="text-white/70 hover:text-white transition-colors">{{ _('Alumni Portal') }}</a></li>
|
| 236 |
+
<li><a href="#" class="text-white/70 hover:text-white transition-colors">{{ _('Parent Portal') }}</a></li>
|
| 237 |
+
<li><a href="#" class="text-white/70 hover:text-white transition-colors">{{ _('Careers') }}</a></li>
|
| 238 |
+
</ul>
|
| 239 |
+
</div>
|
| 240 |
+
|
| 241 |
+
<div>
|
| 242 |
+
<h3 class="text-lg font-bold mb-6 border-b border-white/20 pb-2">{{ _('Contact Us') }}</h3>
|
| 243 |
+
<ul class="space-y-3">
|
| 244 |
+
<li class="flex items-start">
|
| 245 |
+
<i class="fas fa-map-marker-alt mt-1 mr-3 text-secondary"></i>
|
| 246 |
+
<span>{{ address }}</span>
|
| 247 |
+
</li>
|
| 248 |
+
<li class="flex items-start">
|
| 249 |
+
<i class="fas fa-phone-alt mt-1 mr-3 text-secondary"></i>
|
| 250 |
+
<span>{{ contact_phone }}</span>
|
| 251 |
+
</li>
|
| 252 |
+
<li class="flex items-start">
|
| 253 |
+
<i class="fas fa-envelope mt-1 mr-3 text-secondary"></i>
|
| 254 |
+
<span>{{ contact_email }}</span>
|
| 255 |
+
</li>
|
| 256 |
+
<li class="flex items-start">
|
| 257 |
+
<i class="fas fa-clock mt-1 mr-3 text-secondary"></i>
|
| 258 |
+
<span>{{ _('Mon-Fri: 7:30 AM - 4:30 PM') }}</span>
|
| 259 |
+
</li>
|
| 260 |
+
</ul>
|
| 261 |
+
</div>
|
| 262 |
+
</div>
|
| 263 |
+
|
| 264 |
+
<div class="border-t border-white/10 mt-12 pt-8 text-center text-white/50 text-sm">
|
| 265 |
+
<p>© {{ now.year }} {{ school_name }}. {{ _('All Rights Reserved.') }}</p>
|
| 266 |
+
<div class="mt-4">
|
| 267 |
+
<a href="{{ url_for('safeguarding') }}" class="text-white/50 hover:text-white transition-colors mx-2">{{ _('Privacy Policy') }}</a>
|
| 268 |
+
<a href="#" class="text-white/50 hover:text-white transition-colors mx-2">{{ _('Terms of Use') }}</a>
|
| 269 |
+
<a href="{{ url_for('safeguarding') }}" class="text-white/50 hover:text-white transition-colors mx-2">{{ _('Safeguarding Policy') }}</a>
|
| 270 |
+
<a href="#" class="text-white/50 hover:text-white transition-colors mx-2">{{ _('Accessibility') }}</a>
|
| 271 |
+
</div>
|
| 272 |
+
</div>
|
| 273 |
+
</div>
|
| 274 |
+
</footer>
|
| 275 |
+
|
| 276 |
+
<!-- WhatsApp Button -->
|
| 277 |
+
<a href="https://wa.me/{{ contact_phone | replace(' ', '') | replace('+', '') }}"
|
| 278 |
+
class="fixed bottom-6 right-6 w-14 h-14 rounded-full bg-green-500 flex items-center justify-center text-white text-2xl shadow-lg animate-bounce"
|
| 279 |
+
aria-label="{{ _('Contact us on WhatsApp') }}">
|
| 280 |
+
<i class="fab fa-whatsapp"></i>
|
| 281 |
+
</a>
|
| 282 |
+
|
| 283 |
+
<script>
|
| 284 |
+
// Mobile menu toggle with animation
|
| 285 |
+
const mobileMenuBtn = document.getElementById('mobileMenuBtn');
|
| 286 |
+
const mobileMenu = document.getElementById('mobileMenu');
|
| 287 |
+
let isMenuOpen = false;
|
| 288 |
+
|
| 289 |
+
if (mobileMenuBtn && mobileMenu) {
|
| 290 |
+
mobileMenuBtn.addEventListener('click', () => {
|
| 291 |
+
if (!isMenuOpen) {
|
| 292 |
+
mobileMenu.classList.remove('hidden');
|
| 293 |
+
mobileMenu.classList.add('slide-down');
|
| 294 |
+
mobileMenu.classList.remove('slide-up');
|
| 295 |
+
mobileMenuBtn.innerHTML = '<i class="fas fa-times"></i>';
|
| 296 |
+
} else {
|
| 297 |
+
mobileMenu.classList.add('slide-up');
|
| 298 |
+
mobileMenu.classList.remove('slide-down');
|
| 299 |
+
mobileMenuBtn.innerHTML = '<i class="fas fa-bars"></i>';
|
| 300 |
+
setTimeout(() => {
|
| 301 |
+
mobileMenu.classList.add('hidden');
|
| 302 |
+
}, 300);
|
| 303 |
+
}
|
| 304 |
+
isMenuOpen = !isMenuOpen;
|
| 305 |
+
});
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
// Handle flash message dismissal
|
| 309 |
+
document.addEventListener('click', (e) => {
|
| 310 |
+
if (e.target.matches('.flash-dismiss') || e.target.closest('.flash-dismiss')) {
|
| 311 |
+
const flashMessage = e.target.closest('.flash-message');
|
| 312 |
+
if (flashMessage) {
|
| 313 |
+
flashMessage.style.opacity = '0';
|
| 314 |
+
setTimeout(() => {
|
| 315 |
+
flashMessage.remove();
|
| 316 |
+
}, 300);
|
| 317 |
+
}
|
| 318 |
+
}
|
| 319 |
+
});
|
| 320 |
+
|
| 321 |
+
// Animation on scroll
|
| 322 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 323 |
+
const animatedItems = document.querySelectorAll('.fade-in');
|
| 324 |
+
|
| 325 |
+
animatedItems.forEach(item => {
|
| 326 |
+
item.style.opacity = '0';
|
| 327 |
+
});
|
| 328 |
+
|
| 329 |
+
setTimeout(() => {
|
| 330 |
+
animatedItems.forEach(item => {
|
| 331 |
+
item.style.opacity = '1';
|
| 332 |
+
});
|
| 333 |
+
}, 100);
|
| 334 |
+
});
|
| 335 |
+
</script>
|
| 336 |
+
{% block extra_js %}{% endblock %}
|
| 337 |
+
</body>
|
| 338 |
+
</html>
|
templates/contact.html
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<!-- Hero Section -->
|
| 5 |
+
<section class="relative py-20 bg-gradient-to-r from-primary to-secondary text-white">
|
| 6 |
+
<div class="container mx-auto px-4 text-center">
|
| 7 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-6">{{ _('Contact Us') }}</h1>
|
| 8 |
+
<p class="text-xl max-w-2xl mx-auto">{{ _('We would love to hear from you. Reach out to us with any questions or inquiries.') }}</p>
|
| 9 |
+
</div>
|
| 10 |
+
</section>
|
| 11 |
+
|
| 12 |
+
<!-- Contact Form & Info -->
|
| 13 |
+
<section class="py-16">
|
| 14 |
+
<div class="container mx-auto px-4">
|
| 15 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12">
|
| 16 |
+
<!-- Contact Form -->
|
| 17 |
+
<div>
|
| 18 |
+
<h2 class="text-3xl font-bold mb-8">{{ _('Send Us a Message') }}</h2>
|
| 19 |
+
<form method="POST" class="space-y-6">
|
| 20 |
+
<div>
|
| 21 |
+
<label for="name" class="block text-lg font-medium mb-2">{{ _('Your Name') }}</label>
|
| 22 |
+
<input type="text" id="name" name="name" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
<div>
|
| 26 |
+
<label for="email" class="block text-lg font-medium mb-2">{{ _('Email Address') }}</label>
|
| 27 |
+
<input type="email" id="email" name="email" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
<div>
|
| 31 |
+
<label for="subject" class="block text-lg font-medium mb-2">{{ _('Subject') }}</label>
|
| 32 |
+
<input type="text" id="subject" name="subject" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary">
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
<div>
|
| 36 |
+
<label for="message" class="block text-lg font-medium mb-2">{{ _('Your Message') }}</label>
|
| 37 |
+
<textarea id="message" name="message" rows="5" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary"></textarea>
|
| 38 |
+
</div>
|
| 39 |
+
|
| 40 |
+
<button type="submit" class="btn-primary">{{ _('Send Message') }}</button>
|
| 41 |
+
</form>
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
<!-- Contact Information -->
|
| 45 |
+
<div>
|
| 46 |
+
<h2 class="text-3xl font-bold mb-8">{{ _('Get In Touch') }}</h2>
|
| 47 |
+
|
| 48 |
+
<div class="space-y-8">
|
| 49 |
+
<!-- Location -->
|
| 50 |
+
<div class="glass-card p-6">
|
| 51 |
+
<h3 class="text-xl font-bold mb-4 text-primary">{{ _('Main Campus') }}</h3>
|
| 52 |
+
<div class="flex items-start mb-4">
|
| 53 |
+
<i class="fas fa-map-marker-alt text-secondary mt-1 mr-4"></i>
|
| 54 |
+
<p>{{ address }}</p>
|
| 55 |
+
</div>
|
| 56 |
+
<div class="aspect-w-16 aspect-h-9 bg-gray-200 rounded-xl overflow-hidden">
|
| 57 |
+
<div class="bg-gradient-to-r from-primary/30 to-secondary/30 w-full h-full flex items-center justify-center">
|
| 58 |
+
<i class="fas fa-map-marked-alt text-white text-5xl"></i>
|
| 59 |
+
</div>
|
| 60 |
+
</div>
|
| 61 |
+
</div>
|
| 62 |
+
|
| 63 |
+
<!-- Departments -->
|
| 64 |
+
<div class="glass-card p-6">
|
| 65 |
+
<h3 class="text-xl font-bold mb-4 text-secondary">{{ _('Contact Departments') }}</h3>
|
| 66 |
+
<div class="space-y-4">
|
| 67 |
+
{% for department in departments %}
|
| 68 |
+
<div class="flex items-center justify-between border-b border-white/20 pb-3">
|
| 69 |
+
<div>
|
| 70 |
+
<h4 class="font-bold">{{ department.name }}</h4>
|
| 71 |
+
<p class="text-dark/70">{{ department.email }}</p>
|
| 72 |
+
</div>
|
| 73 |
+
<a href="mailto:{{ department.email }}" class="text-primary hover:underline">
|
| 74 |
+
<i class="fas fa-envelope"></i>
|
| 75 |
+
</a>
|
| 76 |
+
</div>
|
| 77 |
+
{% endfor %}
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<!-- Office Hours -->
|
| 82 |
+
<div class="glass-card p-6">
|
| 83 |
+
<h3 class="text-xl font-bold mb-4 text-accent">{{ _('Office Hours') }}</h3>
|
| 84 |
+
<ul class="space-y-3">
|
| 85 |
+
<li class="flex justify-between">
|
| 86 |
+
<span>{{ _('Weekdays') }}:</span>
|
| 87 |
+
<span class="font-medium">{{ office_hours.weekdays }}</span>
|
| 88 |
+
</li>
|
| 89 |
+
<li class="flex justify-between">
|
| 90 |
+
<span>{{ _('Saturday') }}:</span>
|
| 91 |
+
<span class="font-medium">{{ office_hours.saturday }}</span>
|
| 92 |
+
</li>
|
| 93 |
+
<li class="flex justify-between">
|
| 94 |
+
<span>{{ _('Sunday') }}:</span>
|
| 95 |
+
<span class="font-medium">{{ office_hours.sunday }}</span>
|
| 96 |
+
</li>
|
| 97 |
+
</ul>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
</section>
|
| 104 |
+
{% endblock %}
|
templates/contact_success.html
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<section class="container py-20 text-center">
|
| 5 |
+
<div class="max-w-2xl mx-auto glass-card p-12">
|
| 6 |
+
<div class="text-green-500 text-6xl mb-6">
|
| 7 |
+
<i class="fas fa-check-circle"></i>
|
| 8 |
+
</div>
|
| 9 |
+
<h1 class="text-3xl md:text-4xl font-bold mb-6">{{ _('Thank You!') }}</h1>
|
| 10 |
+
<p class="text-xl mb-8">{{ _('Your message has been successfully sent.') }}</p>
|
| 11 |
+
<p class="mb-10 text-dark/80">{{ _('We will get back to you as soon as possible.') }}</p>
|
| 12 |
+
<a href="{{ url_for('home') }}" class="btn-primary inline-block">
|
| 13 |
+
{{ _('Return to Homepage') }}
|
| 14 |
+
</a>
|
| 15 |
+
</div>
|
| 16 |
+
</section>
|
| 17 |
+
{% endblock %}
|
templates/events.html
ADDED
|
@@ -0,0 +1,345 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<!-- Hero Section -->
|
| 5 |
+
<section class="relative py-20 bg-gradient-to-r from-secondary to-blue-800 text-white">
|
| 6 |
+
<div class="container mx-auto px-4 text-center">
|
| 7 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-6">{{ _('Events Calendar') }}</h1>
|
| 8 |
+
<p class="text-xl max-w-2xl mx-auto">{{ _('Discover upcoming activities, celebrations, and important dates at Munishi School') }}</p>
|
| 9 |
+
</div>
|
| 10 |
+
</section>
|
| 11 |
+
|
| 12 |
+
<!-- Events Filters -->
|
| 13 |
+
<section class="py-10 bg-gradient-to-b from-white/20 to-transparent">
|
| 14 |
+
<div class="container mx-auto px-4">
|
| 15 |
+
<div class="glass-card p-6">
|
| 16 |
+
<div class="flex flex-col md:flex-row items-center justify-between gap-4">
|
| 17 |
+
<div>
|
| 18 |
+
<h2 class="text-xl font-bold">{{ _('Filter Events') }}</h2>
|
| 19 |
+
</div>
|
| 20 |
+
<div class="flex flex-wrap gap-3">
|
| 21 |
+
<button class="bg-primary text-white px-4 py-2 rounded-full text-sm font-medium">{{ _('All Events') }}</button>
|
| 22 |
+
<button class="bg-white/30 backdrop-blur-sm text-dark px-4 py-2 rounded-full text-sm font-medium hover:bg-primary/10">{{ _('Academic') }}</button>
|
| 23 |
+
<button class="bg-white/30 backdrop-blur-sm text-dark px-4 py-2 rounded-full text-sm font-medium hover:bg-primary/10">{{ _('Sports') }}</button>
|
| 24 |
+
<button class="bg-white/30 backdrop-blur-sm text-dark px-4 py-2 rounded-full text-sm font-medium hover:bg-primary/10">{{ _('Cultural') }}</button>
|
| 25 |
+
<button class="bg-white/30 backdrop-blur-sm text-dark px-4 py-2 rounded-full text-sm font-medium hover:bg-primary/10">{{ _('Community') }}</button>
|
| 26 |
+
</div>
|
| 27 |
+
</div>
|
| 28 |
+
</div>
|
| 29 |
+
</div>
|
| 30 |
+
</section>
|
| 31 |
+
|
| 32 |
+
<!-- Calendar View -->
|
| 33 |
+
<section class="py-16">
|
| 34 |
+
<div class="container mx-auto px-4">
|
| 35 |
+
<div class="flex flex-col md:flex-row justify-between items-center mb-8">
|
| 36 |
+
<h2 class="text-2xl font-bold">{{ _('School Events Calendar') }}</h2>
|
| 37 |
+
<div class="flex items-center gap-3 mt-4 md:mt-0">
|
| 38 |
+
<button class="bg-white/30 backdrop-blur-sm text-dark px-4 py-2 rounded-lg text-sm font-medium">
|
| 39 |
+
<i class="fas fa-chevron-left"></i>
|
| 40 |
+
</button>
|
| 41 |
+
<span class="text-lg font-bold">October 2023</span>
|
| 42 |
+
<button class="bg-white/30 backdrop-blur-sm text-dark px-4 py-2 rounded-lg text-sm font-medium">
|
| 43 |
+
<i class="fas fa-chevron-right"></i>
|
| 44 |
+
</button>
|
| 45 |
+
</div>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<div class="glass-card p-6">
|
| 49 |
+
<div class="grid grid-cols-7 gap-1 mb-4">
|
| 50 |
+
<div class="text-center text-primary font-bold p-2">{{ _('Sun') }}</div>
|
| 51 |
+
<div class="text-center text-primary font-bold p-2">{{ _('Mon') }}</div>
|
| 52 |
+
<div class="text-center text-primary font-bold p-2">{{ _('Tue') }}</div>
|
| 53 |
+
<div class="text-center text-primary font-bold p-2">{{ _('Wed') }}</div>
|
| 54 |
+
<div class="text-center text-primary font-bold p-2">{{ _('Thu') }}</div>
|
| 55 |
+
<div class="text-center text-primary font-bold p-2">{{ _('Fri') }}</div>
|
| 56 |
+
<div class="text-center text-primary font-bold p-2">{{ _('Sat') }}</div>
|
| 57 |
+
|
| 58 |
+
<!-- Empty days -->
|
| 59 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg"></div>
|
| 60 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg"></div>
|
| 61 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg"></div>
|
| 62 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg"></div>
|
| 63 |
+
|
| 64 |
+
<!-- Calendar days with events -->
|
| 65 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 66 |
+
<div class="font-bold mb-1">1</div>
|
| 67 |
+
</div>
|
| 68 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 69 |
+
<div class="font-bold mb-1">2</div>
|
| 70 |
+
</div>
|
| 71 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 72 |
+
<div class="font-bold mb-1">3</div>
|
| 73 |
+
</div>
|
| 74 |
+
|
| 75 |
+
<!-- Event days -->
|
| 76 |
+
<div class="text-center p-4 bg-accent/20 backdrop-blur-sm rounded-lg relative group">
|
| 77 |
+
<div class="font-bold mb-1">4</div>
|
| 78 |
+
<div class="w-2 h-2 bg-accent rounded-full mx-auto"></div>
|
| 79 |
+
<div class="absolute left-0 bottom-full mb-2 w-64 bg-white shadow-glass p-4 rounded-lg text-left opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 z-10">
|
| 80 |
+
<h3 class="font-bold text-accent">{{ _('Parent-Teacher Meeting') }}</h3>
|
| 81 |
+
<p class="text-sm text-dark/80 mt-1">9:00 AM - 12:00 PM</p>
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
<div class="text-center p-4 bg-primary/20 backdrop-blur-sm rounded-lg">
|
| 85 |
+
<div class="font-bold mb-1">5</div>
|
| 86 |
+
<div class="w-2 h-2 bg-primary rounded-full mx-auto"></div>
|
| 87 |
+
</div>
|
| 88 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 89 |
+
<div class="font-bold mb-1">6</div>
|
| 90 |
+
</div>
|
| 91 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 92 |
+
<div class="font-bold mb-1">7</div>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 95 |
+
<div class="font-bold mb-1">8</div>
|
| 96 |
+
</div>
|
| 97 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 98 |
+
<div class="font-bold mb-1">9</div>
|
| 99 |
+
</div>
|
| 100 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 101 |
+
<div class="font-bold mb-1">10</div>
|
| 102 |
+
</div>
|
| 103 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 104 |
+
<div class="font-bold mb-1">11</div>
|
| 105 |
+
</div>
|
| 106 |
+
<div class="text-center p-4 bg-secondary/20 backdrop-blur-sm rounded-lg">
|
| 107 |
+
<div class="font-bold mb-1">12</div>
|
| 108 |
+
<div class="w-2 h-2 bg-secondary rounded-full mx-auto"></div>
|
| 109 |
+
</div>
|
| 110 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 111 |
+
<div class="font-bold mb-1">13</div>
|
| 112 |
+
</div>
|
| 113 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 114 |
+
<div class="font-bold mb-1">14</div>
|
| 115 |
+
</div>
|
| 116 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 117 |
+
<div class="font-bold mb-1">15</div>
|
| 118 |
+
</div>
|
| 119 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 120 |
+
<div class="font-bold mb-1">16</div>
|
| 121 |
+
</div>
|
| 122 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 123 |
+
<div class="font-bold mb-1">17</div>
|
| 124 |
+
</div>
|
| 125 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 126 |
+
<div class="font-bold mb-1">18</div>
|
| 127 |
+
</div>
|
| 128 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 129 |
+
<div class="font-bold mb-1">19</div>
|
| 130 |
+
</div>
|
| 131 |
+
<div class="text-center p-4 bg-accent/20 backdrop-blur-sm rounded-lg">
|
| 132 |
+
<div class="font-bold mb-1">20</div>
|
| 133 |
+
<div class="w-2 h-2 bg-accent rounded-full mx-auto"></div>
|
| 134 |
+
</div>
|
| 135 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 136 |
+
<div class="font-bold mb-1">21</div>
|
| 137 |
+
</div>
|
| 138 |
+
<div class="text-center p-4 bg-primary/20 backdrop-blur-sm rounded-lg">
|
| 139 |
+
<div class="font-bold mb-1">22</div>
|
| 140 |
+
<div class="w-2 h-2 bg-primary rounded-full mx-auto"></div>
|
| 141 |
+
</div>
|
| 142 |
+
<div class="text-center p-4 bg-secondary/20 backdrop-blur-sm rounded-lg">
|
| 143 |
+
<div class="font-bold mb-1">23</div>
|
| 144 |
+
<div class="w-2 h-2 bg-secondary rounded-full mx-auto"></div>
|
| 145 |
+
</div>
|
| 146 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 147 |
+
<div class="font-bold mb-1">24</div>
|
| 148 |
+
</div>
|
| 149 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 150 |
+
<div class="font-bold mb-1">25</div>
|
| 151 |
+
</div>
|
| 152 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 153 |
+
<div class="font-bold mb-1">26</div>
|
| 154 |
+
</div>
|
| 155 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 156 |
+
<div class="font-bold mb-1">27</div>
|
| 157 |
+
</div>
|
| 158 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 159 |
+
<div class="font-bold mb-1">28</div>
|
| 160 |
+
</div>
|
| 161 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 162 |
+
<div class="font-bold mb-1">29</div>
|
| 163 |
+
</div>
|
| 164 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 165 |
+
<div class="font-bold mb-1">30</div>
|
| 166 |
+
</div>
|
| 167 |
+
<div class="text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 168 |
+
<div class="font-bold mb-1">31</div>
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
</div>
|
| 173 |
+
</section>
|
| 174 |
+
|
| 175 |
+
<!-- Upcoming Events -->
|
| 176 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 177 |
+
<div class="container mx-auto px-4">
|
| 178 |
+
<div class="flex flex-col md:flex-row justify-between items-center mb-8">
|
| 179 |
+
<h2 class="text-2xl font-bold">{{ _('Upcoming Events') }}</h2>
|
| 180 |
+
<div class="mt-4 md:mt-0">
|
| 181 |
+
<select class="bg-white/30 backdrop-blur-sm border border-white/30 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary">
|
| 182 |
+
<option>{{ _('This Month') }}</option>
|
| 183 |
+
<option>{{ _('Next Month') }}</option>
|
| 184 |
+
<option>{{ _('Next 3 Months') }}</option>
|
| 185 |
+
</select>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
+
|
| 189 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
|
| 190 |
+
{% for event in events %}
|
| 191 |
+
<div class="glass-card overflow-hidden transform transition-all duration-300 hover:-translate-y-2">
|
| 192 |
+
<div class="aspect-w-16 aspect-h-10 bg-gray-200 relative">
|
| 193 |
+
<div class="bg-gradient-to-r from-{{ event.color }}-500/30 to-{{ event.color }}-700/30 w-full h-full flex items-center justify-center">
|
| 194 |
+
<i class="{{ event.icon }} text-white text-5xl"></i>
|
| 195 |
+
</div>
|
| 196 |
+
<div class="absolute top-4 left-4 bg-{{ event.color }}-500 text-white px-3 py-1 rounded-full text-sm">
|
| 197 |
+
{{ event.category }}
|
| 198 |
+
</div>
|
| 199 |
+
<div class="absolute bottom-4 left-4 bg-white/30 backdrop-blur-sm text-dark px-3 py-1 rounded-full text-sm">
|
| 200 |
+
<i class="far fa-clock mr-1"></i> {{ event.time }}
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
<div class="p-6">
|
| 204 |
+
<h3 class="text-xl font-bold mb-2">{{ event.title }}</h3>
|
| 205 |
+
<div class="flex items-center text-sm text-dark/80 mb-4">
|
| 206 |
+
<i class="far fa-calendar-alt mr-2"></i>
|
| 207 |
+
<span>{{ event.date|format_date('full') }}</span>
|
| 208 |
+
<i class="fas fa-map-marker-alt ml-4 mr-2"></i>
|
| 209 |
+
<span>{{ event.location }}</span>
|
| 210 |
+
</div>
|
| 211 |
+
<p class="text-dark/70 mb-4">{{ event.description }}</p>
|
| 212 |
+
<div class="flex flex-wrap gap-2 mb-4">
|
| 213 |
+
{% for tag in event.tags %}
|
| 214 |
+
<span class="bg-{{ event.color }}/10 text-{{ event.color }} px-3 py-1 rounded-full text-sm">
|
| 215 |
+
{{ tag }}
|
| 216 |
+
</span>
|
| 217 |
+
{% endfor %}
|
| 218 |
+
</div>
|
| 219 |
+
<a href="#" class="btn-secondary">{{ _('View Details') }}</a>
|
| 220 |
+
</div>
|
| 221 |
+
</div>
|
| 222 |
+
{% endfor %}
|
| 223 |
+
</div>
|
| 224 |
+
|
| 225 |
+
<div class="mt-12 text-center">
|
| 226 |
+
<a href="#" class="btn-primary">{{ _('View All Upcoming Events') }}</a>
|
| 227 |
+
</div>
|
| 228 |
+
</div>
|
| 229 |
+
</section>
|
| 230 |
+
|
| 231 |
+
<!-- Past Events -->
|
| 232 |
+
<section class="py-16">
|
| 233 |
+
<div class="container mx-auto px-4">
|
| 234 |
+
<h2 class="section-title">{{ _('Past Events') }}</h2>
|
| 235 |
+
<p class="text-center max-w-2xl mx-auto mb-12 text-dark/80">
|
| 236 |
+
{{ _('Relive memorable moments from our school community') }}
|
| 237 |
+
</p>
|
| 238 |
+
|
| 239 |
+
<div class="glass-card p-6">
|
| 240 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
| 241 |
+
{% for event in past_events %}
|
| 242 |
+
<div class="flex items-start">
|
| 243 |
+
<div class="w-24 h-24 rounded-xl overflow-hidden flex-shrink-0">
|
| 244 |
+
<div class="bg-gradient-to-r from-{{ event.color }}-500/30 to-{{ event.color }}-700/30 w-full h-full flex items-center justify-center">
|
| 245 |
+
<i class="{{ event.icon }} text-white text-3xl"></i>
|
| 246 |
+
</div>
|
| 247 |
+
</div>
|
| 248 |
+
<div class="ml-4">
|
| 249 |
+
<h3 class="text-lg font-bold">{{ event.title }}</h3>
|
| 250 |
+
<div class="flex items-center text-sm text-dark/80 mt-1 mb-2">
|
| 251 |
+
<i class="far fa-calendar-alt mr-2"></i>
|
| 252 |
+
<span>{{ event.date|format_date('medium') }}</span>
|
| 253 |
+
</div>
|
| 254 |
+
<p class="text-dark/70">{{ event.description|truncate(120) }}</p>
|
| 255 |
+
<a href="#" class="text-primary hover:underline mt-2 inline-block">{{ _('See Photos') }}</a>
|
| 256 |
+
</div>
|
| 257 |
+
</div>
|
| 258 |
+
{% endfor %}
|
| 259 |
+
</div>
|
| 260 |
+
|
| 261 |
+
<div class="mt-8 text-center">
|
| 262 |
+
<a href="#" class="btn-secondary">{{ _('View Event Gallery') }}</a>
|
| 263 |
+
</div>
|
| 264 |
+
</div>
|
| 265 |
+
</div>
|
| 266 |
+
</section>
|
| 267 |
+
|
| 268 |
+
<!-- Annual Events -->
|
| 269 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 270 |
+
<div class="container mx-auto px-4">
|
| 271 |
+
<h2 class="section-title">{{ _('Annual Events') }}</h2>
|
| 272 |
+
<p class="text-center max-w-2xl mx-auto mb-12 text-dark/80">
|
| 273 |
+
{{ _('Traditions that bring our community together year after year') }}
|
| 274 |
+
</p>
|
| 275 |
+
|
| 276 |
+
<div class="glass-card p-6">
|
| 277 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
|
| 278 |
+
<div class="glass-card p-5 text-center">
|
| 279 |
+
<div class="text-5xl text-primary mb-4">
|
| 280 |
+
<i class="fas fa-graduation-cap"></i>
|
| 281 |
+
</div>
|
| 282 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Graduation Ceremony') }}</h3>
|
| 283 |
+
<p class="text-dark/70 mb-4">{{ _('Celebrating our graduating students and their achievements') }}</p>
|
| 284 |
+
<div class="text-sm text-primary font-bold">
|
| 285 |
+
{{ _('Every November') }}
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
|
| 289 |
+
<div class="glass-card p-5 text-center">
|
| 290 |
+
<div class="text-5xl text-secondary mb-4">
|
| 291 |
+
<i class="fas fa-medal"></i>
|
| 292 |
+
</div>
|
| 293 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Sports Day') }}</h3>
|
| 294 |
+
<p class="text-dark/70 mb-4">{{ _('Annual inter-house sports competition with athletic events') }}</p>
|
| 295 |
+
<div class="text-sm text-secondary font-bold">
|
| 296 |
+
{{ _('Every March') }}
|
| 297 |
+
</div>
|
| 298 |
+
</div>
|
| 299 |
+
|
| 300 |
+
<div class="glass-card p-5 text-center">
|
| 301 |
+
<div class="text-5xl text-accent mb-4">
|
| 302 |
+
<i class="fas fa-microscope"></i>
|
| 303 |
+
</div>
|
| 304 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Science Fair') }}</h3>
|
| 305 |
+
<p class="text-dark/70 mb-4">{{ _('Showcasing student innovations and scientific projects') }}</p>
|
| 306 |
+
<div class="text-sm text-accent font-bold">
|
| 307 |
+
{{ _('Every July') }}
|
| 308 |
+
</div>
|
| 309 |
+
</div>
|
| 310 |
+
|
| 311 |
+
<div class="glass-card p-5 text-center">
|
| 312 |
+
<div class="text-5xl text-primary mb-4">
|
| 313 |
+
<i class="fas fa-music"></i>
|
| 314 |
+
</div>
|
| 315 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Cultural Festival') }}</h3>
|
| 316 |
+
<p class="text-dark/70 mb-4">{{ _('Celebrating Tanzania\'s diverse cultural heritage') }}</p>
|
| 317 |
+
<div class="text-sm text-primary font-bold">
|
| 318 |
+
{{ _('Every September') }}
|
| 319 |
+
</div>
|
| 320 |
+
</div>
|
| 321 |
+
</div>
|
| 322 |
+
</div>
|
| 323 |
+
</div>
|
| 324 |
+
</section>
|
| 325 |
+
|
| 326 |
+
<!-- CTA Section -->
|
| 327 |
+
<section class="py-16 bg-gradient-to-r from-primary to-secondary">
|
| 328 |
+
<div class="container mx-auto px-4">
|
| 329 |
+
<div class="max-w-4xl mx-auto text-center">
|
| 330 |
+
<h2 class="text-3xl md:text-4xl font-bold text-white mb-6">{{ _('Host an Event at Munishi') }}</h2>
|
| 331 |
+
<p class="text-white/90 text-xl mb-10 max-w-2xl mx-auto">
|
| 332 |
+
{{ _('Our facilities are available for educational, cultural, and community events') }}
|
| 333 |
+
</p>
|
| 334 |
+
<div class="flex flex-col sm:flex-row items-center justify-center space-y-4 sm:space-y-0 sm:space-x-6">
|
| 335 |
+
<a href="{{ url_for('contact') }}" class="bg-white text-primary px-8 py-4 rounded-full font-bold transition-all duration-300 hover:bg-gray-100 hover:scale-105">
|
| 336 |
+
{{ _('Request Venue') }}
|
| 337 |
+
</a>
|
| 338 |
+
<a href="#" class="bg-transparent border-2 border-white text-white px-8 py-4 rounded-full font-bold transition-all duration-300 hover:bg-white/10">
|
| 339 |
+
{{ _('View Facilities') }}
|
| 340 |
+
</a>
|
| 341 |
+
</div>
|
| 342 |
+
</div>
|
| 343 |
+
</div>
|
| 344 |
+
</section>
|
| 345 |
+
{% endblock %}
|
templates/home.html
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<!-- Hero Section -->
|
| 5 |
+
<section class="relative py-16 md:py-24 overflow-hidden">
|
| 6 |
+
<div class="absolute inset-0 z-0">
|
| 7 |
+
<div class="absolute top-10 right-10 w-64 h-64 rounded-full bg-secondary/20 blur-3xl animate-pulse-slow"></div>
|
| 8 |
+
<div class="absolute bottom-10 left-10 w-72 h-72 rounded-full bg-primary/20 blur-3xl animate-pulse-slow"></div>
|
| 9 |
+
<div class="absolute top-1/2 left-1/4 w-48 h-48 rounded-full bg-accent/20 blur-3xl animate-pulse-slow"></div>
|
| 10 |
+
</div>
|
| 11 |
+
|
| 12 |
+
<div class="container mx-auto px-4 relative z-10">
|
| 13 |
+
<div class="max-w-4xl mx-auto text-center">
|
| 14 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-6 fade-in">
|
| 15 |
+
<span class="text-primary">{{ _('Inspiring') }}</span> {{ _('Excellence') }},
|
| 16 |
+
<span class="text-secondary">{{ _('Nurturing') }}</span> {{ _('Futures') }}
|
| 17 |
+
</h1>
|
| 18 |
+
<p class="text-xl md:text-2xl mb-10 text-dark/80 max-w-2xl mx-auto fade-in">
|
| 19 |
+
{{ _('At Munishi School, we empower students to become innovative thinkers, compassionate leaders, and responsible global citizens.') }}
|
| 20 |
+
</p>
|
| 21 |
+
<div class="flex flex-col sm:flex-row items-center justify-center space-y-4 sm:space-y-0 sm:space-x-6 fade-in">
|
| 22 |
+
<a href="{{ url_for('academics') }}" class="btn-primary">{{ _('Explore Our Programs') }}</a>
|
| 23 |
+
<a href="{{ url_for('contact') }}" class="btn-secondary">{{ _('Schedule a Tour') }}</a>
|
| 24 |
+
</div>
|
| 25 |
+
</div>
|
| 26 |
+
|
| 27 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mt-20">
|
| 28 |
+
<div class="glass-card p-6 transform transition-all duration-500 hover:-translate-y-2">
|
| 29 |
+
<div class="w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mb-4">
|
| 30 |
+
<i class="fas fa-graduation-cap text-primary text-2xl"></i>
|
| 31 |
+
</div>
|
| 32 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Academic Excellence') }}</h3>
|
| 33 |
+
<p class="text-dark/70">{{ _('Ranked among the top schools nationally with exceptional examination results.') }}</p>
|
| 34 |
+
</div>
|
| 35 |
+
|
| 36 |
+
<div class="glass-card p-6 transform transition-all duration-500 hover:-translate-y-2">
|
| 37 |
+
<div class="w-16 h-16 rounded-full bg-secondary/10 flex items-center justify-center mb-4">
|
| 38 |
+
<i class="fas fa-users text-secondary text-2xl"></i>
|
| 39 |
+
</div>
|
| 40 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Inclusive Community') }}</h3>
|
| 41 |
+
<p class="text-dark/70">{{ _('A diverse, welcoming environment where every student is valued and supported.') }}</p>
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
<div class="glass-card p-6 transform transition-all duration-500 hover:-translate-y-2">
|
| 45 |
+
<div class="w-16 h-16 rounded-full bg-accent/10 flex items-center justify-center mb-4">
|
| 46 |
+
<i class="fas fa-lightbulb text-accent text-2xl"></i>
|
| 47 |
+
</div>
|
| 48 |
+
<h3 class="text-xl font-bold mb-2">{{ _('Innovative Learning') }}</h3>
|
| 49 |
+
<p class="text-dark/70">{{ _('State-of-the-art facilities and modern teaching methodologies for the 21st century.') }}</p>
|
| 50 |
+
</div>
|
| 51 |
+
</div>
|
| 52 |
+
</div>
|
| 53 |
+
</section>
|
| 54 |
+
|
| 55 |
+
<!-- News & Events Section -->
|
| 56 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 57 |
+
<div class="container mx-auto px-4">
|
| 58 |
+
<div class="flex flex-col md:flex-row justify-between items-center mb-12">
|
| 59 |
+
<h2 class="section-title">{{ _('Latest News') }}</h2>
|
| 60 |
+
<a href="{{ url_for('news') }}" class="btn-secondary mt-4 md:mt-0">{{ _('View All News') }}</a>
|
| 61 |
+
</div>
|
| 62 |
+
|
| 63 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 64 |
+
{% for item in news %}
|
| 65 |
+
<div class="glass-card overflow-hidden transform transition-all duration-300 hover:-translate-y-2">
|
| 66 |
+
<div class="aspect-w-16 aspect-h-10 bg-gray-200">
|
| 67 |
+
<div class="bg-gradient-to-r from-primary/30 to-secondary/30 w-full h-full flex items-center justify-center">
|
| 68 |
+
<i class="fas fa-newspaper text-white text-5xl"></i>
|
| 69 |
+
</div>
|
| 70 |
+
</div>
|
| 71 |
+
<div class="p-6">
|
| 72 |
+
<span class="text-sm text-primary font-medium">{{ item.date|format_date }}</span>
|
| 73 |
+
<h3 class="text-xl font-bold my-2">{{ item.title }}</h3>
|
| 74 |
+
<p class="text-dark/70 mb-4">{{ item.excerpt }}</p>
|
| 75 |
+
<a href="{{ url_for('news_detail', slug=item.slug) }}" class="text-primary font-medium hover:underline">{{ _('Read More') }}</a>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
{% endfor %}
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<div class="flex flex-col md:flex-row justify-between items-center mt-16 mb-12">
|
| 82 |
+
<h2 class="section-title">{{ _('Upcoming Events') }}</h2>
|
| 83 |
+
<a href="{{ url_for('events') }}" class="btn-secondary mt-4 md:mt-0">{{ _('View All Events') }}</a>
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<div class="glass-card p-6">
|
| 87 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 88 |
+
{% for event in events %}
|
| 89 |
+
<div class="flex items-start">
|
| 90 |
+
<div class="bg-gradient-to-r from-primary to-secondary text-white text-center py-4 px-5 rounded-xl min-w-[80px]">
|
| 91 |
+
<div class="text-lg font-bold">{{ event.date|format_date('full', 'first') }}</div>
|
| 92 |
+
<div class="text-3xl font-bold mt-1">{{ event.date|format_date('full', 'second') }}</div>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="ml-4">
|
| 95 |
+
<h3 class="text-xl font-bold">{{ event.title }}</h3>
|
| 96 |
+
<p class="text-dark/70 mt-2">{{ event.description|truncate(100) }}</p>
|
| 97 |
+
<div class="flex items-center text-sm text-dark/80 mt-3">
|
| 98 |
+
<i class="fas fa-clock mr-2"></i>
|
| 99 |
+
<span>{{ event.time or _('All Day') }}</span>
|
| 100 |
+
<i class="fas fa-map-marker-alt ml-4 mr-2"></i>
|
| 101 |
+
<span>{{ event.location or school_name }}</span>
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
{% endfor %}
|
| 106 |
+
</div>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
</section>
|
| 110 |
+
|
| 111 |
+
<!-- Testimonials -->
|
| 112 |
+
<section class="py-16">
|
| 113 |
+
<div class="container mx-auto px-4">
|
| 114 |
+
<h2 class="section-title">{{ _('What Our Community Says') }}</h2>
|
| 115 |
+
|
| 116 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mt-12">
|
| 117 |
+
<div class="glass-card p-6 transform transition-all duration-300 hover:-translate-y-2">
|
| 118 |
+
<div class="flex items-center mb-4">
|
| 119 |
+
<div class="w-12 h-12 rounded-full bg-gradient-to-r from-primary to-secondary flex items-center justify-center text-white font-bold">A</div>
|
| 120 |
+
<div class="ml-4">
|
| 121 |
+
<h4 class="font-bold">{{ _('Amina Juma') }}</h4>
|
| 122 |
+
<p class="text-dark/70 text-sm">{{ _('Parent') }}</p>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
<p class="text-dark/80 italic">{{ _('"The transformation in my daughter since joining Munishi has been remarkable. She\'s more confident and passionate about learning."') }}</p>
|
| 126 |
+
<div class="flex text-yellow-400 mt-4">
|
| 127 |
+
<i class="fas fa-star"></i>
|
| 128 |
+
<i class="fas fa-star"></i>
|
| 129 |
+
<i class="fas fa-star"></i>
|
| 130 |
+
<i class="fas fa-star"></i>
|
| 131 |
+
<i class="fas fa-star"></i>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
|
| 135 |
+
<div class="glass-card p-6 transform transition-all duration-300 hover:-translate-y-2">
|
| 136 |
+
<div class="flex items-center mb-4">
|
| 137 |
+
<div class="w-12 h-12 rounded-full bg-gradient-to-r from-secondary to-accent flex items-center justify-center text-white font-bold">D</div>
|
| 138 |
+
<div class="ml-4">
|
| 139 |
+
<h4 class="font-bold">{{ _('David Omondi') }}</h4>
|
| 140 |
+
<p class="text-dark/70 text-sm">{{ _('Alumni') }}</p>
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
<p class="text-dark/80 italic">{{ _('"Munishi prepared me not just academically, but for life. The leadership opportunities I had shaped my career path."') }}</p>
|
| 144 |
+
<div class="flex text-yellow-400 mt-4">
|
| 145 |
+
<i class="fas fa-star"></i>
|
| 146 |
+
<i class="fas fa-star"></i>
|
| 147 |
+
<i class="fas fa-star"></i>
|
| 148 |
+
<i class="fas fa-star"></i>
|
| 149 |
+
<i class="fas fa-star"></i>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<div class="glass-card p-6 transform transition-all duration-300 hover:-translate-y-2">
|
| 154 |
+
<div class="flex items-center mb-4">
|
| 155 |
+
<div class="w-12 h-12 rounded-full bg-gradient-to-r from-accent to-primary flex items-center justify-center text-white font-bold">J</div>
|
| 156 |
+
<div class="ml-4">
|
| 157 |
+
<h4 class="font-bold">{{ _('John Mwamba') }}</h4>
|
| 158 |
+
<p class="text-dark/70 text-sm">{{ _('Student') }}</p>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
<p class="text-dark/80 italic">{{ _('"I love the balance between academics and extracurriculars. The robotics club has been life-changing for me!"') }}</p>
|
| 162 |
+
<div class="flex text-yellow-400 mt-4">
|
| 163 |
+
<i class="fas fa-star"></i>
|
| 164 |
+
<i class="fas fa-star"></i>
|
| 165 |
+
<i class="fas fa-star"></i>
|
| 166 |
+
<i class="fas fa-star"></i>
|
| 167 |
+
<i class="fas fa-star"></i>
|
| 168 |
+
</div>
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
</section>
|
| 173 |
+
|
| 174 |
+
<!-- CTA Section -->
|
| 175 |
+
<section class="py-16 bg-gradient-to-r from-primary to-secondary">
|
| 176 |
+
<div class="container mx-auto px-4">
|
| 177 |
+
<div class="max-w-4xl mx-auto text-center">
|
| 178 |
+
<h2 class="text-3xl md:text-4xl font-bold text-white mb-6">{{ _('Ready to Join the Munishi Family?') }}</h2>
|
| 179 |
+
<p class="text-white/90 text-xl mb-10 max-w-2xl mx-auto">
|
| 180 |
+
{{ _('Applications for the 2024 academic year are now open. Limited spaces available.') }}
|
| 181 |
+
</p>
|
| 182 |
+
<div class="flex flex-col sm:flex-row items-center justify-center space-y-4 sm:space-y-0 sm:space-x-6">
|
| 183 |
+
<a href="{{ url_for('admissions') }}" class="bg-white text-primary px-8 py-4 rounded-full font-bold transition-all duration-300 hover:bg-gray-100 hover:scale-105">
|
| 184 |
+
{{ _('Apply Now') }}
|
| 185 |
+
</a>
|
| 186 |
+
<a href="{{ url_for('download_file', category='admissions', filename='prospectus.pdf') }}" class="bg-transparent border-2 border-white text-white px-8 py-4 rounded-full font-bold transition-all duration-300 hover:bg-white/10">
|
| 187 |
+
{{ _('Download Prospectus') }}
|
| 188 |
+
</a>
|
| 189 |
+
</div>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
</section>
|
| 193 |
+
{% endblock %}
|
templates/news.html
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<!-- Hero Section -->
|
| 5 |
+
<section class="relative py-20 bg-gradient-to-r from-primary to-indigo-800 text-white">
|
| 6 |
+
<div class="container mx-auto px-4 text-center">
|
| 7 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-6">{{ _('News & Announcements') }}</h1>
|
| 8 |
+
<p class="text-xl max-w-2xl mx-auto">{{ _('Stay updated with the latest happenings at Munishi School') }}</p>
|
| 9 |
+
</div>
|
| 10 |
+
</section>
|
| 11 |
+
|
| 12 |
+
<!-- News Filters -->
|
| 13 |
+
<section class="py-10 bg-gradient-to-b from-white/20 to-transparent">
|
| 14 |
+
<div class="container mx-auto px-4">
|
| 15 |
+
<div class="glass-card p-6">
|
| 16 |
+
<div class="flex flex-col md:flex-row items-center justify-between">
|
| 17 |
+
<div class="mb-4 md:mb-0">
|
| 18 |
+
<h2 class="text-xl font-bold">{{ _('Filter News') }}</h2>
|
| 19 |
+
</div>
|
| 20 |
+
<div class="flex flex-wrap gap-3">
|
| 21 |
+
<button class="bg-primary text-white px-4 py-2 rounded-full text-sm font-medium">{{ _('All News') }}</button>
|
| 22 |
+
<button class="bg-white/30 backdrop-blur-sm text-dark px-4 py-2 rounded-full text-sm font-medium hover:bg-primary/10">{{ _('Announcements') }}</button>
|
| 23 |
+
<button class="bg-white/30 backdrop-blur-sm text-dark px-4 py-2 rounded-full text-sm font-medium hover:bg-primary/10">{{ _('Events') }}</button>
|
| 24 |
+
<button class="bg-white/30 backdrop-blur-sm text-dark px-4 py-2 rounded-full text-sm font-medium hover:bg-primary/10">{{ _('Achievements') }}</button>
|
| 25 |
+
<button class="bg-white/30 backdrop-blur-sm text-dark px-4 py-2 rounded-full text-sm font-medium hover:bg-primary/10">{{ _('School Life') }}</button>
|
| 26 |
+
</div>
|
| 27 |
+
</div>
|
| 28 |
+
</div>
|
| 29 |
+
</div>
|
| 30 |
+
</section>
|
| 31 |
+
|
| 32 |
+
<!-- News Grid -->
|
| 33 |
+
<section class="py-16">
|
| 34 |
+
<div class="container mx-auto px-4">
|
| 35 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 36 |
+
{% for item in news %}
|
| 37 |
+
<div class="glass-card overflow-hidden transform transition-all duration-300 hover:-translate-y-2">
|
| 38 |
+
<div class="aspect-w-16 aspect-h-10 bg-gray-200 relative">
|
| 39 |
+
<div class="bg-gradient-to-r from-primary/30 to-secondary/30 w-full h-full flex items-center justify-center">
|
| 40 |
+
<i class="fas fa-newspaper text-white text-5xl"></i>
|
| 41 |
+
</div>
|
| 42 |
+
<div class="absolute top-4 left-4 bg-primary text-white px-3 py-1 rounded-full text-sm">
|
| 43 |
+
{{ item.category }}
|
| 44 |
+
</div>
|
| 45 |
+
<div class="absolute top-4 right-4 bg-white/30 backdrop-blur-sm text-dark px-3 py-1 rounded-full text-sm">
|
| 46 |
+
<i class="far fa-clock mr-1"></i> {{ item.date|format_date }}
|
| 47 |
+
</div>
|
| 48 |
+
</div>
|
| 49 |
+
<div class="p-6">
|
| 50 |
+
<h3 class="text-xl font-bold mb-3">{{ item.title }}</h3>
|
| 51 |
+
<p class="text-dark/70 mb-4">{{ item.excerpt }}</p>
|
| 52 |
+
<a href="{{ url_for('news_detail', slug=item.slug) }}" class="text-primary font-medium hover:underline flex items-center">
|
| 53 |
+
{{ _('Read Full Story') }}
|
| 54 |
+
<i class="fas fa-arrow-right ml-2 text-sm"></i>
|
| 55 |
+
</a>
|
| 56 |
+
</div>
|
| 57 |
+
</div>
|
| 58 |
+
{% endfor %}
|
| 59 |
+
</div>
|
| 60 |
+
</div>
|
| 61 |
+
</section>
|
| 62 |
+
|
| 63 |
+
<!-- Highlighted News -->
|
| 64 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 65 |
+
<div class="container mx-auto px-4">
|
| 66 |
+
<h2 class="section-title">{{ _('Featured Stories') }}</h2>
|
| 67 |
+
|
| 68 |
+
<div class="glass-card overflow-hidden mt-12">
|
| 69 |
+
<div class="grid grid-cols-1 lg:grid-cols-2">
|
| 70 |
+
<div class="aspect-w-16 aspect-h-9 lg:aspect-h-auto lg:h-full bg-gray-200">
|
| 71 |
+
<div class="bg-gradient-to-r from-primary/30 to-secondary/30 w-full h-full flex items-center justify-center">
|
| 72 |
+
<i class="fas fa-star text-white text-6xl"></i>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
<div class="p-8 lg:p-12">
|
| 76 |
+
<span class="bg-secondary text-white px-3 py-1 rounded-full text-sm mb-4 inline-block">
|
| 77 |
+
{{ _('Featured') }}
|
| 78 |
+
</span>
|
| 79 |
+
<h3 class="text-2xl md:text-3xl font-bold mb-4">{{ _('Munishi Students Win National Science Competition') }}</h3>
|
| 80 |
+
<p class="text-dark/80 mb-6">
|
| 81 |
+
{{ _('Our Form 3 students took first place in the National Science Fair with their innovative water purification project, competing against 50 schools nationwide.') }}
|
| 82 |
+
</p>
|
| 83 |
+
<div class="flex flex-wrap gap-4 mb-6">
|
| 84 |
+
<span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">
|
| 85 |
+
{{ _('Achievement') }}
|
| 86 |
+
</span>
|
| 87 |
+
<span class="bg-secondary/10 text-secondary px-3 py-1 rounded-full text-sm">
|
| 88 |
+
{{ _('Science') }}
|
| 89 |
+
</span>
|
| 90 |
+
<span class="bg-accent/10 text-accent px-3 py-1 rounded-full text-sm">
|
| 91 |
+
{{ _('Competition') }}
|
| 92 |
+
</span>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="flex items-center text-dark/80 text-sm">
|
| 95 |
+
<i class="far fa-calendar-alt mr-2"></i>
|
| 96 |
+
<span>{{ _('Published: October 15, 2023') }}</span>
|
| 97 |
+
<i class="far fa-user ml-4 mr-2"></i>
|
| 98 |
+
<span>{{ _('By School Communications') }}</span>
|
| 99 |
+
</div>
|
| 100 |
+
<a href="#" class="btn-primary mt-8 inline-block">{{ _('Read Full Story') }}</a>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
</section>
|
| 106 |
+
|
| 107 |
+
<!-- News Archive -->
|
| 108 |
+
<section class="py-16">
|
| 109 |
+
<div class="container mx-auto px-4">
|
| 110 |
+
<h2 class="section-title">{{ _('News Archive') }}</h2>
|
| 111 |
+
|
| 112 |
+
<div class="glass-card p-6 mt-12">
|
| 113 |
+
<div class="flex flex-col md:flex-row justify-between items-center mb-8">
|
| 114 |
+
<h3 class="text-xl font-bold">{{ _('Browse by Month') }}</h3>
|
| 115 |
+
<div class="mt-4 md:mt-0">
|
| 116 |
+
<select class="bg-white/30 backdrop-blur-sm border border-white/30 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary">
|
| 117 |
+
<option>{{ _('Select Year') }}</option>
|
| 118 |
+
<option>2023</option>
|
| 119 |
+
<option>2022</option>
|
| 120 |
+
<option>2021</option>
|
| 121 |
+
</select>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-4">
|
| 126 |
+
<a href="#" class="glass-card p-4 text-center hover:bg-primary/10 transition-colors">
|
| 127 |
+
<div class="text-lg font-bold text-primary">Jan</div>
|
| 128 |
+
<div class="text-sm text-dark/70">12 {{ _('articles') }}</div>
|
| 129 |
+
</a>
|
| 130 |
+
<a href="#" class="glass-card p-4 text-center hover:bg-primary/10 transition-colors">
|
| 131 |
+
<div class="text-lg font-bold text-primary">Feb</div>
|
| 132 |
+
<div class="text-sm text-dark/70">8 {{ _('articles') }}</div>
|
| 133 |
+
</a>
|
| 134 |
+
<a href="#" class="glass-card p-4 text-center hover:bg-primary/10 transition-colors">
|
| 135 |
+
<div class="text-lg font-bold text-primary">Mar</div>
|
| 136 |
+
<div class="text-sm text-dark/70">15 {{ _('articles') }}</div>
|
| 137 |
+
</a>
|
| 138 |
+
<a href="#" class="glass-card p-4 text-center hover:bg-primary/10 transition-colors">
|
| 139 |
+
<div class="text-lg font-bold text-primary">Apr</div>
|
| 140 |
+
<div class="text-sm text-dark/70">10 {{ _('articles') }}</div>
|
| 141 |
+
</a>
|
| 142 |
+
<a href="#" class="glass-card p-4 text-center hover:bg-primary/10 transition-colors">
|
| 143 |
+
<div class="text-lg font-bold text-primary">May</div>
|
| 144 |
+
<div class="text-sm text-dark/70">7 {{ _('articles') }}</div>
|
| 145 |
+
</a>
|
| 146 |
+
<a href="#" class="glass-card p-4 text-center hover:bg-primary/10 transition-colors">
|
| 147 |
+
<div class="text-lg font-bold text-primary">Jun</div>
|
| 148 |
+
<div class="text-sm text-dark/70">14 {{ _('articles') }}</div>
|
| 149 |
+
</a>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
</section>
|
| 154 |
+
|
| 155 |
+
<!-- Newsletter -->
|
| 156 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 157 |
+
<div class="container mx-auto px-4">
|
| 158 |
+
<div class="max-w-3xl mx-auto glass-card p-8 text-center">
|
| 159 |
+
<h2 class="text-3xl font-bold mb-4">{{ _('Stay Updated') }}</h2>
|
| 160 |
+
<p class="text-dark/80 mb-8 max-w-2xl mx-auto">
|
| 161 |
+
{{ _('Subscribe to our newsletter and never miss important announcements, events, or news from Munishi School') }}
|
| 162 |
+
</p>
|
| 163 |
+
|
| 164 |
+
<form class="flex flex-col sm:flex-row gap-4 max-w-xl mx-auto">
|
| 165 |
+
<input
|
| 166 |
+
type="email"
|
| 167 |
+
placeholder="{{ _('Your email address') }}"
|
| 168 |
+
class="flex-grow px-4 py-3 rounded-lg border border-white/30 focus:outline-none focus:ring-2 focus:ring-primary bg-white/20 backdrop-blur-sm"
|
| 169 |
+
>
|
| 170 |
+
<button type="submit" class="btn-primary px-8 py-3">
|
| 171 |
+
{{ _('Subscribe') }}
|
| 172 |
+
</button>
|
| 173 |
+
</form>
|
| 174 |
+
|
| 175 |
+
<p class="text-sm text-dark/60 mt-4">
|
| 176 |
+
{{ _('We respect your privacy. Unsubscribe at any time.') }}
|
| 177 |
+
</p>
|
| 178 |
+
</div>
|
| 179 |
+
</div>
|
| 180 |
+
</section>
|
| 181 |
+
{% endblock %}
|
templates/student_life.html
ADDED
|
@@ -0,0 +1,335 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<!-- Hero Section -->
|
| 5 |
+
<section class="relative py-20 bg-gradient-to-r from-secondary to-accent text-white">
|
| 6 |
+
<div class="container mx-auto px-4 text-center">
|
| 7 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-6">{{ _('Student Life') }}</h1>
|
| 8 |
+
<p class="text-xl max-w-2xl mx-auto">{{ _('Beyond academics: Discover a vibrant community of activities, clubs, and opportunities') }}</p>
|
| 9 |
+
</div>
|
| 10 |
+
</section>
|
| 11 |
+
|
| 12 |
+
<!-- Clubs & Societies -->
|
| 13 |
+
<section class="py-16">
|
| 14 |
+
<div class="container mx-auto px-4">
|
| 15 |
+
<div class="flex flex-col md:flex-row justify-between items-center mb-12">
|
| 16 |
+
<h2 class="section-title">{{ _('Clubs & Societies') }}</h2>
|
| 17 |
+
<a href="#" class="btn-secondary mt-4 md:mt-0">{{ _('View All Clubs') }}</a>
|
| 18 |
+
</div>
|
| 19 |
+
|
| 20 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 21 |
+
{% for club in clubs %}
|
| 22 |
+
<div class="glass-card overflow-hidden transform transition-all duration-300 hover:-translate-y-2">
|
| 23 |
+
<div class="aspect-w-16 aspect-h-10 bg-gray-200 relative">
|
| 24 |
+
<div class="bg-gradient-to-r from-{{ club.color }}-500/30 to-{{ club.color }}-700/30 w-full h-full flex items-center justify-center">
|
| 25 |
+
<i class="{{ club.icon }} text-white text-5xl"></i>
|
| 26 |
+
</div>
|
| 27 |
+
<div class="absolute top-4 right-4 bg-{{ club.color }}-500 text-white px-3 py-1 rounded-full text-sm">
|
| 28 |
+
{{ club.category }}
|
| 29 |
+
</div>
|
| 30 |
+
</div>
|
| 31 |
+
<div class="p-6">
|
| 32 |
+
<h3 class="text-xl font-bold mb-2">{{ club.name }}</h3>
|
| 33 |
+
<p class="text-dark/70 mb-4">{{ club.description }}</p>
|
| 34 |
+
<div class="flex justify-between items-center">
|
| 35 |
+
<div class="flex items-center">
|
| 36 |
+
<i class="fas fa-user-friends mr-2 text-{{ club.color }}-500"></i>
|
| 37 |
+
<span>{{ club.members }} {{ _('members') }}</span>
|
| 38 |
+
</div>
|
| 39 |
+
<a href="#" class="text-{{ club.color }}-500 hover:underline">{{ _('Learn More') }}</a>
|
| 40 |
+
</div>
|
| 41 |
+
</div>
|
| 42 |
+
</div>
|
| 43 |
+
{% endfor %}
|
| 44 |
+
</div>
|
| 45 |
+
</div>
|
| 46 |
+
</section>
|
| 47 |
+
|
| 48 |
+
<!-- Sports & Athletics -->
|
| 49 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 50 |
+
<div class="container mx-auto px-4">
|
| 51 |
+
<div class="flex flex-col md:flex-row justify-between items-center mb-12">
|
| 52 |
+
<h2 class="section-title">{{ _('Sports & Athletics') }}</h2>
|
| 53 |
+
<a href="#" class="btn-secondary mt-4 md:mt-0">{{ _('View All Sports') }}</a>
|
| 54 |
+
</div>
|
| 55 |
+
|
| 56 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
| 57 |
+
<div class="glass-card p-8">
|
| 58 |
+
<h3 class="text-2xl font-bold mb-6 text-primary">{{ _('Competitive Sports') }}</h3>
|
| 59 |
+
<div class="grid grid-cols-2 gap-4">
|
| 60 |
+
{% for sport in sports.competitive %}
|
| 61 |
+
<div class="flex items-center p-3 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 62 |
+
<div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center mr-3">
|
| 63 |
+
<i class="{{ sport.icon }} text-primary"></i>
|
| 64 |
+
</div>
|
| 65 |
+
<span class="font-medium">{{ sport.name }}</span>
|
| 66 |
+
</div>
|
| 67 |
+
{% endfor %}
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
|
| 71 |
+
<div class="glass-card p-8">
|
| 72 |
+
<h3 class="text-2xl font-bold mb-6 text-secondary">{{ _('Recreational Activities') }}</h3>
|
| 73 |
+
<div class="grid grid-cols-2 gap-4">
|
| 74 |
+
{% for activity in sports.recreational %}
|
| 75 |
+
<div class="flex items-center p-3 bg-white/10 backdrop-blur-sm rounded-lg">
|
| 76 |
+
<div class="w-10 h-10 rounded-full bg-secondary/10 flex items-center justify-center mr-3">
|
| 77 |
+
<i class="{{ activity.icon }} text-secondary"></i>
|
| 78 |
+
</div>
|
| 79 |
+
<span class="font-medium">{{ activity.name }}</span>
|
| 80 |
+
</div>
|
| 81 |
+
{% endfor %}
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<div class="glass-card p-6 mt-8">
|
| 87 |
+
<h3 class="text-2xl font-bold mb-6 text-center">{{ _('Sports Achievements') }}</h3>
|
| 88 |
+
|
| 89 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 90 |
+
{% for achievement in sports.achievements %}
|
| 91 |
+
<div class="glass-card p-4 text-center">
|
| 92 |
+
<div class="text-5xl text-{{ achievement.color }} mb-3">
|
| 93 |
+
<i class="fas fa-trophy"></i>
|
| 94 |
+
</div>
|
| 95 |
+
<h4 class="font-bold text-lg">{{ achievement.title }}</h4>
|
| 96 |
+
<p class="text-dark/70">{{ achievement.description }}</p>
|
| 97 |
+
<div class="mt-3 text-sm text-{{ achievement.color }} font-bold">
|
| 98 |
+
{{ achievement.date }}
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
{% endfor %}
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
</section>
|
| 106 |
+
|
| 107 |
+
<!-- Arts & Culture -->
|
| 108 |
+
<section class="py-16">
|
| 109 |
+
<div class="container mx-auto px-4">
|
| 110 |
+
<h2 class="section-title">{{ _('Arts & Culture') }}</h2>
|
| 111 |
+
|
| 112 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 mt-12">
|
| 113 |
+
<div class="glass-card p-8">
|
| 114 |
+
<h3 class="text-2xl font-bold mb-6 text-accent">{{ _('Performing Arts') }}</h3>
|
| 115 |
+
<div class="grid grid-cols-1 gap-6">
|
| 116 |
+
{% for art in arts.performing %}
|
| 117 |
+
<div class="flex items-start">
|
| 118 |
+
<div class="bg-accent/10 w-16 h-16 rounded-lg flex items-center justify-center flex-shrink-0 mr-4">
|
| 119 |
+
<i class="{{ art.icon }} text-accent text-xl"></i>
|
| 120 |
+
</div>
|
| 121 |
+
<div>
|
| 122 |
+
<h4 class="font-bold text-lg">{{ art.name }}</h4>
|
| 123 |
+
<p class="text-dark/70 mt-2">{{ art.description }}</p>
|
| 124 |
+
{% if art.upcoming %}
|
| 125 |
+
<div class="mt-3 bg-accent/10 text-accent inline-block px-3 py-1 rounded-full text-sm">
|
| 126 |
+
<i class="far fa-calendar-alt mr-1"></i> {{ art.upcoming }}
|
| 127 |
+
</div>
|
| 128 |
+
{% endif %}
|
| 129 |
+
</div>
|
| 130 |
+
</div>
|
| 131 |
+
{% endfor %}
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
|
| 135 |
+
<div class="glass-card p-8">
|
| 136 |
+
<h3 class="text-2xl font-bold mb-6 text-primary">{{ _('Visual Arts') }}</h3>
|
| 137 |
+
<div class="grid grid-cols-1 gap-6">
|
| 138 |
+
{% for art in arts.visual %}
|
| 139 |
+
<div class="flex items-start">
|
| 140 |
+
<div class="bg-primary/10 w-16 h-16 rounded-lg flex items-center justify-center flex-shrink-0 mr-4">
|
| 141 |
+
<i class="{{ art.icon }} text-primary text-xl"></i>
|
| 142 |
+
</div>
|
| 143 |
+
<div>
|
| 144 |
+
<h4 class="font-bold text-lg">{{ art.name }}</h4>
|
| 145 |
+
<p class="text-dark/70 mt-2">{{ art.description }}</p>
|
| 146 |
+
{% if art.exhibition %}
|
| 147 |
+
<div class="mt-3 bg-primary/10 text-primary inline-block px-3 py-1 rounded-full text-sm">
|
| 148 |
+
<i class="far fa-calendar-alt mr-1"></i> {{ art.exhibition }}
|
| 149 |
+
</div>
|
| 150 |
+
{% endif %}
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
{% endfor %}
|
| 154 |
+
</div>
|
| 155 |
+
</div>
|
| 156 |
+
</div>
|
| 157 |
+
|
| 158 |
+
<div class="glass-card p-6 mt-12">
|
| 159 |
+
<div class="flex flex-col md:flex-row items-center">
|
| 160 |
+
<div class="md:w-1/3 mb-6 md:mb-0">
|
| 161 |
+
<div class="bg-gradient-to-r from-secondary to-accent text-white text-center py-8 px-6 rounded-xl">
|
| 162 |
+
<div class="text-4xl font-bold">{{ _('Gallery') }}</div>
|
| 163 |
+
<div class="text-2xl mt-2">{{ _('Student Works') }}</div>
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
<div class="md:w-2/3 md:pl-8">
|
| 167 |
+
<h3 class="text-2xl font-bold mb-3">{{ _('Annual Art Exhibition') }}</h3>
|
| 168 |
+
<p class="mb-4">
|
| 169 |
+
{{ _('Join us for the opening of our student art exhibition showcasing the creative talents of our visual arts students. Featuring paintings, sculptures, digital art, and photography.') }}
|
| 170 |
+
</p>
|
| 171 |
+
<div class="flex items-center text-dark/80">
|
| 172 |
+
<i class="fas fa-clock mr-2"></i>
|
| 173 |
+
<span>{{ _('October 15-30, 2023') }}</span>
|
| 174 |
+
<i class="fas fa-map-marker-alt ml-4 mr-2"></i>
|
| 175 |
+
<span>{{ _('School Art Gallery') }}</span>
|
| 176 |
+
</div>
|
| 177 |
+
<a href="#" class="btn-secondary mt-6 inline-block">{{ _('View Gallery Online') }}</a>
|
| 178 |
+
</div>
|
| 179 |
+
</div>
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
+
</section>
|
| 183 |
+
|
| 184 |
+
<!-- Leadership & Service -->
|
| 185 |
+
<section class="py-16 bg-gradient-to-b from-white/20 to-transparent">
|
| 186 |
+
<div class="container mx-auto px-4">
|
| 187 |
+
<h2 class="section-title">{{ _('Leadership & Service') }}</h2>
|
| 188 |
+
|
| 189 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mt-12">
|
| 190 |
+
<div class="glass-card p-6 text-center">
|
| 191 |
+
<div class="text-5xl text-primary mb-4">
|
| 192 |
+
<i class="fas fa-hands-helping"></i>
|
| 193 |
+
</div>
|
| 194 |
+
<h3 class="text-xl font-bold mb-3">{{ _('Community Service') }}</h3>
|
| 195 |
+
<p class="text-dark/70 mb-4">
|
| 196 |
+
{{ _('Students contribute over 5,000 service hours annually to local community projects') }}
|
| 197 |
+
</p>
|
| 198 |
+
<a href="#" class="btn-secondary">{{ _('Join a Project') }}</a>
|
| 199 |
+
</div>
|
| 200 |
+
|
| 201 |
+
<div class="glass-card p-6 text-center">
|
| 202 |
+
<div class="text-5xl text-secondary mb-4">
|
| 203 |
+
<i class="fas fa-users"></i>
|
| 204 |
+
</div>
|
| 205 |
+
<h3 class="text-xl font-bold mb-3">{{ _('Student Council') }}</h3>
|
| 206 |
+
<p class="text-dark/70 mb-4">
|
| 207 |
+
{{ _('Elected student leaders who represent the student body and organize school events') }}
|
| 208 |
+
</p>
|
| 209 |
+
<a href="#" class="btn-secondary">{{ _('Meet the Council') }}</a>
|
| 210 |
+
</div>
|
| 211 |
+
|
| 212 |
+
<div class="glass-card p-6 text-center">
|
| 213 |
+
<div class="text-5xl text-accent mb-4">
|
| 214 |
+
<i class="fas fa-globe-africa"></i>
|
| 215 |
+
</div>
|
| 216 |
+
<h3 class="text-xl font-bold mb-3">{{ _('Global Initiatives') }}</h3>
|
| 217 |
+
<p class="text-dark/70 mb-4">
|
| 218 |
+
{{ _('International partnerships, Model UN, and global awareness campaigns') }}
|
| 219 |
+
</p>
|
| 220 |
+
<a href="#" class="btn-secondary">{{ _('Explore Programs') }}</a>
|
| 221 |
+
</div>
|
| 222 |
+
</div>
|
| 223 |
+
|
| 224 |
+
<div class="glass-card p-8 mt-12">
|
| 225 |
+
<h3 class="text-2xl font-bold mb-6 text-center">{{ _('Upcoming Events') }}</h3>
|
| 226 |
+
|
| 227 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 228 |
+
{% for event in activities %}
|
| 229 |
+
<div class="glass-card p-5">
|
| 230 |
+
<div class="flex justify-between items-start mb-3">
|
| 231 |
+
<span class="bg-{{ event.color }}/10 text-{{ event.color }} px-3 py-1 rounded-full text-sm">
|
| 232 |
+
{{ event.category }}
|
| 233 |
+
</span>
|
| 234 |
+
<span class="text-sm text-dark/70">{{ event.date|format_date }}</span>
|
| 235 |
+
</div>
|
| 236 |
+
<h4 class="font-bold text-lg">{{ event.title }}</h4>
|
| 237 |
+
<p class="text-dark/70 mt-2">{{ event.description }}</p>
|
| 238 |
+
<div class="mt-4 flex items-center text-sm text-dark/80">
|
| 239 |
+
<i class="fas fa-clock mr-2"></i>
|
| 240 |
+
<span>{{ event.time }}</span>
|
| 241 |
+
<i class="fas fa-map-marker-alt ml-4 mr-2"></i>
|
| 242 |
+
<span>{{ event.location }}</span>
|
| 243 |
+
</div>
|
| 244 |
+
</div>
|
| 245 |
+
{% endfor %}
|
| 246 |
+
</div>
|
| 247 |
+
|
| 248 |
+
<div class="text-center mt-8">
|
| 249 |
+
<a href="{{ url_for('events') }}" class="btn-primary">{{ _('View All Events') }}</a>
|
| 250 |
+
</div>
|
| 251 |
+
</div>
|
| 252 |
+
</div>
|
| 253 |
+
</section>
|
| 254 |
+
|
| 255 |
+
<!-- Student Voices -->
|
| 256 |
+
<section class="py-16">
|
| 257 |
+
<div class="container mx-auto px-4">
|
| 258 |
+
<h2 class="section-title">{{ _('Student Voices') }}</h2>
|
| 259 |
+
|
| 260 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 mt-12">
|
| 261 |
+
<div class="glass-card p-8">
|
| 262 |
+
<h3 class="text-2xl font-bold mb-6 text-secondary">{{ _('Blog Highlights') }}</h3>
|
| 263 |
+
|
| 264 |
+
<div class="space-y-6">
|
| 265 |
+
{% for blog in blogs %}
|
| 266 |
+
<div class="pb-6 border-b border-white/20">
|
| 267 |
+
<h4 class="font-bold text-lg">{{ blog.title }}</h4>
|
| 268 |
+
<div class="flex items-center text-sm text-dark/80 mt-2 mb-3">
|
| 269 |
+
<span>{{ _('By') }} {{ blog.author }}</span>
|
| 270 |
+
<span class="mx-2">•</span>
|
| 271 |
+
<span>{{ blog.date|format_date }}</span>
|
| 272 |
+
</div>
|
| 273 |
+
<p class="text-dark/70">{{ blog.excerpt }}</p>
|
| 274 |
+
<a href="#" class="text-secondary hover:underline mt-2 inline-block">{{ _('Read Full Post') }}</a>
|
| 275 |
+
</div>
|
| 276 |
+
{% endfor %}
|
| 277 |
+
</div>
|
| 278 |
+
|
| 279 |
+
<a href="#" class="btn-secondary mt-6 inline-block">{{ _('Visit Student Blog') }}</a>
|
| 280 |
+
</div>
|
| 281 |
+
|
| 282 |
+
<div class="glass-card p-8">
|
| 283 |
+
<h3 class="text-2xl font-bold mb-6 text-primary">{{ _('Photo Gallery') }}</h3>
|
| 284 |
+
|
| 285 |
+
<div class="grid grid-cols-2 gap-4">
|
| 286 |
+
<div class="aspect-w-1 aspect-h-1 bg-gray-200 rounded-xl overflow-hidden">
|
| 287 |
+
<div class="bg-gradient-to-r from-primary/30 to-secondary/30 w-full h-full flex items-center justify-center">
|
| 288 |
+
<i class="fas fa-camera text-white text-3xl"></i>
|
| 289 |
+
</div>
|
| 290 |
+
</div>
|
| 291 |
+
<div class="aspect-w-1 aspect-h-1 bg-gray-200 rounded-xl overflow-hidden">
|
| 292 |
+
<div class="bg-gradient-to-r from-accent/30 to-yellow-400/30 w-full h-full flex items-center justify-center">
|
| 293 |
+
<i class="fas fa-music text-white text-3xl"></i>
|
| 294 |
+
</div>
|
| 295 |
+
</div>
|
| 296 |
+
<div class="aspect-w-1 aspect-h-1 bg-gray-200 rounded-xl overflow-hidden">
|
| 297 |
+
<div class="bg-gradient-to-r from-green-400/30 to-emerald-600/30 w-full h-full flex items-center justify-center">
|
| 298 |
+
<i class="fas fa-tree text-white text-3xl"></i>
|
| 299 |
+
</div>
|
| 300 |
+
</div>
|
| 301 |
+
<div class="aspect-w-1 aspect-h-1 bg-gray-200 rounded-xl overflow-hidden">
|
| 302 |
+
<div class="bg-gradient-to-r from-purple-400/30 to-indigo-600/30 w-full h-full flex items-center justify-center">
|
| 303 |
+
<i class="fas fa-theater-masks text-white text-3xl"></i>
|
| 304 |
+
</div>
|
| 305 |
+
</div>
|
| 306 |
+
</div>
|
| 307 |
+
|
| 308 |
+
<div class="mt-6 text-center">
|
| 309 |
+
<a href="#" class="btn-primary">{{ _('View Full Gallery') }}</a>
|
| 310 |
+
</div>
|
| 311 |
+
</div>
|
| 312 |
+
</div>
|
| 313 |
+
</div>
|
| 314 |
+
</section>
|
| 315 |
+
|
| 316 |
+
<!-- CTA Section -->
|
| 317 |
+
<section class="py-16 bg-gradient-to-r from-primary to-secondary">
|
| 318 |
+
<div class="container mx-auto px-4">
|
| 319 |
+
<div class="max-w-4xl mx-auto text-center">
|
| 320 |
+
<h2 class="text-3xl md:text-4xl font-bold text-white mb-6">{{ _('Get Involved in Student Life') }}</h2>
|
| 321 |
+
<p class="text-white/90 text-xl mb-10 max-w-2xl mx-auto">
|
| 322 |
+
{{ _('Join a club, try out for a team, or start your own initiative. There\'s something for everyone!') }}
|
| 323 |
+
</p>
|
| 324 |
+
<div class="flex flex-col sm:flex-row items-center justify-center space-y-4 sm:space-y-0 sm:space-x-6">
|
| 325 |
+
<a href="#" class="bg-white text-primary px-8 py-4 rounded-full font-bold transition-all duration-300 hover:bg-gray-100 hover:scale-105">
|
| 326 |
+
{{ _('Explore Clubs') }}
|
| 327 |
+
</a>
|
| 328 |
+
<a href="#" class="bg-transparent border-2 border-white text-white px-8 py-4 rounded-full font-bold transition-all duration-300 hover:bg-white/10">
|
| 329 |
+
{{ _('Sports Tryouts') }}
|
| 330 |
+
</a>
|
| 331 |
+
</div>
|
| 332 |
+
</div>
|
| 333 |
+
</div>
|
| 334 |
+
</section>
|
| 335 |
+
{% endblock %}
|
templates/style.css
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* static/css/style.css */
|
| 2 |
+
:root {
|
| 3 |
+
--primary: #1a4d8c;
|
| 4 |
+
--secondary: #f9a826;
|
| 5 |
+
--accent: #e74c3c;
|
| 6 |
+
--light: #f8f9fa;
|
| 7 |
+
--dark: #343a40;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
body {
|
| 11 |
+
font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 12 |
+
color: #333;
|
| 13 |
+
line-height: 1.6;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
/* Accessibility enhancements */
|
| 17 |
+
a:focus, button:focus {
|
| 18 |
+
outline: 3px solid var(--secondary);
|
| 19 |
+
outline-offset: 2px;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.skip-link {
|
| 23 |
+
position: absolute;
|
| 24 |
+
top: -40px;
|
| 25 |
+
left: 0;
|
| 26 |
+
background: var(--primary);
|
| 27 |
+
color: white;
|
| 28 |
+
padding: 8px;
|
| 29 |
+
z-index: 100;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.skip-link:focus {
|
| 33 |
+
top: 0;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
/* Header */
|
| 37 |
+
.navbar-brand img {
|
| 38 |
+
max-height: 70px;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.navbar .nav-link {
|
| 42 |
+
font-weight: 500;
|
| 43 |
+
padding: 0.5rem 1rem;
|
| 44 |
+
transition: all 0.3s;
|
| 45 |
+
position: relative;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.navbar .nav-link:hover {
|
| 49 |
+
color: var(--primary);
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.navbar .nav-link:after {
|
| 53 |
+
content: '';
|
| 54 |
+
position: absolute;
|
| 55 |
+
width: 0;
|
| 56 |
+
height: 2px;
|
| 57 |
+
bottom: 0;
|
| 58 |
+
left: 0;
|
| 59 |
+
background-color: var(--secondary);
|
| 60 |
+
transition: width 0.3s;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.navbar .nav-link:hover:after,
|
| 64 |
+
.navbar .nav-link.active:after {
|
| 65 |
+
width: 100%;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/* Hero Section */
|
| 69 |
+
.hero {
|
| 70 |
+
background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') center/cover no-repeat;
|
| 71 |
+
color: white;
|
| 72 |
+
padding: 100px 0;
|
| 73 |
+
text-align: center;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
.hero h1 {
|
| 77 |
+
font-weight: 700;
|
| 78 |
+
font-size: 3rem;
|
| 79 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
.hero p {
|
| 83 |
+
font-size: 1.2rem;
|
| 84 |
+
max-width: 700px;
|
| 85 |
+
margin: 20px auto;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
/* Cards */
|
| 89 |
+
.card {
|
| 90 |
+
border: none;
|
| 91 |
+
border-radius: 10px;
|
| 92 |
+
overflow: hidden;
|
| 93 |
+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
| 94 |
+
transition: transform 0.3s, box-shadow 0.3s;
|
| 95 |
+
height: 100%;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
.card:hover {
|
| 99 |
+
transform: translateY(-10px);
|
| 100 |
+
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.card-img-top {
|
| 104 |
+
height: 200px;
|
| 105 |
+
object-fit: cover;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
.card-title {
|
| 109 |
+
color: var(--primary);
|
| 110 |
+
font-weight: 700;
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
/* News section */
|
| 114 |
+
.news-card .date {
|
| 115 |
+
color: var(--secondary);
|
| 116 |
+
font-weight: 600;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
/* Buttons */
|
| 120 |
+
.btn-primary {
|
| 121 |
+
background-color: var(--primary);
|
| 122 |
+
border-color: var(--primary);
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
.btn-primary:hover {
|
| 126 |
+
background-color: #0d3a6e;
|
| 127 |
+
border-color: #0d3a6e;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
.btn-secondary {
|
| 131 |
+
background-color: var(--secondary);
|
| 132 |
+
border-color: var(--secondary);
|
| 133 |
+
color: #fff;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
.btn-secondary:hover {
|
| 137 |
+
background-color: #e59400;
|
| 138 |
+
border-color: #e59400;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
/* Section titles */
|
| 142 |
+
.section-title {
|
| 143 |
+
position: relative;
|
| 144 |
+
margin-bottom: 40px;
|
| 145 |
+
text-align: center;
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
.section-title:after {
|
| 149 |
+
content: '';
|
| 150 |
+
display: block;
|
| 151 |
+
width: 80px;
|
| 152 |
+
height: 4px;
|
| 153 |
+
background: var(--secondary);
|
| 154 |
+
margin: 15px auto 0;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
/* Testimonials */
|
| 158 |
+
.testimonial {
|
| 159 |
+
background: var(--light);
|
| 160 |
+
padding: 30px;
|
| 161 |
+
border-radius: 10px;
|
| 162 |
+
position: relative;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.testimonial:after {
|
| 166 |
+
content: '"';
|
| 167 |
+
position: absolute;
|
| 168 |
+
top: 20px;
|
| 169 |
+
left: 20px;
|
| 170 |
+
font-size: 5rem;
|
| 171 |
+
color: rgba(0, 0, 0, 0.05);
|
| 172 |
+
font-family: Georgia, serif;
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
.testimonial .author {
|
| 176 |
+
font-weight: 600;
|
| 177 |
+
color: var(--primary);
|
| 178 |
+
margin-top: 20px;
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
/* Footer */
|
| 182 |
+
footer {
|
| 183 |
+
background: linear-gradient(to right, #0a3a6d, #1a4d8c);
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
footer h5 {
|
| 187 |
+
position: relative;
|
| 188 |
+
padding-bottom: 15px;
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
footer h5:after {
|
| 192 |
+
content: '';
|
| 193 |
+
position: absolute;
|
| 194 |
+
left: 0;
|
| 195 |
+
bottom: 0;
|
| 196 |
+
width: 50px;
|
| 197 |
+
height: 2px;
|
| 198 |
+
background: var(--secondary);
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
footer a {
|
| 202 |
+
color: #ddd;
|
| 203 |
+
text-decoration: none;
|
| 204 |
+
transition: color 0.3s;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
footer a:hover {
|
| 208 |
+
color: var(--secondary);
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
.social-links a {
|
| 212 |
+
display: inline-block;
|
| 213 |
+
width: 40px;
|
| 214 |
+
height: 40px;
|
| 215 |
+
background: rgba(255, 255, 255, 0.1);
|
| 216 |
+
border-radius: 50%;
|
| 217 |
+
text-align: center;
|
| 218 |
+
line-height: 40px;
|
| 219 |
+
transition: all 0.3s;
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
.social-links a:hover {
|
| 223 |
+
background: var(--secondary);
|
| 224 |
+
transform: translateY(-5px);
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
/* WhatsApp Button */
|
| 228 |
+
.whatsapp-button {
|
| 229 |
+
position: fixed;
|
| 230 |
+
bottom: 30px;
|
| 231 |
+
right: 30px;
|
| 232 |
+
width: 60px;
|
| 233 |
+
height: 60px;
|
| 234 |
+
background: #25d366;
|
| 235 |
+
border-radius: 50%;
|
| 236 |
+
display: flex;
|
| 237 |
+
align-items: center;
|
| 238 |
+
justify-content: center;
|
| 239 |
+
color: white;
|
| 240 |
+
font-size: 2rem;
|
| 241 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
| 242 |
+
z-index: 1000;
|
| 243 |
+
transition: all 0.3s;
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
.whatsapp-button:hover {
|
| 247 |
+
transform: scale(1.1);
|
| 248 |
+
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
|
| 249 |
+
color: white;
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
+
/* Responsive adjustments */
|
| 253 |
+
@media (max-width: 768px) {
|
| 254 |
+
.hero {
|
| 255 |
+
padding: 60px 0;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
.hero h1 {
|
| 259 |
+
font-size: 2.2rem;
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
.navbar-brand img {
|
| 263 |
+
max-height: 50px;
|
| 264 |
+
}
|
| 265 |
+
}
|
templates/test_downloads.html
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<div class="container py-12">
|
| 5 |
+
<h1 class="text-3xl font-bold mb-6">Available Download Files</h1>
|
| 6 |
+
<ul class="glass-card p-6">
|
| 7 |
+
{% for file in files %}
|
| 8 |
+
<li class="py-2 border-b border-gray-200">{{ file }}</li>
|
| 9 |
+
{% else %}
|
| 10 |
+
<li>No files found in downloads directory</li>
|
| 11 |
+
{% endfor %}
|
| 12 |
+
</ul>
|
| 13 |
+
<p class="mt-6 text-sm text-gray-600">
|
| 14 |
+
Path: {{ base_path }}
|
| 15 |
+
</p>
|
| 16 |
+
</div>
|
| 17 |
+
{% endblock %}
|
translations/en/LC_MESSAGES/messages.po
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
msgid ""
|
| 2 |
+
msgstr ""
|
| 3 |
+
"Project-Id-Version: Munishi School Website\n"
|
| 4 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
| 5 |
+
"Content-Transfer-Encoding: 8bit\n"
|
| 6 |
+
|
| 7 |
+
msgid "Home"
|
| 8 |
+
msgstr "Home"
|
| 9 |
+
|
| 10 |
+
msgid "About Us"
|
| 11 |
+
msgstr "About Us"
|
| 12 |
+
|
| 13 |
+
msgid "Admissions"
|
| 14 |
+
msgstr "Admissions"
|
| 15 |
+
|
| 16 |
+
msgid "Academics"
|
| 17 |
+
msgstr "Academics"
|
| 18 |
+
|
| 19 |
+
msgid "Student Life"
|
| 20 |
+
msgstr "Student Life"
|
| 21 |
+
|
| 22 |
+
msgid "News & Events"
|
| 23 |
+
msgstr "News & Events"
|
| 24 |
+
|
| 25 |
+
msgid "Contact"
|
| 26 |
+
msgstr "Contact"
|
| 27 |
+
|
| 28 |
+
msgid "Welcome to"
|
| 29 |
+
msgstr "Welcome to"
|
| 30 |
+
|
| 31 |
+
msgid "Providing quality education since 1975"
|
| 32 |
+
msgstr "Providing quality education since 1975"
|
| 33 |
+
|
| 34 |
+
msgid "Learn About Admissions"
|
| 35 |
+
msgstr "Learn About Admissions"
|
translations/sw/LC_MESSAGES/messages.po
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
msgid ""
|
| 2 |
+
msgstr ""
|
| 3 |
+
"Project-Id-Version: Munishi School Website\n"
|
| 4 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
| 5 |
+
"Content-Transfer-Encoding: 8bit\n"
|
| 6 |
+
|
| 7 |
+
msgid "Home"
|
| 8 |
+
msgstr "Nyumbani"
|
| 9 |
+
|
| 10 |
+
msgid "About Us"
|
| 11 |
+
msgstr "Kuhusu Sisi"
|
| 12 |
+
|
| 13 |
+
msgid "Admissions"
|
| 14 |
+
msgstr "Uandikishaji"
|
| 15 |
+
|
| 16 |
+
msgid "Academics"
|
| 17 |
+
msgstr "Masomo"
|
| 18 |
+
|
| 19 |
+
msgid "Student Life"
|
| 20 |
+
msgstr "Maisha ya Wanafunzi"
|
| 21 |
+
|
| 22 |
+
msgid "News & Events"
|
| 23 |
+
msgstr "Habari na Matukio"
|
| 24 |
+
|
| 25 |
+
msgid "Contact"
|
| 26 |
+
msgstr "Mawasiliano"
|
| 27 |
+
|
| 28 |
+
msgid "Welcome to"
|
| 29 |
+
msgstr "Karibu"
|
| 30 |
+
|
| 31 |
+
msgid "Providing quality education since 1975"
|
| 32 |
+
msgstr "Kutoa elimu bora tangu 1975"
|
| 33 |
+
|
| 34 |
+
msgid "Learn About Admissions"
|
| 35 |
+
msgstr "Jifunze Kuhusu Uandikishaji"
|
venv/.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Created by venv; see https://docs.python.org/3/library/venv.html
|
| 2 |
+
*
|
venv/Lib/site-packages/Flask_Babel-2.0.0.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
venv/Lib/site-packages/Flask_Babel-2.0.0.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2010 by Armin Ronacher.
|
| 2 |
+
|
| 3 |
+
Some rights reserved.
|
| 4 |
+
|
| 5 |
+
Redistribution and use in source and binary forms, with or without
|
| 6 |
+
modification, are permitted provided that the following conditions are
|
| 7 |
+
met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright
|
| 10 |
+
notice, this list of conditions and the following disclaimer.
|
| 11 |
+
|
| 12 |
+
* Redistributions in binary form must reproduce the above
|
| 13 |
+
copyright notice, this list of conditions and the following
|
| 14 |
+
disclaimer in the documentation and/or other materials provided
|
| 15 |
+
with the distribution.
|
| 16 |
+
|
| 17 |
+
* The names of the contributors may not be used to endorse or
|
| 18 |
+
promote products derived from this software without specific
|
| 19 |
+
prior written permission.
|
| 20 |
+
|
| 21 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 22 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 23 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 24 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 25 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 26 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 27 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 28 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 29 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 30 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 31 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
venv/Lib/site-packages/Flask_Babel-2.0.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: Flask-Babel
|
| 3 |
+
Version: 2.0.0
|
| 4 |
+
Summary: Adds i18n/l10n support to Flask applications
|
| 5 |
+
Home-page: http://github.com/python-babel/flask-babel
|
| 6 |
+
Author: Armin Ronacher
|
| 7 |
+
Author-email: armin.ronacher@active-4.com
|
| 8 |
+
Maintainer: Tyler Kennedy
|
| 9 |
+
Maintainer-email: tk@tkte.ch
|
| 10 |
+
License: BSD
|
| 11 |
+
Platform: UNKNOWN
|
| 12 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 13 |
+
Classifier: Environment :: Web Environment
|
| 14 |
+
Classifier: Intended Audience :: Developers
|
| 15 |
+
Classifier: License :: OSI Approved :: BSD License
|
| 16 |
+
Classifier: Operating System :: OS Independent
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.5
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.6
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.7
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 22 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 23 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 24 |
+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
| 25 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 26 |
+
Description-Content-Type: text/markdown
|
| 27 |
+
Requires-Dist: pytz
|
| 28 |
+
Requires-Dist: Flask
|
| 29 |
+
Requires-Dist: Babel (>=2.3)
|
| 30 |
+
Requires-Dist: Jinja2 (>=2.5)
|
| 31 |
+
Provides-Extra: dev
|
| 32 |
+
Requires-Dist: pytest ; extra == 'dev'
|
| 33 |
+
Requires-Dist: pytest-mock ; extra == 'dev'
|
| 34 |
+
Requires-Dist: bumpversion ; extra == 'dev'
|
| 35 |
+
Requires-Dist: ghp-import ; extra == 'dev'
|
| 36 |
+
Requires-Dist: sphinx ; extra == 'dev'
|
| 37 |
+
Requires-Dist: Pallets-Sphinx-Themes ; extra == 'dev'
|
| 38 |
+
|
| 39 |
+
# Flask Babel
|
| 40 |
+
|
| 41 |
+

|
| 42 |
+
[](https://pypi.python.org/pypi/Flask-Babel)
|
| 43 |
+
|
| 44 |
+
Implements i18n and l10n support for Flask. This is based on the Python
|
| 45 |
+
[babel][] module as well as [pytz][] both of which are installed automatically
|
| 46 |
+
for you if you install this library.
|
| 47 |
+
|
| 48 |
+
# Documention
|
| 49 |
+
|
| 50 |
+
The latest documentation is available [here][docs].
|
| 51 |
+
|
| 52 |
+
[babel]: https://github.com/python-babel/babel
|
| 53 |
+
[pytz]: https://pypi.python.org/pypi/pytz/
|
| 54 |
+
[docs]: https://flask-babel.tkte.ch/
|
| 55 |
+
[semver]: https://semver.org/
|
| 56 |
+
|
| 57 |
+
|
venv/Lib/site-packages/Flask_Babel-2.0.0.dist-info/RECORD
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Flask_Babel-2.0.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
Flask_Babel-2.0.0.dist-info/LICENSE,sha256=pSYQCnBHI3Ngo5S6T3CugBtQ_5uMm55z53lUgKWfa34,1457
|
| 3 |
+
Flask_Babel-2.0.0.dist-info/METADATA,sha256=PAc5Px_xpOvXOxW8pLJ7Hr5BlDu8sEECZZkGTXShwRo,2145
|
| 4 |
+
Flask_Babel-2.0.0.dist-info/RECORD,,
|
| 5 |
+
Flask_Babel-2.0.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 6 |
+
Flask_Babel-2.0.0.dist-info/WHEEL,sha256=EVRjI69F5qVjm_YgqcTXPnTAv3BfSUr0WVAHuSP3Xoo,92
|
| 7 |
+
Flask_Babel-2.0.0.dist-info/top_level.txt,sha256=2CI1eTvkPSxyDsmIAjCSzvyC9vye6AnqevE4ByOoGpg,12
|
| 8 |
+
flask_babel/__init__.py,sha256=pVPkON7P5p2JBIUJwkZb1uaGvrT81hlaf-MkcwTn88c,24625
|
| 9 |
+
flask_babel/__pycache__/__init__.cpython-313.pyc,,
|
| 10 |
+
flask_babel/__pycache__/speaklater.cpython-313.pyc,,
|
| 11 |
+
flask_babel/speaklater.py,sha256=moGrHeg_M-c5sqUdmudwnKZ55-FH-Uh4iktpjiHGSpo,1669
|
venv/Lib/site-packages/Flask_Babel-2.0.0.dist-info/REQUESTED
ADDED
|
File without changes
|