editor fixes: grid, inline aside.gap
[redakcja.git] / apps / wiki / templates / wiki / save_dialog.html
index 7155964..31c5b01 100644 (file)
@@ -1,5 +1,7 @@
+{% load i18n %}
 <div id="save_dialog" class="dialog" data-ui-jsclass="SaveDialog">
        <form method="POST" action="">
+    {% csrf_token %}
        <p>{{ forms.text_save.comment.label }}</p>
        <p class="help_text">
                {{ forms.text_save.comment.help_text}}
 
 
        {% if request.user.is_anonymous %}
-       <p>
-               {{ forms.text_save.author.label }}:
-               {{ forms.text_save.author }}
-               <span class="help_text">{{ forms.text_save.author.help_text }}</span>
-               <span data-ui-error-for="{{ forms.text_save.author.name }}"> </span>
-       </p>
+    <table style='margin:0 4%;'>
+    <tr>
+        <td>{{ forms.text_save.author_name.label }}:</td>
+        <td>{{ forms.text_save.author_name }}
+        <span class="help_text">{{ forms.text_save.author_name.help_text }}</span>
+        <span data-ui-error-for="{{ forms.text_save.author_name.name }}"> </span></td>
+    </tr>
+    <tr>
+        <td>{{ forms.text_save.author_email.label }}:</td>
+        <td>{{ forms.text_save.author_email }}
+        <span class="help_text">{{ forms.text_save.author_email.help_text }}</span>
+        <span data-ui-error-for="{{ forms.text_save.author_email.name }}"> </span></td>
+    </tr>
+    </table>
        {% else %}
        <p>
                {{ forms.text_save.stage_completed.label }}:
                <span class="help_text">{{ forms.text_save.stage_completed.help_text }}</span>
                <span data-ui-error-for="{{ forms.text_save.stage_completed.name }}"> </span>
        </p>
+    {% if can_pubmark %}
+       <p>
+               {{ forms.text_save.publishable.label_tag }}:
+               {{ forms.text_save.publishable }}
+               <span class="help_text">{{ forms.text_save.publishable.help_text }}</span>
+               <span data-ui-error-for="{{ forms.text_save.publishable.name }}"> </span>
+       </p>
+    {% endif %}
+
        {% endif %}