{% if draft_preview %}
{{ _("Draft preview — only you can see this. Publish the form to make it public.") }}
{% endif %}
{{ form_title }}
{% if form_description %}
{{ form_description }}
{% endif %}
{% for section in layout %}
{% if section.label %}
{{ section.label }}
{% endif %}
{% for col in section.columns %}
{% for f in col %}
{% if f.fieldtype == "Check" %}
{{ f.label }}{% if f.reqd or f.mandatory_depends_on %}
*
{% endif %}
{% else %}
{{ f.label }}{% if f.reqd or f.mandatory_depends_on %}
*
{% endif %}
{% if f.fieldtype in ("Small Text", "Text", "Long Text", "Text Editor", "HTML Editor", "Markdown Editor") %}
{% elif f.fieldtype == "Select" %}
Select…
{% for opt in f.options.split("\n") %}{% if opt %}
{{ opt }}
{% endif %}{% endfor %}
{% elif f.fieldtype == "Link" %}
{{ f.placeholder or "Select…" }}
{% for opt in link_options.get(f.fieldname, []) %}
{{ opt.label }}
{% endfor %}
{% elif f.fieldtype in ("Int", "Float", "Currency", "Percent") %}
{% elif f.fieldtype == "Date" %}
{% elif f.fieldtype == "Datetime" %}
{% elif f.fieldtype == "Time" %}
{% elif f.fieldtype == "Color" %}
{% else %}
{% endif %} {% endif %} {% if f.description %}
{{ f.description }}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
{{ _("Discard") }}
{{ submit_label }}
✓
{{ success_message }}
Your response has been recorded.