Commit 29243f85 authored by Patrick Kimber's avatar Patrick Kimber

Add a second submit button, and a cancel button to the form

- The cancel button is used to return the user to another view
- The second submit button allows the user to perform a different action
parent 476dc379
......@@ -34,6 +34,15 @@
<div class="pure-controls">
<input type="submit" {% if submit_id %}id="{{ submit_id }}" {% endif %}value="{% if submit %}{{ submit }}{% else %}Submit{% endif %}" class="pure-button pure-button-primary" />
{% if submit_2_id and submit_2_name and submit_2_value %}
<input type="submit" id="{{ submit_2_id }}" name="{{ submit_2_name }}" value="{{ submit_2_value }}" class="pure-button" />
{% endif %}
{% if cancel_url %}
<a class="pure-button" href="{% url cancel_url %}">
<i class="fa fa-reply"></i>
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment