From 95bd308f2c2606abc1fce0c7c131a0e9427a7a03 Mon Sep 17 00:00:00 2001 From: Stranck Date: Mon, 20 May 2024 12:58:28 +0200 Subject: [PATCH] Added notice for room deadline expiration --- tpl/blocks/room.html | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/tpl/blocks/room.html b/tpl/blocks/room.html index 521747b..5f6fbe4 100644 --- a/tpl/blocks/room.html +++ b/tpl/blocks/room.html @@ -8,17 +8,24 @@

Check here for any fur who share your room type.

{% endif %} - {# Show alert if room owner has wrong people inside #} + {% if time() > ROOM_DEADLINE %} +

⚠️ The deadline to edit your room has passed. If your room is not full it will be subject to changes by the staff as we optimize for hotel capacity.

- {# {% if room_members and quota.get_left(len(room_members)) == 0 and (not order.room_confirmed) %} #} - {#

⚠️ Your room contains {{len(room_members)}} people inside, but sadly there are no more {{[None,'single','double','triple','quadruple','quintuple'][len(room_members)]}} rooms. You need to add or remove people until you reach the size of an available room if you want to confirm it.

#} - {# {% endif %} #} + {% else %} - {# Show alert if room was not confirmed #} - {% if order.room_id and not order.room_confirmed %} -

⚠️ Your room hasn't been confirmed yet. Unconfirmed rooms are subject to changes by the staff as we optimize for hotel capacity.

+ {# Show alert if room owner has wrong people inside #} + + {# {% if room_members and quota.get_left(len(room_members)) == 0 and (not order.room_confirmed) %} #} + {#

⚠️ Your room contains {{len(room_members)}} people inside, but sadly there are no more {{[None,'single','double','triple','quadruple','quintuple'][len(room_members)]}} rooms. You need to add or remove people until you reach the size of an available room if you want to confirm it.

#} + {# {% endif %} #} + + {# Show alert if room was not confirmed #} + {% if order.room_id and not order.room_confirmed %} +

⚠️ Your room hasn't been confirmed yet. Unconfirmed rooms are subject to changes by the staff as we optimize for hotel capacity.

+ {% endif %} + {% endif %} - + {# Show notice if the room is confirmed #} {% if order.room_confirmed %} {#

✅ Your {{[None,'single','double','triple','quadruple','quintuple'][len(room_members)]}} room has been confirmed

#}