newsletter checkboxes in suggestions and registration
[wolnelektury.git] / src / ajaxable / templates / ajaxable / form.html
index 963f411..3363bc8 100755 (executable)
@@ -3,20 +3,22 @@
 
 <h1>{{ title }}</h1>
 
-<form action="{{ request.get_full_path }}" method="post" accept-charset="utf-8"
-       class="cuteform{% if placeholdize %} hidelabels{% endif %}">
-{% ssi_csrf_token %}
-{% if honeypot %}
+<form action="{{ action }}" method="post" accept-charset="utf-8"
+      class="cuteform{% if placeholdize %} hidelabels{% endif %}">
+  {% ssi_csrf_token %}
+  {% if honeypot %}
     {% load honeypot %}
     {% render_honeypot_field %}
-{% endif %}
-<ol>
+  {% endif %}
+  <ol>
     <div id="id_{% if form_prefix %}{{ form_prefix }}-{% endif %}__all__"></div>
-    {{ form.as_ul }}
+    {% block form_fields %}
+      {{ form.as_ul }}
+    {% endblock %}
     <li><input type="submit" value="{{ submit }}"/></li>
-</ol>
+  </ol>
 </form>
 
 <div class="form-extra">
-{% block extra %}{% endblock %}
+  {% block extra %}{% endblock %}
 </div>