diff --git a/app.py b/app.py index d2fb85e..09c9d74 100644 --- a/app.py +++ b/app.py @@ -1089,6 +1089,104 @@ TPL_CHANGE_PASSWORD_BODY = """ """ +# Member: Request Off page (simple, professional) +TPL_REQUEST_OFF_BODY = """ +
+
+

Request Time Off

+

+ Use this page to request specific days off. Your leader will approve or deny + the request in the admin view. +

+ + +
+ + + + +
+
+ + +
+

Your Requests

+ {% if my_reqs %} + + + + + + + + + + + + {% for r in my_reqs %} + + + + + + + + {% endfor %} + +
DateStatusNoteRequestedAction
{{ r.date }} + + {{ r.status }} + + {{ r.note or '' }} + {{ r.created_at.strftime('%Y-%m-%d %H:%M') if r.created_at else '' }} + + {% if r.status == 'pending' %} +
+ + +
+ {% else %} + No action + {% endif %} +
+ {% else %} +

You don't have any requests yet.

+ {% endif %} +
+
+""" + + # Admin: Users TPL_ADMIN_USERS_BODY = """