Overhauled the complete user interface
This commit is contained in:
parent
5fefee2282
commit
7fa405a957
11 changed files with 229 additions and 173 deletions
|
@ -9,27 +9,21 @@
|
|||
|
||||
{% block content %}
|
||||
{% if user.is_superuser or user.allowed_to_supply %}
|
||||
<h1 class="formheading">{% translate "Supply" %}</h1>
|
||||
<form id="customform" class="flex flex-column flex-center appform gap-1rem" action="/api/supply">
|
||||
{% csrf_token %}
|
||||
<h1 class="formheading">{% translate "Supply" %}</h1>
|
||||
<div class="flex forminput">
|
||||
<span>{% translate "Description" %}:</span>
|
||||
<span>
|
||||
<input type="text" name="supplydescription" autofocus required>
|
||||
</span>
|
||||
<input type="text" name="supplydescription" placeholder="{% translate 'Description' %}" autofocus required>
|
||||
</div>
|
||||
<div class="flex forminput">
|
||||
<span>{% translate "Price" %} ({{ currency_suffix }}):</span>
|
||||
<span>
|
||||
<input type="number" name="supplyprice" max="9999.99" min="1.00" step="0.01" required>
|
||||
</span>
|
||||
<input type="number" name="supplyprice" max="9999.99" min="1.00" step="0.01" placeholder="{% translate 'Price' %} ({{ currency_suffix }})" required>
|
||||
</div>
|
||||
<div id="statusinfo"></div>
|
||||
<div class="buttons">
|
||||
<a href="/" class="button">{% translate "cancel" %}</a>
|
||||
<input type="submit" id="submitbtn" class="button" value='{% translate "submit" %}'>
|
||||
</div>
|
||||
</form>
|
||||
<div id="statusinfo"></div>
|
||||
<script src="/static/js/custom_form.js"></script>
|
||||
<script src="/static/js/custom_number_input.js"></script>
|
||||
{% else %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue