#453: revert document to a past revision
[redakcja.git] / apps / wiki / templates / wiki / revert_dialog.html
1 {% load i18n %}
2 <div id="revert_dialog" class="dialog" data-ui-jsclass="RevertDialog">
3         <form method="POST" action="">
4         <p>{{ forms.text_revert.comment.label }}</p>
5         <p class="help_text">
6                 {{ forms.text_revert.comment.help_text}}
7                 <span data-ui-error-for="{{ forms.text_revert.comment.name }}"> </span>
8         </p>
9         {{forms.text_revert.comment }}
10
11
12
13         {% if request.user.is_anonymous %}
14     <table style='margin:0 4%;'>
15     <tr>
16         <td>{{ forms.text_revert.author_name.label }}:</td>
17         <td>{{ forms.text_revert.author_name }}
18         <span class="help_text">{{ forms.text_revert.author_name.help_text }}</span>
19         <span data-ui-error-for="{{ forms.text_revert.author_name.name }}"> </span></td>
20     </tr>
21     <tr>
22         <td>{{ forms.text_revert.author_email.label }}:</td>
23         <td>{{ forms.text_revert.author_email }}
24         <span class="help_text">{{ forms.text_revert.author_email.help_text }}</span>
25         <span data-ui-error-for="{{ forms.text_revert.author_email.name }}"> </span></td>
26     </tr>
27     </table>
28         {% endif %}
29
30
31         {% for f in forms.text_revert.hidden_fields %}
32                 {{ f }}
33         {% endfor %}
34
35         <p data-ui-error-for="__all__"> </p>
36
37         <p class="action_area">
38                 <button type="submit" class"ok" data-ui-action="revert">{% trans "Revert" %}</button>
39                 <button type="button" class="cancel" data-ui-action="cancel">{% trans "Cancel" %}</button>
40         </p>
41         </form>
42 </div>