Merge branch 'with-dvcs'
[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     {% csrf_token %}
5         <p>{{ forms.text_save.comment.label }}</p>
6         <p class="help_text">
7                 {{ forms.text_save.comment.help_text}}
8                 <span data-ui-error-for="{{ forms.text_save.comment.name }}"> </span>
9         </p>
10         {{forms.text_save.comment }}
11
12
13
14         {% if request.user.is_anonymous %}
15     <table style='margin:0 4%;'>
16     <tr>
17         <td>{{ forms.text_save.author_name.label }}:</td>
18         <td>{{ forms.text_save.author_name }}
19         <span class="help_text">{{ forms.text_save.author_name.help_text }}</span>
20         <span data-ui-error-for="{{ forms.text_save.author_name.name }}"> </span></td>
21     </tr>
22     <tr>
23         <td>{{ forms.text_save.author_email.label }}:</td>
24         <td>{{ forms.text_save.author_email }}
25         <span class="help_text">{{ forms.text_save.author_email.help_text }}</span>
26         <span data-ui-error-for="{{ forms.text_save.author_email.name }}"> </span></td>
27     </tr>
28     </table>
29         {% else %}
30         <p>
31                 {{ forms.text_save.stage_completed.label }}:
32                 {{ forms.text_save.stage_completed }}
33                 <span class="help_text">{{ forms.text_save.stage_completed.help_text }}</span>
34                 <span data-ui-error-for="{{ forms.text_save.stage_completed.name }}"> </span>
35         </p>
36         {% endif %}
37
38
39         {% for f in forms.text_save.hidden_fields %}
40                 {{ f }}
41         {% endfor %}
42
43         <p data-ui-error-for="__all__"> </p>
44
45         <p class="action_area">
46                 <button type="submit" class"ok" data-ui-action="save">Zapisz</button>
47                 <button type="button" class="cancel" data-ui-action="cancel">Anuluj</button>
48         </p>
49         </form>
50 </div>