Реализовано добавление заказов

This commit is contained in:
Anastasia
2015-07-19 11:32:19 +05:00
parent 6b586a32ca
commit a06f51f26a
5 changed files with 31 additions and 5 deletions

View File

@@ -72,9 +72,9 @@
{% block controls %}
{% if form %}
{% if dateform %}
<form id='dateform' method="get">
{{ form }}
{{ dateform }}
<input type="submit" value="OK" />
</form>
{% endif %}

View File

@@ -5,6 +5,13 @@
{% block page %}
<div class="inline"><div><h3>{{ table1.verbose_name }}</h3></div>{% render_table table1 %}</div>
<div class="inline"><div><h3>{{ table2.verbose_name }}</h3></div>{% render_table table2 %}</div>
{% if order_form %}
<form action="{% url 'add-order' %}" method="POST" >
{% csrf_token %}
{{order_form}}
<input type="submit" text="Добавить заказ">
</form>
{% endif %}
{% if additional_info %}
<div>
<hr>