{% else %}
{% endif %}
{% endblock %}
{# Global footer: faint copyright/credit strip pinned to the bottom of the #}
{# viewport. Override this `footer` block per page, drop a custom_footer.html #}
{# partial, or set DLUX_STRINGS.footer_text to customise. See footer.html. #}
{% block footer %}
{% include 'dlux/includes/footer.html' %}
{% endblock %}
{% include_if_exists 'dlux/includes/custom_scripts.html' %}
{# Form-field JS (scan button, file widget) loaded globally (once), after #}
{# Bootstrap, so dynamic-modal forms work on any page. Initializers are #}
{# idempotent / MutationObserver-based and no-op when no form is present. #}
{% include_once 'dlux/forms/assets_scripts.html' %}
{% block scripts %}{% endblock %}
{% if request.resolver_match.url_name != 'login' %}
{% include 'dlux/includes/tutorial.html' %}
{% endif %}
{% include 'dlux/helpers/dlux_context_menu.html' %}
{% include 'dlux/helpers/dynamic_modal.html' %}
{% if DLUX_SHOW_INITIAL_USER_SETUP %}
{# First-login Initial User Setup: auto-opens the dlux dynamic modal once per user. #}
{% endif %}