Формы

Сделал объединение ячеек
Сделал выравнивание по правой стороне
Переименовал кнопки
This commit is contained in:
2015-08-08 17:33:01 +05:00
parent 92e138aaa2
commit 772670ebf9
3 changed files with 16 additions and 11 deletions

View File

@@ -20,21 +20,21 @@
{% endif %}
{% endfor %}
{% if add_form %}
{% if params %}
<form action="{% url form_action params %}" method="POST" >
{% else %}
<form action="{% url form_action %}" method="POST" >
{% endif %}
{% if params %}
<form action="{% url form_action params %}" method="POST" >
{% else %}
<form action="{% url form_action %}" method="POST" >
{% endif %}
{% csrf_token %}
<tr>
{% for field in add_form %}
<td>{{field}}</td>
{% endfor %}
{% for field in add_form %}
<td>{{field}}</td>
{% endfor %}
</tr>
<tr>
<td><input type="submit" text="Добавить заказ"></td>
<td class="align-right" colspan="{{ add_form.fields|length }}"><input type="submit" value="{{ add_form.submit_text }}"></td>
</tr>
</form>
{% endif %}
</tbody>
{% endblock table.tbody %}
{% endblock table.tbody %}