{% if selected_page %}

Fields

{% csrf_token %}

{% for field in fields %}
{{ field.label }}
{{ field.get_field_type_display }}
{% if field.choices.exists %}
{% for choice in field.choices.all %} {{ choice }} {% endfor %}
{% endif %}
{{ field.help_text }}
{% endfor %}
{% endif %}