Add room availability even to paid orders

This commit is contained in:
Ed 2023-02-02 22:48:15 +01:00
parent 3ded3a21c5
commit 5a2103aec0
1 changed files with 9 additions and 11 deletions

View File

@ -112,15 +112,13 @@
{% endif %} {% endif %}
{# Room availability is always shown #} {# Room availability is always shown #}
{% if not order.room_confirmed %} <h4>Room availability</h4>
<h4>Room availability</h4> <table>
<table> {% for q in quota.data['results'] if 'Room' in q['name'] %}
{% for q in quota.data['results'] if 'Room' in q['name'] %} <tr {% if q['available_number'] == 0 %}style="text-decoration:line-through;"{% endif %}>
<tr {% if q['available_number'] == 0 %}style="text-decoration:line-through;"{% endif %}> <td>{{q['name']}}</td>
<td>{{q['name']}}</td> <td>{{q['available_number']}} left</td>
<td>{{q['available_number']}} left</td> </tr>
</tr> {% endfor %}
{% endfor %} </table>
</table>
{% endif %}
</details> </details>