move "create ping group" to the top cuz ppl miss it

master
Aevann 2023-09-15 13:51:39 +03:00
parent 32df572ccd
commit f33e96874d
1 changed files with 23 additions and 23 deletions

View File

@ -2,7 +2,29 @@
{% block pagetitle %}Ping Groups{% endblock %} {% block pagetitle %}Ping Groups{% endblock %}
{% block content %} {% block content %}
<div class="px-3"> <div class="px-3">
<h3 class="my-3">Ping Groups</h3> <h3 class="mt-3">Create Ping Group</h3>
<form class="mt-3" action="/create_group" method="post" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHRReload(this)">
<div class="container pb-0" style="background-color: transparent !important">
<div class="row">
<div class="col col-md-6 px-0 py-3 py-md-0">
<div class="body">
<input hidden name="formkey" value="{{v|formkey}}">
<label for="title">Group Name</label>
<input minlength="3" maxlength="25" pattern='[a-zA-Z0-9_\-]*' class="form-control" type="text" name="name" required>
<small class="form-text text-muted">3-25 characters, including letters, numbers, _ , and -</small>
<div class="footer">
<div class="d-flex">
<button type="submit" class="btn btn-primary ml-auto" {% if v.marseybux + v.coins < cost %}disabled{% endif %}>Create Group</button>
</div>
<p class="mt-2 mr-1" style="float: right"><b>Cost</b>: {{cost}} coins or marseybux</p>
</div>
</div>
</div>
</div>
</div>
</form>
<h3 class="mb-3">Ping Groups</h3>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table class="ping-groups table table-striped mb-5"> <table class="ping-groups table table-striped mb-5">
<thead class="bg-primary text-white"> <thead class="bg-primary text-white">
@ -39,28 +61,6 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<h3 class="my-3">Create Ping Group</h3>
<form class="mt-3" action="/create_group" method="post" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHRReload(this)">
<div class="container pb-0" style="background-color: transparent !important">
<div class="row mb-4 pb-6">
<div class="col col-md-6 px-0 py-3 py-md-0">
<div class="body">
<input hidden name="formkey" value="{{v|formkey}}">
<label for="title">Group Name</label>
<input minlength="3" maxlength="25" pattern='[a-zA-Z0-9_\-]*' class="form-control" type="text" name="name" required>
<small class="form-text text-muted">3-25 characters, including letters, numbers, _ , and -</small>
<div class="footer">
<div class="d-flex">
<button type="submit" class="btn btn-primary ml-auto" {% if v.marseybux + v.coins < cost %}disabled{% endif %}>Create Group</button>
</div>
<p class="mt-2 mr-1" style="float: right"><b>Cost</b>: {{cost}} coins or marseybux</p>
</div>
</div>
</div>
</div>
</div>
</form>
</div> </div>
{% endblock %} {% endblock %}