{% load static %} {% block title %}{{ page_title }}{% endblock %} {% if request.resolver_match.namespace == 'accounts' %}{% endif %} {% if request.resolver_match.namespace == 'accounts' and request.resolver_match.url_name == 'profile' or financial_page or request.resolver_match.namespace == 'tickets' and request.resolver_match.url_name == 'list' or request.resolver_match.namespace == 'tickets' and request.resolver_match.url_name == 'new' %}{% endif %} {% block extra_head %}{% endblock %} {% block body %} {% if user.is_authenticated and user.account_type == 'STAFF' %}
{{ site_branding.staff_panel_label }}

{% if active_tab_title %}{{ active_tab_title }}{% else %}{{ site_branding.staff_brand_subtitle }}{% endif %}

{% csrf_token %}
{% else %} {% block customer_header %}{% endblock %} {% endif %}
{% for message in messages %}
{{ message }}
{% endfor %}{% block content %}{% endblock %}
{% block footer %}
{{ developer_credit }}
{% endblock %} {% if user.is_authenticated and user.account_type == 'STAFF' %}
{% block staff_mobile_navigation %}{% endblock %}
{% elif user.is_authenticated %} {% if request.resolver_match.namespace == 'accounts' and request.resolver_match.url_name == 'profile' or financial_page or request.resolver_match.namespace == 'tickets' and request.resolver_match.url_name == 'list' or request.resolver_match.namespace == 'tickets' and request.resolver_match.url_name == 'new' %}{% include 'tickets/_customer_dock.html' %}{% else %} {% endif %} {% endif %} {% block pwa_install_prompt %}{% endblock %} {% if user.is_authenticated %}{% endif %} {% if user.is_authenticated and user.account_type == 'STAFF' %}{% endif %} {% block extra_scripts %}{% endblock %} {% if user.is_authenticated and user.account_type == 'CUSTOMER' and not user.is_staff and not user.is_superuser %}{% endif %} {% block otp_script %}{% endblock %} {% endblock %}