mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-19 12:43:23 +00:00
64d0cc2fa8
This will lighten the pages and make the functionality directly accessible without ever scrolling the header garbage that is never needed on those pages.
34 lines
1.0 KiB
Django/Jinja
34 lines
1.0 KiB
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans obj=object %}Edit {{ obj }}{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block info_boxes %}
|
|
{% endblock %}
|
|
|
|
{% block nav %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2>{% trans %}Make a cash register summary{% endtrans %}</h2>
|
|
<form action="" method="post" id="cash_summary_form">
|
|
{% csrf_token %}
|
|
{% for field in form %}
|
|
<p>
|
|
{% if field.name[:5] == "check" and field.name[8:] == "value" %}
|
|
{% set name = field.name[:7] + "_quantity" %}
|
|
{{ field.errors }}<label for="{{ field.name }}">{{ field.label }}</label> {{ field }}
|
|
{{ form[name].errors }}<label for="{{ form[name].name }}">{{ form[name].label }}</label> {{ form[name] }}
|
|
{% elif field.name[:5] != "check" %}
|
|
{{ field.errors }}<label for="{{ field.name }}">{{ field.label }}</label> {{ field }}
|
|
{% endif %}
|
|
</p>
|
|
{% endfor %}
|
|
<p><input type="submit" name="submit" value="{% trans %}Save{% endtrans %}" onclick="return confirm('{% trans %}Are you sure ?{% endtrans %}');return false;" /></p>
|
|
</form>
|
|
{% endblock %}
|
|
|
|
|
|
|