32 lines
925 B
HTML
32 lines
925 B
HTML
{% extends "asuzr/base.html" %}
|
|
{% load inplace_edit %}
|
|
{% load render_table from django_tables2 %}
|
|
|
|
{% block page %}
|
|
<div class="inline" style="width:38%;"><div><h3>{{ table1.verbose_name }}</h3></div>{% render_table table1 %}</div>
|
|
<div class="inline" style="width:20%;"><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>
|
|
<div>
|
|
<h3>{{ additional_info.title }}</h3>
|
|
</div>
|
|
<div class="table-container">
|
|
<table class="paleblue">
|
|
{% for row in additional_info.rows %}
|
|
<tr><td>{{ row.title }}</td><td>{{ row.value }}</td></tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|