Some more pages.
[wolnelektury.git] / src / ajaxable / templates / ajaxable / form.html
index 0c97b65..8cc3004 100644 (file)
@@ -9,13 +9,21 @@
     {% load honeypot %}
     {% render_honeypot_field %}
   {% endif %}
-  <ol>
-    <div id="id_{% if form_prefix %}{{ form_prefix }}-{% endif %}__all__"></div>
-    {% block form_fields %}
-      {{ form.as_ul }}
-    {% endblock %}
-    <li><input type="submit" value="{{ submit }}"/></li>
+  {% if request.EXPERIMENTS.layout.value %}
+    {{ form.as_p }}
+    <p class="helptext">
+      {{ form.data_processing }}
+    </p>
+    <button>{{ submit }}</button>
+  {% else %}
+    <ol>
+      <div id="id_{% if form_prefix %}{{ form_prefix }}-{% endif %}__all__"></div>
+      {% block form_fields %}
+        {{ form.as_p }}
+      {% endblock %}
+      <li><input type="submit" value="{{ submit }}"/></li>
   </ol>
+  {% endif %}
 </form>
 
 <div class="form-extra">