12 lines
498 B
HTML
12 lines
498 B
HTML
{% load i18n %}
|
|
<form method="post" action="." class="{% if form.non_field_errors %}form-with-errors {% endif %}">
|
|
{% csrf_token %}
|
|
{% include "form_fields.html" with form=form %}
|
|
|
|
<input type="submit" {% if submit_name %}name="{{ submit_name }}"{% endif %}
|
|
value="{% if submit_value %}{{ submit_value }}{% else %}{% trans 'Submit' %}{% endif %}" />
|
|
{% if not no_cancel_button %}
|
|
<button type="button" onclick="location.href = '/'">{% trans "Back" %}</button>
|
|
{% endif %}
|
|
</form>
|