Scott Baker | 503b022 | 2015-05-21 10:24:13 -0700 | [diff] [blame] | 1 | {% load i18n %} |
Matteo Scandolo | c06e645 | 2016-02-04 15:21:36 -0800 | [diff] [blame^] | 2 | <div class="form-buttons clearfix"> |
| 3 | {% if show_save %}<button type="submit" class="btn btn-high btn-success" name="_save">{% trans 'Save' %}</button>{% endif %} |
| 4 | {% if show_save_and_continue %}<button type="submit" name="_continue" class=" btn btn-high btn-info">{% trans 'Save and continue editing' %}</button>{% endif %} |
| 5 | {% if show_save_as_new %}<button type="submit" name="_saveasnew" class="btn btn-info">{% trans 'Save as new' %}</button>{%endif%} |
| 6 | {% if show_save_and_add_another %}<button type="submit" name="_addanother" class="btn btn-info">{% trans 'Save and add another' %}</button>{% endif %} |
Scott Baker | 503b022 | 2015-05-21 10:24:13 -0700 | [diff] [blame] | 7 | |
| 8 | {% if show_delete_link %} |
| 9 | {% if custom_delete_url %} |
| 10 | <a href="{{ custom_delete_url }}" class="text-error deletelink">{% trans "Delete" %}</a> |
| 11 | {% else %} |
| 12 | <a href="delete/" class="text-error deletelink">{% trans "Delete" %}</a> |
| 13 | {% endif %} |
| 14 | {% endif %} |
| 15 | </div> |