2019-02-25 16:30:45 +00:00
|
|
|
{# Please keep this template in sync with django/contrib/admin one #}
|
2019-02-17 17:43:40 +00:00
|
|
|
{% load i18n admin_urls %}
|
2019-02-25 16:30:45 +00:00
|
|
|
<div class="submit-row">
|
|
|
|
{% if show_save %}
|
|
|
|
<button type="submit" title="{% trans 'Save' %}" class="btn btn-success" name="_save">
|
|
|
|
<span class="glyphicon glyphicon-floppy-disk"></span>
|
|
|
|
<span class="text">{% trans 'Save' %}</span>
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
{% if show_delete_link %}
|
|
|
|
{% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %}
|
|
|
|
<a title="{% trans "Delete" %}" class="btn btn-danger"
|
|
|
|
href="{% add_preserved_filters delete_url %}">
|
|
|
|
<span class="glyphicon glyphicon-trash"></span>
|
|
|
|
<span class="text">{% trans "Delete" %}</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if show_save_as_new %}
|
|
|
|
<button type="submit" class="btn btn-success" title="{% trans 'Save as new' %}" name="_saveasnew">
|
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
|
|
|
<span class="text">{% trans 'Save as new' %}</span>
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
{% if show_save_and_add_another %}
|
|
|
|
<button type="submit" class="btn btn-default" title="{% trans 'Save and add another' %}" name="_addanother"
|
|
|
|
style="white-space:normal !important; word-wrap: break-word;">
|
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
|
|
|
<span class="text">{% trans 'Save and add another' %}</span>
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
{% if show_save_and_continue %}
|
|
|
|
<button type="submit" class="btn btn-default" title="{% trans 'Save and continue editing' %}" name="_continue"
|
|
|
|
style="white-space:normal !important; word-wrap: break-word;">
|
|
|
|
<span class="glyphicon glyphicon-pencil"></span>
|
|
|
|
<span class="text">{% trans 'Save and continue editing' %}</span>
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
2019-02-17 17:43:40 +00:00
|
|
|
</div>
|