2024-05-15 16:02:38 +00:00
|
|
|
{% extends "base.html" %}
|
2024-05-16 21:52:09 +00:00
|
|
|
{% block title %}Room Wizard{% endblock %}
|
|
|
|
{% block head %}
|
|
|
|
<link rel="stylesheet" href="/res/styles/wizard.css">
|
|
|
|
{% endblock %}
|
2024-05-15 16:02:38 +00:00
|
|
|
{% block main %}
|
|
|
|
<main class="container">
|
2024-05-16 21:52:09 +00:00
|
|
|
<script src="/res/scripts/wizardManager.js" type="text/javascript" defer="defer"></script>
|
2024-05-15 16:02:38 +00:00
|
|
|
<header>
|
|
|
|
<picture>
|
|
|
|
<source srcset="/res/furizon.png" media="(prefers-color-scheme:dark)">
|
|
|
|
<img src="/res/furizon-light.png" style="height:4rem;text-align:center;">
|
|
|
|
</picture>
|
|
|
|
</header>
|
|
|
|
<!--order = current order login
|
2024-05-16 21:52:09 +00:00
|
|
|
unconfirmed_orders = all non confirmed rooms orders
|
|
|
|
all_orders = all orders
|
2024-05-15 16:02:38 +00:00
|
|
|
data = assigned rooms -->
|
|
|
|
<h2>Review rooms</h2>
|
|
|
|
<hr>
|
|
|
|
{% for room in data.items() %}
|
2024-05-16 21:52:09 +00:00
|
|
|
{%with room_order = unconfirmed_orders[room[0]] %}
|
|
|
|
<div class="room" id="room-{{room_order.code}}" room-type="{{room_order.bed_in_room}}" room-size="{{len(room[1]['to_add'])}}" current-size="{{len(room[1]['to_add'])}}">
|
|
|
|
<h4 style="margin-top:1em;">
|
|
|
|
<span>{{room_order.room_name if room_order.room_name else room[1]['room_name'] if room[1] and room[1]['room_name'] else ''}}</span>
|
|
|
|
</h4>
|
|
|
|
<div class="grid people" style="padding-bottom:1em;">
|
|
|
|
{% for m in room_order.room_members %}
|
|
|
|
{% if m in all_orders %}
|
|
|
|
{% with person = all_orders[m] %}
|
|
|
|
<div class="edit-disabled" style="margin-bottom: 1em;">
|
|
|
|
{% with current=None, order=person, imgSrc='/res/propic/' + (person.ans('propic') or 'default.png'), effects = false, flag = true %}
|
|
|
|
{% include 'blocks/propic.html' %}
|
|
|
|
{% endwith %}
|
|
|
|
<h5>{{person.ans('fursona_name')}}</h5>
|
|
|
|
</div>
|
|
|
|
{% endwith %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% for m in room[1]['to_add'] %}
|
|
|
|
{% if m in unconfirmed_orders %}
|
|
|
|
{% with person = unconfirmed_orders[m] %}
|
|
|
|
<div class="edit-drag" id="{{person.code}}" room-type="{{person.bed_in_room}}" style="margin-bottom: 1em;" draggable="true">
|
|
|
|
{% with current=None, order=person, imgSrc='/res/propic/' + (person.ans('propic') or 'default.png'), effects = false, flag = true %}
|
|
|
|
{% include 'blocks/propic.html' %}
|
|
|
|
{% endwith %}
|
|
|
|
<h5>{{person.ans('fursona_name')}}</h5>
|
|
|
|
</div>
|
|
|
|
{% endwith %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-15 16:02:38 +00:00
|
|
|
{% endwith %}
|
|
|
|
{% endfor %}
|
2024-05-16 21:52:09 +00:00
|
|
|
<div class="room" infinite="true" id="room-infinite" room-size="999999999" current-size="0">
|
|
|
|
<h2>Empty room</h2>
|
|
|
|
<div class="grid people" style="padding-bottom:1em;"></div>
|
|
|
|
</div>
|
2024-05-15 16:02:38 +00:00
|
|
|
</main>
|
|
|
|
|
|
|
|
{% endblock %}
|