/
change_form.html
29 lines (27 loc) · 1.09 KB
/
change_form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!--
Template courtesy of django-solo project:
https://github.com/lazybird/django-solo
-->
{% extends "admin/change_form.html" %}
{% load i18n %}
{% load admin_urls %}
{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a> ›
<a href="../">{{ opts.app_config.verbose_name|capfirst|escape }}</a> ›
{{ opts.verbose_name|capfirst }}
</div>
{% endblock %}
{% block object-tools-items %}
<li><a href="{% url opts|admin_urlname:'history' %}" class="historylink">{% trans "History" %}</a></li>
<li>
<form id="django_des--test-form" action="{% url opts|admin_urlname:'history' %}" method="POST">
<button type="submit" id="django_des--test-button">
{% csrf_token %}
{% trans "Send Test Email" %}
<input name="email" id="django_des--test-input" placeholder="example@website.com">
</button>
</form>
</li>
{% if has_absolute_url %}<li><a href="{% url 'admin:view_on_site' content_type_id original.pk %}" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
{% endblock %}