{% extends "base.html" %} {% block title %}Form Preview – Echo{% endblock %} {% block content %}

Form Preview

{% if template %}

Template Name: {{ template.name }}

{% endif %}
Back to Forms
{% if not template %}

Form template not found.

{% else %}

{{ template.name }}

{% if template.description %}

{{ template.description }}

{% endif %}

Read-only preview .

{% if fields and fields|length > 0 %} {% for f in fields %}
{% set t = (f.type or 'text') %} {% if t == 'textarea' %} {% elif t == 'number' %} {% elif t == 'select' %}

Dropdown options are shown here when configured.

{% elif t == 'checkbox' %}
Example checkbox
{% elif t == 'radio' %}
{% elif t == 'email' %} {% else %} {% endif %} {% if f.required %}

This question is required.

{% endif %}
{% endfor %} {% else %}

No fields have been added to this form yet.

{% endif %}
{% endif %}
{% endblock %}