diff --git a/tpl/blocks/badge.html b/tpl/blocks/badge.html new file mode 100644 index 0000000..dc5c986 --- /dev/null +++ b/tpl/blocks/badge.html @@ -0,0 +1,47 @@ +
+ Badge Customization {% if not order.ans('propic') %}⚠️{% endif %} + {# Badge is always shown #} +

Badge

+ {% if (not order.ans('propic')) or (order.ans('is_fursuiter') != 'No' and not order.ans('propic_fursuiter')) %} +

⚠️ One or more badge pictures are missing! This will cause you badge to be empty, so make sure to upload something before the deadline!

+

⚠️ Photos must be suitable for any audience. Any inappropriate picture will be removed by the staff

+ {% endif %} +
+
+
+ {% if not order.ans('propic') %} + + {% else %} +
+ +
+ {% endif %} +

Normal Badge

+
+ {% if order.ans('is_fursuiter') != 'No' %} +
+ {% if not order.ans('propic_fursuiter') %} + + {% else %} +
+ +
+ {% endif %} +

Fursuit Badge

+
+ {% endif %} +
+

Min size: 64x64 - Max Size: 5MB, 2048x2048 - Formats: jpg, png

+
+ {% if order.ans('propic') %} + + {% endif %} + {% if order.ans('propic_fursuiter') %} + + {% endif %} + {% if (not order.ans('propic')) or (order.ans('is_fursuiter') != 'No' and not order.ans('propic_fursuiter')) %} + + {% endif %} +
+
+
diff --git a/tpl/blocks/payment.html b/tpl/blocks/payment.html new file mode 100644 index 0000000..2bf3b89 --- /dev/null +++ b/tpl/blocks/payment.html @@ -0,0 +1,26 @@ +
+ {% if order.status != 'paid' %}⚠️{% endif %} Payment + {% if order.status == 'pending' %} +

Your order is still pending due to incomplete payment. You will not be able to reserve a room for now. However, you will be able to create one with your friends and confirm it once all attendants have completed the order!

+

If you wish to change payment method, check payment instructions or complete a failed payment please access the payment area.

+ + {% elif order.status == 'paid' %} +

✅ Your order has been completed and approved! See you at furizon!

+ {% endif %} + + + + + + + + + +
Reference ID{{order.code}}
Order total{{order.data['total']}}€ by {{'Credit card' if order.data['payment_provider'] == 'stripe' else 'Bank Transfer'}}
+ {% if order.status == 'paid' and order.room_confirmed %} +

Download ticket

+ {% endif %} + {% if order.status != 'paid' %} + + {% endif %} +
diff --git a/tpl/blocks/room.html b/tpl/blocks/room.html new file mode 100644 index 0000000..12b57a5 --- /dev/null +++ b/tpl/blocks/room.html @@ -0,0 +1,124 @@ +
+ Accomodation & Roommates {% if not order.room_confirmed %}⚠️{% endif %} +

Your room {% if room_members %}- {{room_members[0].ans('room_name')}}{% endif %}

+ + {# Show alert if room owner has wrong people inside #} + {% if 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 %} + + {# 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

+ {% endif %} + + {# Show roommates if room is set #} + {% set room = namespace(forbidden=false) %} + {% if order.room_id %} +
+ {% for person in room_members %} +
+
+ + +
+

{{person.ans('fursona_name')}}

+ {% if person.code == order.room_id %}

ROOM OWNER

{% endif %} +

{{person.ans('staff_title') if person.ans('staff_title') else ''}} {{'Fursuiter' if person.ans('is_fursuiter') != 'No'}}

+ {% if person.status == 'pending' %} +

UNPAID

+ {% endif %} + {% if order.room_owner and person.code != order.code and (not order.room_confirmed) %}KICK{% endif %} +
+ + {% if person.status != 'paid' %} + {% set room.forbidden = True %} + {% endif %} + {% endfor %} + + {% if order.room_id == order.code and not order.room_confirmed and len(room_members) < 5 %} +
+ + +

Invite

+

Get room code

+
+
+ {% endif %} +
+ {% elif order.pending_room %} +

You have have asked to join the room of another member. Wait for them to confirm or reject your request.

+ Cancel pending join request + {% else %} +

🎲 If you don't join a room or create your one within the room deadline, we will randomly put you into a room with free spots.

+

To join a room, ask somebody to send you their room code.

+

+ Create a room + Join a room +

+ {% endif %} + + {% if order.room_owner and not order.room_confirmed %} + {% if room.forbidden %} +

⚠️ There are roommates for which a payment was not received yet, you will be able to confirm this room only once all payments are completed.

+ {% endif %} + {% endif %} + +

+ {% if order.room_owner %} + {% if len(room_members) == 1 and not order.room_confirmed %} + Delete room + {% endif %} + + {% if not order.room_confirmed %} + 0 %}href="javascript:document.getElementById('modal-roomconfirm').setAttribute('open', 'true');"{% endif %}>Confirm {{[None,'single','double','triple','quadruple','quintuple'][len(room_members)]}} room + {% endif %} + {% else %} + {% if order.room_id and not order.room_confirmed %} + Leave room + {% endif %} + {% endif %} +

+ + {# Pending roommates #} + {% if pending_roommates %} +

Pending roommates

+

These people have asked to join your room.

+ + {% for person in pending_roommates %} + + + + {% if person.status == 'pending' %} + + {% endif %} + + + + + + {% if person.status != 'paid' %} + {% set room.forbidden = True %} + {% endif %} + {% endfor %} +
{{person.name}}UNPAIDApproveReject
+ {% endif %} + + {# Room availability is always shown #} + {% if not order.room_confirmed %} +

Room availability

+ + {% for q in quota.data['results'] if 'Room' in q['name'] %} + + + + + {% endfor %} +
{{q['name']}}{{q['available_number']}} left
+ {% endif %} +
diff --git a/tpl/blocks/room_extra.html b/tpl/blocks/room_extra.html new file mode 100644 index 0000000..0739e29 --- /dev/null +++ b/tpl/blocks/room_extra.html @@ -0,0 +1,66 @@ +{% if order.room_owner and not order.room_confirmed %} + + +
+ +

Invite your friends!

+ + + + +

Send your Ticket ID and room PIN to other attendants you want in your room.

+

If you want to change the room PIN, use the "Reset PIN" button to change the secret code.

+ +
+
+ + +
+ +

Confirm this room

+

Confirming the room is the only way to guarantee that you will stay with your friends.

+

Confirmed room cannot be changed. You will not be able to add or remove roommates, or change to another size.

+

In case somebody from your room decides to not participate, they will be replaced with a random person, or your room size will be changed.

+ +

Your room

+ + + + + + + + + +
Room type{{[None,'Single','Double','Triple','Quadruple','Quintuple'][len(room_members)]}} Room
Rooms left of this type{{quota.get_left(len(room_members))}}
+ +
+
+ + +{% endif %} + + +{% if not order.room_id %} +
+ +
+ +

Join a room!

+ + + + + +
+
+
+{% endif %}