mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-28 23:52:26 +00:00
38 lines
1.7 KiB
HTML
38 lines
1.7 KiB
HTML
{# Please keep this template in sync with django/contrib/admin one #}
|
|
{% load i18n admin_urls %}
|
|
<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 %}
|
|
</div>
|