{% extends "::navigation.html.twig" %}

{% block navigationitems %}
    {% if is_granted('ROLE_SERVICE_ADMIN') %}
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">APITokens <b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li><a href="{{ path('_admin_backend_token_list') }}">List</a></li>
                <li><a href="{{ path('_admin_backend_token_create') }}">Create</a></li>
                <li><a href="{{ path('_admin_backend_tokenusage_index') }}">Usage</a></li>
                <li><a href="{{ path('_admin_backend_servicetoken_index') }}">Manage Assignments</a></li>
            </ul>
        </li>
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">APIServices <b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li><a href="{{ path('_admin_backend_service') }}">List</a></li>
            </ul>
        </li>
    {% endif %}
    {% if is_granted('ROLE_USER_ADMIN') %}
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Object <b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li><a href="{{ path('_admin_backend_webservice_type') }}">Types</a></li>
                <li><a href="{{ path('_admin_backend_webservice_attribute_group') }}">Attribute Group</a></li>
                <li><a href="{{ path('_admin_backend_webservice_attributes') }}">Attributes</a></li>
                <li><a href="{{ path('_admin_backend_webservice_object') }}">Objects</a></li>
                <li><a href="{{ path('_admin_backend_webservice_object_values') }}">Object Values</a></li>
                <li><a href="{{ path('_admin_backend_webservice_language') }}">Languages</a></li>
                <li><a href="{{ path('_admin_backend_webservice_reporting_objects') }}">Reporting</a></li>
                <li><a href="{{ path('_admin_backend_import_index') }}">Import</a></li>
                <li><a href="{{ path('_admin_backend_type_mapping_index') }}">Type Mapping</a></li>
            </ul>
        </li>
    {% endif %}
    {% if is_granted('ROLE_SERVICE_ADMIN') %}
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">System Logs <b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li><a href="{{ path('_life_style_tools_db_log_overview') }}">View Log</a></li>
                <li><a href="{{ path('_life_style_tools_db_log_delete') }}" onclick="return confirm('Delete log?')">Delete
                        Log</a></li>
                <li><a href="{{ path('sso_access_log_list') }}">View Access Log</a></li>
            </ul>
        </li>
    {% endif %}
{% endblock %}
{% block navigationfooter %}
    <div class="backendbundle">
        <div class="container">
            <p>SSO ows - ( {% include '::serverinfo.html.twig' %} )</p>
        </div>
    </div>
{% endblock %}
