{% extends "base.html" %} {% block title %}New Inspection{% endblock %} {% block content %}
New Inspection
{{ form.hidden_tag() }}
{{ form.template_id.label(class="form-label fw-semibold") }} {{ form.template_id(class="form-select" + (" is-invalid" if form.template_id.errors else ""), id="templateSelect") }} {% for e in form.template_id.errors %}
{{ e }}
{% endfor %} {# phase52 — the list shows shared forms plus the ones attached to the selected contract, refreshed by JS when the contract changes. #}
Shows forms available on the selected contract.
No forms are available on this contract yet.
{{ form.project_id.label(class="form-label fw-semibold") }} {{ form.project_id(class="form-select" + (" is-invalid" if form.project_id.errors else ""), id="projectSelect") }} {% for e in form.project_id.errors %}
{{ e }}
{% endfor %}
{{ form.facility_id.label(class="form-label fw-semibold") }} {{ form.facility_id(class="form-select" + (" is-invalid" if form.facility_id.errors else ""), id="facilitySelect") }} {% for e in form.facility_id.errors %}
{{ e }}
{% endfor %}
Loading facilities…
No active facilities found for this contract.
{% endblock %}