Generalize EmailBaseForm

This commit is contained in:
Claude Paroz 2018-02-01 14:39:40 +01:00
parent 3dcac79841
commit 73bef207b2
3 changed files with 24 additions and 20 deletions

20
templates/email_base.html Normal file
View file

@ -0,0 +1,20 @@
{% extends "admin/base_site.html" %}
{% load i18n static %}
{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
&rsaquo; {{ title }}
</div>
{% endblock %}
{% block content %}
<h2>{{ candidat }}</h2>
<form name="confirmation" action="." method="post">{% csrf_token %}
<table>
{{ form.as_table }}
<tr><td><input type="submit" value="Envoyer"></td></tr>
</table>
</form>
{% endblock %}