{% load wagtailcore_tags %} {% if self.page.show_in_parent_page %}
{% csrf_token %} {% with self.page.get_form as form %} {% for hidden_field in form.hidden_fields %} {{ hidden_field.errors }} {{ hidden_field }} {% endfor %} {% for field in form.visible_fields %}
{% if field.widget_type == "select" %} {% include "styleguide2/includes/atoms/form_fields/form_select.html" %} {% elif field.widget_type == "radioselect" %} {% include "styleguide2/includes/atoms/form_fields/form_radio.html" %} {% elif field.widget_type == "selectmultiple" %} {% include "styleguide2/includes/atoms/form_fields/form_multiselect.html" %} {% elif field.widget_type == "text" %} {% include "styleguide2/includes/atoms/form_fields/form_text.html" %} {% elif field.widget_type == "textarea" %} {% include "styleguide2/includes/atoms/form_fields/form_textarea.html" %} {% elif field.widget_type == "email" %} {% include "styleguide2/includes/atoms/form_fields/form_email.html" %} {% elif field.widget_type == "number" %} {% include "styleguide2/includes/atoms/form_fields/form_number.html" %} {% elif field.widget_type == "url" %} {% include "styleguide2/includes/atoms/form_fields/form_url.html" %} {% elif field.widget_type == "checkbox" %} {% include "styleguide2/includes/atoms/form_fields/form_checkbox.html" %} {% elif field.widget_type == "checkboxselectmultiple" %} {% include "styleguide2/includes/atoms/form_fields/form_checkbox_multiple.html" %} {% elif field.widget_type == "date" %} {% include "styleguide2/includes/atoms/form_fields/form_date.html" %} {% elif field.widget_type == "datetime" %} {% include "styleguide2/includes/atoms/form_fields/form_datetime.html" %} {% elif field.widget_type == "captchatext" %} {% include "styleguide2/includes/atoms/form_fields/form_captcha.html" %} {% else %} {{ field.widget_type }} {% endif %} {% if field.help_text %} {% endif %} {% if field.errors %}
{{ field.errors }}
{% endif %}
{% endfor %} {% endwith %} {% include "styleguide2/includes/atoms/buttons/round_button_form.html" with show_arrow_on_hover=True text="Odeslat" %}
{% endif %}