Ajout impression
This commit is contained in:
12
templates/admin/change_form_object_tools.html
Normal file
12
templates/admin/change_form_object_tools.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% load i18n admin_urls jazzmin %}
|
||||
{% get_jazzmin_ui_tweaks as jazzmin_ui %}
|
||||
|
||||
{% block object-tools-items %}
|
||||
{% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %}
|
||||
<a class="btn btn-block {{ jazzmin_ui.button_classes.secondary }} btn-sm" href="#" onclick="javascript:history.go(-1);">{% trans 'Retour' %}</a>
|
||||
<a class="btn btn-block {{ jazzmin_ui.button_classes.secondary }} btn-sm" href="{% add_preserved_filters history_url %}">{% trans 'History' %}</a>
|
||||
|
||||
{% if has_absolute_url %}
|
||||
<a href="{{ absolute_url }}" class="btn btn-block {{ jazzmin_ui.button_classes.secondary }} btn-sm">{% trans "View on site" %}</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user