forked from rDrama/rDrama
1
0
Fork 0

make update_assets.html more self-explanatory

master
Aevann 2023-03-21 19:02:30 +02:00
parent 23ec1dc416
commit ca99c46e12
1 changed files with 9 additions and 9 deletions

View File

@ -13,8 +13,12 @@
<form action="{{request.path}}" method="post" enctype="multipart/form-data">
<input hidden name="formkey" value="{{v|formkey}}">
<label class="mt-3" for="name">{{type}} Name (Required)</label>
<input autocomplete="off" type="text" id="name" class="form-control" name="name" maxlength="30" placeholder="Required" {% if name %}value="{{name}}"{% endif %} required>
<div id="image-upload-block">
<div><label class="mt-3">Image</label></div>
<div><label class="mt-3">New Image {% if type == "Emoji" %}(Optional){% else %}(Required){% endif %}</label></div>
<img loading="lazy" id="image-preview" class="d-none" style="max-width:50%;border:5px white solid">
<label class="btn btn-secondary m-0" for="file-upload">
@ -24,7 +28,7 @@
</div>
{% if type == "Emoji" %}
<label class="mt-3" for="kind">Kind</label>
<label class="mt-3" for="kind">New Kind (Optional)</label>
<div class="input-group mb2">
<select autocomplete="off" id='kind' class="form-control" name="kind">
{% if not kind %}
@ -37,15 +41,11 @@
{% endfor %}
</select>
</div>
<label class="mt-3" for="tags">Additional Tags (Optional)</label>
<input autocomplete="off" type="text" id="name" class="form-control" name="tags" maxlength="200" placeholder="Enter additional tags" {% if tags %}value="{{tags}}"{% endif %}>
{% endif %}
<label class="mt-3" for="name">Name</label>
<input autocomplete="off" type="text" id="name" class="form-control" name="name" maxlength="30" placeholder="Required" {% if name %}value="{{name}}"{% endif %} required>
{% if type == "Emoji" %}
<label class="mt-3" for="tags">Tags</label>
<input autocomplete="off" type="text" id="name" class="form-control" name="tags" maxlength="200" placeholder="Enter additional tags" {% if tags %}value="{{tags}}"{% endif %}>
{% endif %}
<div class="footer mt-4">
<div class="d-flex">
<input id="submit-btn" type="submit" class="btn btn-primary ml-auto" value="Update {{type}}">