This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
montpellier-themes/templates/combo/form.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>