mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-12 19:50:57 +05:00
17 lines
1.0 KiB
HTML
17 lines
1.0 KiB
HTML
{% load i18n admin_urls %}
|
|
<div class="submit-row">
|
|
{% block submit-row %}
|
|
{% if show_save and not original %}<input type="submit" value="{% translate 'Save' %}" class="default" name="_save">{% endif %}
|
|
{% if show_save_as_new %}<input type="submit" value="{% translate 'Save as new' %}" name="_saveasnew">{% endif %}
|
|
{% if show_save_and_continue %}<input type="submit" value="{% if can_change %}{% translate 'Save' %}{% else %}{% translate 'Save and view' %}{% endif %}" class="{% if original %}default{% endif %}" name="_continue">{% endif %}
|
|
{% if show_close %}
|
|
{% url opts|admin_urlname:'changelist' as changelist_url %}
|
|
<a role="button" href="{% add_preserved_filters changelist_url %}" class="closelink">{% translate 'Close' %}</a>
|
|
{% endif %}
|
|
{% if show_delete_link and original %}
|
|
{% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %}
|
|
<a role="button" href="{% add_preserved_filters delete_url %}" class="deletelink">{% translate "Delete" %}</a>
|
|
{% endif %}
|
|
{% endblock %}
|
|
</div>
|