Including reversion templates for ease of use... probably a bad idea. From version...
[htsworkflow.git] / templates / reversion / recover_list.html
1 {% extends "admin/base_site.html" %}
2 {% load i18n %}
3
4 {% block breadcrumbs %}
5 <div class="breadcrumbs">
6     <a href="../../../">{% trans 'Home' %}</a> &rsaquo; 
7     <a href="../../">{{app_label|capfirst|escape}}</a> &rsaquo; 
8     <a href="../">{{module_name}}</a> &rsaquo; 
9     {% blocktrans with opts.verbose_name_plural|escape as name %}Recover deleted {{name}}{% endblocktrans %}
10 </div>
11 {% endblock %}
12
13 {% block content %}
14         <div id="content-main">
15                 <p>{% blocktrans %}Choose a date from the list below to recover a deleted version of an object.{% endblocktrans %}</p>
16                 <div class="module">
17                         {% if deleted %}
18                             <table id="change-history">
19                                 <thead>
20                                 <tr>
21                                     <th scope="col">{% trans 'Date/time' %}</th>
22                                     <th scope="col">{{opts.verbose_name|capfirst}}</th>
23                                 </tr>
24                                 </thead>
25                                 <tbody>
26                                 {% for deletion in deleted %}
27                                 <tr>
28                                     <th scope="row"><a href="{{deletion.pk}}/">{{deletion.revision.date_created|date:_("DATETIME_FORMAT")}}</a></th>
29                                     <td>{{deletion.object_repr}}</td>
30                                 </tr>
31                                 {% endfor %}
32                                 </tbody>
33                             </table>
34                         {% else %}
35                             <p>{% trans "There are no deleted objects to recover." %}</p>
36                         {% endif %}
37                 </div>
38         </div>
39 {% endblock %}