Added propic expiration notice.

This commit is contained in:
Ed 2023-05-08 22:06:53 +02:00
parent f004d66285
commit 1a77952dbc
1 changed files with 17 additions and 11 deletions

View File

@ -11,41 +11,47 @@
<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;">
<div> <div>
{% if not order.ans('propic') %} {% if not order.ans('propic') and time() < PROPIC_DEADLINE %}
<input type="file" value="" accept="image/jpeg,image/png" name="propic" /> <input type="file" value="" accept="image/jpeg,image/png" name="propic" />
{% else %} {% else %}
<div class="propic-container"> <div class="propic-container">
<img src="/res/propic/{{order.ans('propic')}}" class="propic" /> <img src="/res/propic/{{order.ans('propic') or 'default.png'}}" class="propic" />
</div> </div>
{% endif %} {% endif %}
<p>Normal Badge</p> <p>Normal Badge</p>
</div> </div>
{% if order.ans('is_fursuiter') != 'No' %} {% if order.ans('is_fursuiter') != 'No' %}
<div> <div>
{% if not order.ans('propic_fursuiter') %} {% if not order.ans('propic_fursuiter') and time() < PROPIC_DEADLINE %}
<input type="file" value="" accept="image/jpeg,image/png" name="propic_fursuiter" /> <input type="file" value="" accept="image/jpeg,image/png" name="propic_fursuiter" />
{% else %} {% else %}
<div class="propic-container"> <div class="propic-container">
<img src="/res/propic/{{order.ans('propic_fursuiter')}}" class="propic" /> <img src="/res/propic/{{order.ans('propic_fursuiter') or 'default.png'}}" class="propic" />
</div> </div>
{% endif %} {% endif %}
<p>Fursuit Badge</p> <p>Fursuit Badge</p>
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% if time() > PROPIC_DEADLINE %}
<p class="notice">⚠️ The deadline to upload pictures for the badge has expired. For last-minute changes, please contact the support over at <a href="mailto:info@furizon.net">info@furizon.net</a>. If your badge has been printed already, changing it will incur in a 2€ fee.</p>
{% else %}
<p><em> <p><em>
Min size: 64x64 - Max Size: 5MB, 2048x2048 - Formats: jpg, png<br /> Min size: 64x64 - Max Size: 5MB, 2048x2048 - Formats: jpg, png<br />
Badge photos must clearly show the fursona/fursuit head.<br />Memes and low quality images will be removed and may limit your ability to upload pics in the future. Badge photos must clearly show the fursona/fursuit head.<br />Memes and low quality images will be removed and may limit your ability to upload pics in the future.
</em></p> </em></p>
{% endif %}
<div class="grid"> <div class="grid">
{% if order.ans('propic') %} {% if order.ans('propic') %}
<input type="submit" name="submit" value="Delete main image" /> <input type="submit" name="submit" value="Delete main image" {{'disabled' if time() > PROPIC_DEADLINE else ''}} />
{% endif %} {% endif %}
{% 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" {{'disabled' if time() > PROPIC_DEADLINE else ''}} />
{% endif %} {% endif %}
{% 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')) %}
<input type="submit" value="Upload" /> <input type="submit" value="Upload" {{'disabled' if time() > PROPIC_DEADLINE else ''}} />
{% endif %} {% endif %}
</div> </div>
</form> </form>