{% extends "base.html" %} {% block title %}Edit Template — {{ template.name }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
Template Settings
{{ form.hidden_tag() }}
{{ form.name.label(class="form-label fw-semibold small") }} {{ form.name(class="form-control form-control-sm") }} {% if form.name.errors %}
{{ form.name.errors[0] }}
{% endif %}
{{ form.description.label(class="form-label fw-semibold small") }} {{ form.description(class="form-control form-control-sm", rows=3) }}
{{ form.frequency.label(class="form-label fw-semibold small") }} {{ form.frequency(class="form-select form-select-sm") }}
{{ form.contract_ids.label(class="form-label fw-semibold small") }} {{ form.contract_ids(class="form-select form-select-sm", size=6) }}
Nothing selected = shared with every contract. Select contracts to restrict this form to them (hidden from all other customers).
Edit fields & layout in the Form Editor
Open Editor
Form Layout
{{ form_fields|length }} field{{ 's' if form_fields|length != 1 else '' }} Preview Edit Form
{% if form_fields %}
{% for f in form_fields %}
{% if f.type == 'section' %}
{{ f.label }}
{% elif f.type == 'table' %}
{{ f.label }}
table · {{ f.col_headers|length if f.col_headers else 3 }} cols × {{ f.table_rows or 3 }} rows {% elif f.type == 'label' %}
{{ f.text_content or 'Label text' }}
label {% elif f.type.startswith('button_') %}
{{ f.btn_label or f.type.replace('button_','') | title }}
{{ f.type.replace('_',' ') }} {% else %}
{{ f.label }}{% if f.required %} *{% endif %}
{{ f.type.replace('_', ' ') }} {% endif %}
{% endfor %}
{% else %}

No fields yet. Open the Form Editor to start building your inspection form.

Open Form Editor
{% endif %}
{% endblock %}