{% import json %} {% import gramex.data %} {% from gramex.config import variables as var %} {% import urllib.parse %} {% set base = '..' %} {% set form_id = handler.path_args[1] %} {% set view = 'form' %} {% set metadata = json.loads(gramex.data.filter(url=var.FORMS_URL, table=var.FORMS_TABLE, args={'id': [form_id]})['metadata'].values[0]) %} {% set is_template = True if 'template' in metadata else False %} View a form - Form Builder {% set title = 'Forms' %} {% if handler.path_args[0] == 'form' %} {% include 'template-navbar-view-form.html' %}

{{ metadata['name'] }}

{{ metadata['description'] }}

You are currently previewing the form. Click View Form to submit entries.

{% if not is_template %} Edit {% end %} View form

{% include 'modals/themes.html' %} {% include 'modals/embed.html' %} {% include 'modals/remove.html' %} {% else %}

{{ metadata['name'] }}

{{ metadata['description'] }}

Thanks for submitting your inputs.

View responses or submit another response.
{% end %}
{% include 'toast.html' %}