Implemented 'custom forms' to replace individual scripts for deposit and supply forms
This commit is contained in:
parent
5ab0d1088f
commit
2bab323b86
4 changed files with 15 additions and 54 deletions
|
@ -12,13 +12,13 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form id="depositform" class="flex flex-column flex-center appform gap-1rem">
|
||||
<form id="customform" class="flex flex-column flex-center appform gap-1rem" action="/api/deposit">
|
||||
{% csrf_token %}
|
||||
<h1 class="formheading">{% translate "Deposit" %}</h1>
|
||||
<div class="flex forminput">
|
||||
<span>{% translate "Amount" %} {{ currency_suffix }}:</span>
|
||||
<span>
|
||||
<input type="number" name="depositamount" id="depositamount" class="keyboard-input" max="9999.99" min="1.00" step="0.01" autofocus>
|
||||
<input type="number" name="depositamount" class="keyboard-input" max="9999.99" min="1.00" step="0.01" autofocus required>
|
||||
</span>
|
||||
</div>
|
||||
<div id="statusinfo"></div>
|
||||
|
@ -28,9 +28,9 @@
|
|||
<script src="/static/js/simple-keyboard_configure.js"></script>
|
||||
<div class="flex-center buttons">
|
||||
<a href="/" class="button">{% translate "cancel" %}</a>
|
||||
<input type="submit" id="depositsubmitbtn" class="button" value='{% translate "confirm" %}'>
|
||||
<input type="submit" id="submitbtn" class="button" value='{% translate "confirm" %}'>
|
||||
</div>
|
||||
</form>
|
||||
<script src="/static/js/deposit.js"></script>
|
||||
<script src="/static/js/custom_form.js"></script>
|
||||
<script src="/static/js/autoreload.js"></script>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue