forked from rDrama/rDrama
marsey -> emoji
parent
9a146f1eef
commit
91678f09de
|
@ -26,7 +26,7 @@
|
||||||
<label class="mt-3" for="name">Name</label>
|
<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>
|
<input autocomplete="off" type="text" id="name" class="form-control" name="name" maxlength="30" placeholder="Required" {% if name %}value="{{name}}"{% endif %} required>
|
||||||
|
|
||||||
{% if type == "Marsey" %}
|
{% if type == "Emoji" %}
|
||||||
<label class="mt-3" for="tags">Tags</label>
|
<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 %}>
|
<input autocomplete="off" type="text" id="name" class="form-control" name="tags" maxlength="200" placeholder="Enter additional tags" {% if tags %}value="{{tags}}"{% endif %}>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{% extends "default.html" %}
|
{% extends "default.html" %}
|
||||||
{% block pagetitle %}Submit Marseys{% endblock %}
|
{% block pagetitle %}Submit Emojis{% endblock %}
|
||||||
{% block pagetype %}message{% endblock %}
|
{% block pagetype %}message{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if error %}{{macros.alert(error, true)}}{% endif %}
|
{% if error %}{{macros.alert(error, true)}}{% endif %}
|
||||||
{% if msg %}{{macros.alert(msg, false)}}{% endif %}
|
{% if msg %}{{macros.alert(msg, false)}}{% endif %}
|
||||||
<div class="mx-4">
|
<div class="mx-4">
|
||||||
<h2 class="mt-5">Submit Marsey</h2>
|
<h2 class="mt-5">Submit Emoji</h2>
|
||||||
<div class="settings-section rounded">
|
<div class="settings-section rounded">
|
||||||
<div class="d-lg-flex">
|
<div class="d-lg-flex">
|
||||||
<div class="body w-lg-100">
|
<div class="body w-lg-100">
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
<div class="footer mt-5">
|
<div class="footer mt-5">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<input id="submit-btn" disabled type="submit" class="btn btn-primary ml-auto" value="Submit Marsey">
|
<input id="submit-btn" disabled type="submit" class="btn btn-primary ml-auto" value="Submit Emoji">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -59,44 +59,44 @@
|
||||||
<div class="row mt-5 mx-4">
|
<div class="row mt-5 mx-4">
|
||||||
<div class="col px-0">
|
<div class="col px-0">
|
||||||
<div class="settings">
|
<div class="settings">
|
||||||
{% for marsey in marseys %}
|
{% for emoji in emojis %}
|
||||||
<div id="{{marsey.name}}-marsey" class="settings-section rounded">
|
<div id="{{emoji.name}}-emoji" class="settings-section rounded">
|
||||||
<div class="d-lg-flex">
|
<div class="d-lg-flex">
|
||||||
<div class="body w-lg-100">
|
<div class="body w-lg-100">
|
||||||
<input hidden name="formkey" value="{{v|formkey}}">
|
<input hidden name="formkey" value="{{v|formkey}}">
|
||||||
|
|
||||||
<div><label class="mt-3">Image</label></div>
|
<div><label class="mt-3">Image</label></div>
|
||||||
<img loading="lazy" src="/asset_submissions/marseys/{{marsey.name}}.webp?s={{range(1, 10000000)|random}}" style="max-width:50%;border:5px white solid">
|
<img loading="lazy" src="/asset_submissions/emojis/{{emoji.name}}.webp?s={{range(1, 10000000)|random}}" style="max-width:50%;border:5px white solid">
|
||||||
|
|
||||||
<div><label class="mt-3" for="{{marsey.name}}-kind">Kind</label></div>
|
<div><label class="mt-3" for="{{emoji.name}}-kind">Kind</label></div>
|
||||||
<div class="input-group mb2">
|
<div class="input-group mb2">
|
||||||
<select autocomplete="off" id='{{marsey.name}}-kind' class="form-control" name="kind">
|
<select autocomplete="off" id='{{emoji.name}}-kind' class="form-control" name="kind">
|
||||||
{% for entry in kinds %}
|
{% for entry in kinds %}
|
||||||
<option value="{{entry}}" {% if marsey.kind==entry %}selected{% endif %}>
|
<option value="{{entry}}" {% if emoji.kind==entry %}selected{% endif %}>
|
||||||
{{entry}}
|
{{entry}}
|
||||||
</option>
|
</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div><label class="mt-3" for="{{marsey.name}}-submitter">Submitter</label></div>
|
<div><label class="mt-3" for="{{emoji.name}}-submitter">Submitter</label></div>
|
||||||
<input autocomplete="off" type="text" id="{{marsey.name}}-submitter" class="form-control" maxlength="30" value="{{marsey.submitter}}" readonly>
|
<input autocomplete="off" type="text" id="{{emoji.name}}-submitter" class="form-control" maxlength="30" value="{{emoji.submitter}}" readonly>
|
||||||
|
|
||||||
<label class="mt-3" for="{{marsey.name}}-author">Author</label>
|
<label class="mt-3" for="{{emoji.name}}-author">Author</label>
|
||||||
<input autocomplete="off" type="text" id="{{marsey.name}}-author" class="form-control" maxlength="30" value="{{marsey.author}}" readonly>
|
<input autocomplete="off" type="text" id="{{emoji.name}}-author" class="form-control" maxlength="30" value="{{emoji.author}}" readonly>
|
||||||
|
|
||||||
<label class="mt-3" for="{{marsey.name}}-name">Name</label>
|
<label class="mt-3" for="{{emoji.name}}-name">Name</label>
|
||||||
<input autocomplete="off" type="text" id="{{marsey.name}}-name" class="form-control" name="name" maxlength="30" value="{{marsey.name}}" pattern='marsey[a-z0-9]{1,24}' placeholder="Required" required {% if v.admin_level < PERMS['MODERATE_PENDING_SUBMITTED_ASSETS'] %}readonly{% endif %}>
|
<input autocomplete="off" type="text" id="{{emoji.name}}-name" class="form-control" name="name" maxlength="30" value="{{emoji.name}}" pattern='emoji[a-z0-9]{1,24}' placeholder="Required" required {% if v.admin_level < PERMS['MODERATE_PENDING_SUBMITTED_ASSETS'] %}readonly{% endif %}>
|
||||||
|
|
||||||
<label class="mt-3" for="{{marsey.name}}-tags">Tags</label>
|
<label class="mt-3" for="{{emoji.name}}-tags">Tags</label>
|
||||||
<input autocomplete="off" type="text" id="{{marsey.name}}-tags" class="form-control" name="tags" maxlength="200" value="{{marsey.tags}}" pattern='[a-z0-9: ]{1,200}' placeholder="Required" required {% if v.admin_level < PERMS['MODERATE_PENDING_SUBMITTED_ASSETS'] %}readonly{% endif %}>
|
<input autocomplete="off" type="text" id="{{emoji.name}}-tags" class="form-control" name="tags" maxlength="200" value="{{emoji.tags}}" pattern='[a-z0-9: ]{1,200}' placeholder="Required" required {% if v.admin_level < PERMS['MODERATE_PENDING_SUBMITTED_ASSETS'] %}readonly{% endif %}>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if v.admin_level >= PERMS['MODERATE_PENDING_SUBMITTED_ASSETS'] or v.id == marsey.submitter_id %}
|
{% if v.admin_level >= PERMS['MODERATE_PENDING_SUBMITTED_ASSETS'] or v.id == emoji.submitter_id %}
|
||||||
<div class="d-flex my-4 mx-3">
|
<div class="d-flex my-4 mx-3">
|
||||||
<button type="button" class="btn btn-primary ml-auto" data-nonce="{{g.nonce}}" data-onclick="remove_marsey(this, '{{marsey.name}}')">Remove</button>
|
<button type="button" class="btn btn-primary ml-auto" data-nonce="{{g.nonce}}" data-onclick="remove_emoji(this, '{{emoji.name}}')">Remove</button>
|
||||||
{% if v.admin_level >= PERMS['MODERATE_PENDING_SUBMITTED_ASSETS'] %}
|
{% if v.admin_level >= PERMS['MODERATE_PENDING_SUBMITTED_ASSETS'] %}
|
||||||
<button type="button" class="btn btn-primary ml-3" data-nonce="{{g.nonce}}" data-onclick="approve_marsey(this, '{{marsey.name}}')">Approve</button>
|
<button type="button" class="btn btn-primary ml-3" data-nonce="{{g.nonce}}" data-onclick="approve_emoji(this, '{{emoji.name}}')">Approve</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue