Fixes #756: problem with save form
[redakcja.git] / apps / wiki / templates / wiki / save_dialog.html
1 {% load i18n %}
2 <div id="save_dialog" class="dialog" data-ui-jsclass="SaveDialog">
3         <form method="POST" action="">
4         <p>{{ forms.text_save.comment.label }}</p>
5         <p class="help_text">
6                 {{ forms.text_save.comment.help_text}}
7                 <span data-ui-error-for="{{ forms.text_save.comment.name }}"> </span>
8         </p>
9         {{forms.text_save.comment }}
10
11
12
13         {% if request.user.is_anonymous %}
14     <table style='margin:0 4%;'>
15     <tr>
16         <td>{{ forms.text_save.author_name.label }}:</td>
17         <td>{{ forms.text_save.author_name }}
18         <span class="help_text">{{ forms.text_save.author_name.help_text }}</span>
19         <span data-ui-error-for="{{ forms.text_save.author_name.name }}"> </span></td>
20     </tr>
21     <tr>
22         <td>{{ forms.text_save.author_email.label }}:</td>
23         <td>{{ forms.text_save.author_email }}
24         <span class="help_text">{{ forms.text_save.author_email.help_text }}</span>
25         <span data-ui-error-for="{{ forms.text_save.author_email.name }}"> </span></td>
26     </tr>
27     </table>
28         {% else %}
29         <p>
30                 {{ forms.text_save.stage_completed.label }}:
31                 {{ forms.text_save.stage_completed }}
32                 <span class="help_text">{{ forms.text_save.stage_completed.help_text }}</span>
33                 <span data-ui-error-for="{{ forms.text_save.stage_completed.name }}"> </span>
34         </p>
35         {% endif %}
36
37
38         {% for f in forms.text_save.hidden_fields %}
39                 {{ f }}
40         {% endfor %}
41
42         <p data-ui-error-for="__all__"> </p>
43
44         <p class="action_area">
45                 <button type="submit" class"ok" data-ui-action="save">Zapisz</button>
46                 <button type="button" class="cancel" data-ui-action="cancel">Anuluj</button>
47         </p>
48         </form>
49 </div>