{% extends 'web_theme_base.html' %} {% load i18n %} {% load project_tags %} {% load navigation_tags %} {% load settings %} {% load search_tags %} {% load static %} {% load main_settings_tags %} {% load variable_tags %} {% load registration_tags %} {% block web_theme_head %} {% if new_window_url %} {% endif %} {% if html_redirect %} {% endif %} {% endblock %} {% block html_title %}{% project_name %}{{ request.new_window_url }}{% block title %}{% endblock %}{% endblock %} {% block web_theme_project_name %}{% project_name %}{% if debug %} {% trans "(DEBUG)" %}{% endif %} - {% registered_name %}{% endblock %} {% block web_theme_stylesheets %} {% block stylesheets %}{% endblock %} {% endblock %} {% block web_theme_javascript %} {% block javascript %}{% endblock %} {% endblock %} {% block web_theme_user_navigation %}
  • {% trans 'User' %}: {% if not user.is_authenticated %} {% trans 'Anonymous' %} {% else %} {{ user.get_full_name|default:user }} {% endif %}
  • {% get_setting "MIDDLEWARE_CLASSES" as middleware_classes %} {% if 'django.middleware.locale.LocaleMiddleware' in middleware_classes %}
  • {% csrf_token %}
  • {% endif %} {% get_setting "LOGIN_URL" as login_url %}
  • {% if not user.is_authenticated %}{% trans 'Login' %}{% else %}{% trans 'Logout' %}{% endif %}
  • {% endblock %} {% block web_theme_main_navigation %} {% get_top_menu_links %} {% for link in menu_links %} {% with 'true' as as_li %} {% with 'true' as hide_active_anchor %} {% with 'active' as li_class_active %} {% with 'first' as li_class_first %} {% include 'generic_subnavigation.html' %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endfor %} {% endblock %} {% block web_theme_secondary_navigation %} {% if navigation_object_list %} {% for navigation_object_dict in navigation_object_list %} {% copy_variable navigation_object_dict.object as "navigation_object_name" %} {% get_object_navigation_links "form_header" as form_navigation_links %} {% if form_navigation_links %}
    {% endif %} {% endfor %} {% else %} {% get_object_navigation_links "form_header" as form_navigation_links %} {% if form_navigation_links %}
    {% endif %} {% endif %} {% endblock %} {% block web_theme_sidebar %} {% get_main_setting "SIDE_BAR_SEARCH" as side_bar_search %} {% if side_bar_search and not web_theme_hide_menus %} {% with 'true' as side_bar %} {% with 'true' as form_hide_required_text %} {% with '' as read_only %} {% with '' as object %} {% search_form %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endif %} {% get_object_navigation_links "secondary_menu" as object_navigation_links %} {% if object_navigation_links %}

    {% trans "Secondary menu" %}

    {% endif %} {% if navigation_object_list %} {% for navigation_object_dict in navigation_object_list %} {% copy_variable navigation_object_dict.object as "navigation_object_name" %} {% get_object_navigation_links as object_navigation_links %} {% if object_navigation_links %}
    {% if navigation_object %} {% if navigation_object_dict.name %}

    {% blocktrans with navigation_object_dict.name as name %}Actions for {{ name }}: {{ navigation_object }}{% endblocktrans %}

    {% else %}

    {% blocktrans %}Actions for: {{ navigation_object }}{% endblocktrans %}

    {% endif %} {% else %}

    {% trans 'Available actions' %}

    {% endif %}
    {% endif %} {% get_object_navigation_links "related" as object_navigation_links %} {% if object_navigation_links %}

    {% trans "Related actions" %}

    {% endif %} {% get_object_navigation_links "sidebar" as object_navigation_links %} {% if object_navigation_links %}

    {% trans 'Other available actions' %}

    {% endif %} {% endfor %} {% else %} {% get_object_navigation_links as object_navigation_links %} {% if object_navigation_links %}
    {% if navigation_object %} {% if object_name %}

    {% blocktrans %}Actions for {{ object_name }}: {{ navigation_object }}{% endblocktrans %}

    {% else %}

    {% blocktrans %}Actions for: {{ navigation_object }}{% endblocktrans %}

    {% endif %} {% else %}

    {% trans 'Actions' %}

    {% endif %}
    {% endif %} {% get_object_navigation_links "related" as object_navigation_links %} {% if object_navigation_links %}

    {% trans 'Related actions' %}

    {% endif %} {% endif %} {% get_object_navigation_links "sidebar" as object_navigation_links %} {% if object_navigation_links %}

    {% trans "Other available actions" %}

    {% endif %} {% get_sidebar_templates as sidebar_templates %} {% for template in sidebar_templates %} {% with 'true' as side_bar %} {% include template %} {% endwith %} {% endfor %} {% block sidebar %}{% endblock %} {% endblock %} {% block web_theme_messages %}{% block messages %}{% endblock %}{% endblock %} {% block web_theme_content %}{% block content %}{% endblock %}{% endblock %} {% block web_theme_footer %}{% block footer %}{% endblock %}{% endblock %}