fix tabs
parent
e1793cc079
commit
275f79127b
|
@ -4,61 +4,61 @@
|
|||
{% block content %}
|
||||
<div class="mx-4">
|
||||
<h2 class="mt-5">Submit Emoji</h2>
|
||||
<div class="settings-section rounded">
|
||||
<div class="d-lg-flex">
|
||||
<div class="body w-lg-100">
|
||||
<form action="/submit/emojis" method="post" enctype="multipart/form-data" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHR(this)">
|
||||
<input hidden name="formkey" value="{{v|formkey}}" class="notranslate" translate="no">
|
||||
<div class="settings-section rounded">
|
||||
<div class="d-lg-flex">
|
||||
<div class="body w-lg-100">
|
||||
<form action="/submit/emojis" method="post" enctype="multipart/form-data" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHR(this)">
|
||||
<input hidden name="formkey" value="{{v|formkey}}" class="notranslate" translate="no">
|
||||
|
||||
<div id="image-upload-block">
|
||||
<div><label class="mt-3">Image</label></div>
|
||||
<div id="image-upload-block">
|
||||
<div><label class="mt-3">Image</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">
|
||||
<div>Select Image</div>
|
||||
<input autocomplete="off" id="file-upload" accept="image/*" type="file" name="image" {% if g.is_tor %}disabled{% endif %} hidden>
|
||||
</label>
|
||||
<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">
|
||||
<div>Select Image</div>
|
||||
<input autocomplete="off" id="file-upload" accept="image/*" type="file" name="image" {% if g.is_tor %}disabled{% endif %} hidden>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<label class="mt-3" for="kind">Kind</label>
|
||||
<div class="input-group">
|
||||
<select autocomplete="off" id='kind' class="form-control" name="kind" required>
|
||||
{% if not kind %}
|
||||
<option hidden disabled selected value>-- select an option --</option>
|
||||
{% endif %}
|
||||
{% for entry in EMOJI_KINDS %}
|
||||
<option value="{{entry}}" {% if entry == kind %}selected{% endif %}>
|
||||
{{entry}}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<label class="mt-3" for="name">Emoji Name</label>
|
||||
<input autocomplete="off" type="text" id="name" class="form-control" name="name" maxlength="30" pattern='[a-zA-Z0-9]{1,30}' placeholder="Required" value="{{name}}" required>
|
||||
|
||||
<label class="mt-3" for="author">Author</label>
|
||||
<input autocomplete="off" type="text" id="author" class="form-control" name="author" maxlength="30" pattern='[a-zA-Z0-9_\-]{1,30}|\?{3}' placeholder="Required" value="{{username}}" required>
|
||||
|
||||
<label class="mt-3" for="tags">Tags (must be separated by spaces)</label>
|
||||
<input autocomplete="off" type="text" id="tags" class="form-control" name="tags" maxlength="200" pattern='[a-zA-Z0-9: ]{1,200}' placeholder="Required" value="{{tags}}" required>
|
||||
|
||||
{% if FEATURES['NSFW_MARKING'] %}
|
||||
<div class="custom-control custom-checkbox mt-4 pt-1 ml-1">
|
||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="emoji-nsfw" name="nsfw">
|
||||
<label class="custom-control-label" for="emoji-nsfw">NSFW</label>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<label class="mt-3" for="kind">Kind</label>
|
||||
<div class="input-group">
|
||||
<select autocomplete="off" id='kind' class="form-control" name="kind" required>
|
||||
{% if not kind %}
|
||||
<option hidden disabled selected value>-- select an option --</option>
|
||||
{% endif %}
|
||||
{% for entry in EMOJI_KINDS %}
|
||||
<option value="{{entry}}" {% if entry == kind %}selected{% endif %}>
|
||||
{{entry}}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<div class="footer mt-5">
|
||||
<div class="d-flex">
|
||||
<input id="submit-btn" disabled type="submit" class="btn btn-primary ml-auto" value="Submit Emoji">
|
||||
</div>
|
||||
|
||||
<label class="mt-3" for="name">Emoji Name</label>
|
||||
<input autocomplete="off" type="text" id="name" class="form-control" name="name" maxlength="30" pattern='[a-zA-Z0-9]{1,30}' placeholder="Required" value="{{name}}" required>
|
||||
|
||||
<label class="mt-3" for="author">Author</label>
|
||||
<input autocomplete="off" type="text" id="author" class="form-control" name="author" maxlength="30" pattern='[a-zA-Z0-9_\-]{1,30}|\?{3}' placeholder="Required" value="{{username}}" required>
|
||||
|
||||
<label class="mt-3" for="tags">Tags (must be separated by spaces)</label>
|
||||
<input autocomplete="off" type="text" id="tags" class="form-control" name="tags" maxlength="200" pattern='[a-zA-Z0-9: ]{1,200}' placeholder="Required" value="{{tags}}" required>
|
||||
|
||||
{% if FEATURES['NSFW_MARKING'] %}
|
||||
<div class="custom-control custom-checkbox mt-4 pt-1 ml-1">
|
||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="emoji-nsfw" name="nsfw">
|
||||
<label class="custom-control-label" for="emoji-nsfw">NSFW</label>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="footer mt-5">
|
||||
<div class="d-flex">
|
||||
<input id="submit-btn" disabled type="submit" class="btn btn-primary ml-auto" value="Submit Emoji">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script defer src="{{'js/submit_emojis.js' | asset}}"></script>
|
||||
|
|
|
@ -4,44 +4,44 @@
|
|||
{% block content %}
|
||||
<div class="mx-4">
|
||||
<h2 class="mt-5">Submit Hat</h2>
|
||||
<div class="settings-section rounded">
|
||||
<div class="d-lg-flex">
|
||||
<div class="body w-lg-100">
|
||||
<form action="/submit/hats" method="post" enctype="multipart/form-data" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHRReload(this)">
|
||||
<input hidden name="formkey" value="{{v|formkey}}" class="notranslate" translate="no">
|
||||
<div class="settings-section rounded">
|
||||
<div class="d-lg-flex">
|
||||
<div class="body w-lg-100">
|
||||
<form action="/submit/hats" method="post" enctype="multipart/form-data" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHRReload(this)">
|
||||
<input hidden name="formkey" value="{{v|formkey}}" class="notranslate" translate="no">
|
||||
|
||||
<div id="image-upload-block">
|
||||
<div><label class="mt-3">Image</label></div>
|
||||
<div id="image-upload-block">
|
||||
<div><label class="mt-3">Image</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">
|
||||
<div>Select Image</div>
|
||||
<input autocomplete="off" id="file-upload" accept="image/*" type="file" name="image" {% if g.is_tor %}disabled{% endif %} hidden>
|
||||
</label>
|
||||
<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">
|
||||
<div>Select Image</div>
|
||||
<input autocomplete="off" id="file-upload" accept="image/*" type="file" name="image" {% if g.is_tor %}disabled{% endif %} hidden>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div id="hat-design-reference-block" class="mt-3">
|
||||
<a href="{{SITE_FULL_IMAGES}}/i/hat-template.png" class="font-weight-bold">Hat Template</a> — 100x130px (do not resize), circle is profile picture, do not include circle in final submission.
|
||||
</div>
|
||||
|
||||
<label class="mt-3" for="name">Hat Name</label>
|
||||
<input autocomplete="off" type="text" id="name" class="form-control" name="name" maxlength="50" placeholder="Required" value="{{name}}" required>
|
||||
|
||||
<label class="mt-3" for="author">Author</label>
|
||||
<input autocomplete="off" type="text" id="author" class="form-control" name="author" maxlength="30" pattern='[a-zA-Z0-9_\-]{1,30}' placeholder="Required" value="{{username}}" required>
|
||||
|
||||
<label class="mt-3" for="description">Description</label>
|
||||
<input autocomplete="off" type="text" id="description" class="form-control" name="description" maxlength="300" pattern='[^<>&\n\t]{1,300}' placeholder="Required" value="{{description}}" required>
|
||||
|
||||
<div class="footer mt-5">
|
||||
<div class="d-flex">
|
||||
<input id="submit-btn" disabled type="submit" class="btn btn-primary ml-auto" value="Submit Hat">
|
||||
</div>
|
||||
|
||||
<div id="hat-design-reference-block" class="mt-3">
|
||||
<a href="{{SITE_FULL_IMAGES}}/i/hat-template.png" class="font-weight-bold">Hat Template</a> — 100x130px (do not resize), circle is profile picture, do not include circle in final submission.
|
||||
</div>
|
||||
|
||||
<label class="mt-3" for="name">Hat Name</label>
|
||||
<input autocomplete="off" type="text" id="name" class="form-control" name="name" maxlength="50" placeholder="Required" value="{{name}}" required>
|
||||
|
||||
<label class="mt-3" for="author">Author</label>
|
||||
<input autocomplete="off" type="text" id="author" class="form-control" name="author" maxlength="30" pattern='[a-zA-Z0-9_\-]{1,30}' placeholder="Required" value="{{username}}" required>
|
||||
|
||||
<label class="mt-3" for="description">Description</label>
|
||||
<input autocomplete="off" type="text" id="description" class="form-control" name="description" maxlength="300" pattern='[^<>&\n\t]{1,300}' placeholder="Required" value="{{description}}" required>
|
||||
|
||||
<div class="footer mt-5">
|
||||
<div class="d-flex">
|
||||
<input id="submit-btn" disabled type="submit" class="btn btn-primary ml-auto" value="Submit Hat">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script defer src="{{'js/submit_hats.js' | asset}}"></script>
|
||||
|
|
Loading…
Reference in New Issue