Bug fixes in the welcome page

This commit is contained in:
Ed 2022-12-24 16:36:36 +01:00
parent cc1133e2c7
commit 15af64eb3b
1 changed files with 7 additions and 3 deletions

View File

@ -27,9 +27,10 @@
<td>{{order.data['total']}}€ by {{'Credit card' if order.data['payment_provider'] == 'stripe' else 'Bank Transfer'}}</td> <td>{{order.data['total']}}€ by {{'Credit card' if order.data['payment_provider'] == 'stripe' else 'Bank Transfer'}}</td>
</tr> </tr>
</table> </table>
{% if order.status == 'paid' %} {% if order.status == 'paid' and order.room_confirmed %}
<p style="text-align:right;"><a href="/manage/download_ticket?name=BEYOND-{{order.code}}.pdf" role="button">Download ticket</a></p> <p style="text-align:right;"><a href="/manage/download_ticket?name=BEYOND-{{order.code}}.pdf" role="button">Download ticket</a></p>
{% else %} {% endif %}
{% if order.status != 'paid' %}
<a href="{{order.url}}"><button>Payment area</button></a> <a href="{{order.url}}"><button>Payment area</button></a>
{% endif %} {% endif %}
</section> </section>
@ -163,6 +164,7 @@
<h2>Badge</h2> <h2>Badge</h2>
{% if (not order.ans('propic')) or (order.ans('is_fursuiter') != 'No' and not order.ans('propic_fursuiter')) %} {% if (not order.ans('propic')) or (order.ans('is_fursuiter') != 'No' and not order.ans('propic_fursuiter')) %}
<p class="notice">⚠️ One or more badge pictures are missing! This will cause you badge to be empty, so make sure to upload something before the deadline!</p> <p class="notice">⚠️ One or more badge pictures are missing! This will cause you badge to be empty, so make sure to upload something before the deadline!</p>
<p class="notice">⚠️ Photos must be suitable for any audience. Any inappropriate pictures will be removed by the staff</p>
{% endif %} {% endif %}
<form method="POST" enctype="multipart/form-data" action="/manage/propic/upload"> <form method="POST" enctype="multipart/form-data" action="/manage/propic/upload">
<div class="grid" style="text-align:center;margin-bottom:1em;"> <div class="grid" style="text-align:center;margin-bottom:1em;">
@ -193,7 +195,9 @@
{% if order.ans('propic_fursuiter') %} {% if order.ans('propic_fursuiter') %}
<input type="submit" name="submit" value="Delete fursuit image" /> <input type="submit" name="submit" value="Delete fursuit image" />
{% endif %} {% endif %}
{% if (not order.ans('propic')) or (order.ans('is_fursuiter') != 'No' and not order.ans('propic_fursuiter')) %}
<input type="submit" value="Upload" /> <input type="submit" value="Upload" />
{% endif %}
</div> </div>
</form> </form>
</section> </section>