{% extends 'microsys/form_base.html' %} {% load crispy_forms_tags %} {% load django_tables2 %} {% load static %} {% block extra_head %} {% include "microsys/forms/filter_assets_head.html" %} {{ block.super }} {% endblock %} {% block content %}

{{ MS_TRANS.manage_label }} {% if active_model %} {{ ar_names }} {% endif %}

{# Tab Navigation for Section Models #} {% if models %} {% endif %} {# Error Display #} {% if error %} {% endif %} {# Form Card #} {% if form %}
{% csrf_token %} {% crispy form %} {% if subsection_selects %} {% for sub in subsection_selects %} {% include 'microsys/sections/subsection_select.html' with field=sub.field locked_ids=sub.locked_ids parent_model=sub.parent_model parent_id=sub.parent_id parent_field=sub.parent_field child_model=sub.child_model add_url=sub.add_url edit_url_template=sub.edit_url_template delete_url_template=sub.delete_url_template %} {% endfor %} {% endif %} {% if not hide_form_buttons %} {% if show_cancel and cancel_url %}
{{ MS_TRANS.cancel }}
{% else %}
{% endif %} {% endif %}
{% endif %}

{{ MS_TRANS.list_label }} {% if active_model %} {{ ar_names }} {% endif %}

{# Table Card #} {% if table %}
{% if filter %}
{% crispy filter.form %}
{% endif %}
{% render_table table %}
{% elif not error %}

{{ MS_TRANS.error_generic }}

{% endif %} {# Dynamic Subsection Modals #} {% for subsection in subsection_forms %} {% endfor %} {# Hidden form for deleting subsections #} {# View Subsections Modal #} {% if has_subsections %} {% endif %} {# Hidden delete form for sections #} {# Section data for JS #} {% endblock %} {% block scripts %} {% if id_type %} {% endif %} {% if id_subtype %} {% endif %} {# Section Manager (Smart Delete / View) #} {% endblock %}