2022-11-04 20:35:28 +01:00
|
|
|
{% extends "baselayout.html" %}
|
2022-10-15 19:37:01 +02:00
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
{% load l10n %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{% translate "Drinks - Supply" %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block headAdditional %}
|
2022-11-04 20:35:28 +01:00
|
|
|
<link rel="stylesheet" href="/static/css/appform.css">
|
|
|
|
<link rel="stylesheet" href="/static/css/custom_number_input.css">
|
2022-10-15 19:37:01 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% if user.is_superuser or user.allowed_to_supply %}
|
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
<form id="supplyform" class="appform">
|
2022-10-15 19:37:01 +02:00
|
|
|
{% csrf_token %}
|
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
<h1 class="formheading">{% translate "Supply" %}</h1>
|
|
|
|
|
|
|
|
<div class="forminput">
|
|
|
|
<span>{% translate "Description" %}:</span>
|
|
|
|
<span>
|
|
|
|
<input type="text" name="supplydescription" id="supplydescription" autofocus>
|
|
|
|
</span>
|
2022-10-15 19:37:01 +02:00
|
|
|
</div>
|
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
<div class="forminput">
|
|
|
|
<span>{% translate "Price" %} ({{ currency_suffix }}):</span>
|
|
|
|
<span>
|
|
|
|
<input type="number" name="supplyprice" id="supplyprice" max="9999.99" min="1.00" step="0.01">
|
|
|
|
</span>
|
2022-10-15 19:37:01 +02:00
|
|
|
</div>
|
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
<div id="statusinfo"></div>
|
2022-10-15 19:37:01 +02:00
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
<div class="formbuttons">
|
2022-10-15 19:37:01 +02:00
|
|
|
<a href="/" class="button">{% translate "cancel" %}</a>
|
2022-11-04 20:35:28 +01:00
|
|
|
<input type="submit" id="supplysubmitbtn" class="button" value='{% translate "submit" %}'>
|
2022-10-15 19:37:01 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<script src="/static/js/supply.js"></script>
|
2022-11-04 20:35:28 +01:00
|
|
|
<script src="/static/js/custom_number_input.js"></script>
|
2022-10-15 19:37:01 +02:00
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
<div class="centeringflex">
|
2022-10-15 19:37:01 +02:00
|
|
|
<p>{% translate "You are not allowed to view this site." %}</p>
|
|
|
|
<a href="/">{% translate "back" %}</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<script src="/static/js/autoreload.js"></script>
|
|
|
|
|
|
|
|
{% endblock %}
|