Introducing new layout generic forms.
[wolnelektury.git] / src / wolnelektury / templates / 2022 / form.html
diff --git a/src/wolnelektury/templates/2022/form.html b/src/wolnelektury/templates/2022/form.html
new file mode 100644 (file)
index 0000000..156985b
--- /dev/null
@@ -0,0 +1,19 @@
+{% if errors %}
+  {{ errors }}
+  {% if not fields %}
+  {% endif %}
+{% endif %}
+{% for field in hidden_fields %}{{ field }}{% endfor %}
+{% for field, errors in fields %}
+  <div class="l-checkout__form__row {% if field.field.required %}required {% endif %} {{ field.css_classes }}">
+    <div class="l-checkout__input">
+      {{ errors }}
+      {% if field.label %}{{ field.label_tag }}{% endif %}
+      {# <span>*</span> #}
+      {{ field }}
+      {# field.help_text|safe #}
+    </div>
+    <div class="l-checkout__input">
+    </div>
+  </div>
+{% endfor %}