{% extends 'inte_edc/bootstrap3/base.html' %}
{% load static edc_dashboard_extras %}

{% block main %}

    <style>

        .bg-1 {
            background-color: #428bca; /* dark blue */
            color: #ffffff;
        }

        .bg-2 {
            background-color: #5bc0de; /* light Blue */
            color: #ffffff;
        }

        .bg-3 {
            background-color: #f9f9f9; /* White */
            color: #555555;
        }

    </style>

    {{ block.super }}


    <div class="row">

        <div class="col-sm-4">&nbsp;</div>
        <div class="col-sm-4">
            <div class="panel panel-default">
                <div class="panel-heading">{{ protocol_name |default:project_name }}&nbsp;{{ site_title|default:request.site.name|title }}
                </div>
                <div class="list-group">
                    {% if perms.edc_dashboard.view_screening_listboard %}
                        <a id="home_list_group_screening_listboard"
                           href="{% url screening_listboard_url|default:'screening_listboard_url_cannot_be_none' %}"
                           class="list-group-item"><i class="fas fa-user-plus fa-lg fa-fw"></i>&nbsp;Screening</a>
                    {% endif %}
                    {% if perms.edc_dashboard.view_subject_listboard %}
                        <a id="home_list_group_subject_listboard"
                           href="{% url subject_listboard_url|default:'subject_listboard_url_cannot_be_none' %}"
                           class="list-group-item"><i class="fas fa-user-circle fa-lg fa-fw"></i>&nbsp;Subjects</a>
                    {% endif %}
                    {% if perms.inte_prn.view_integratedcareclinicregistration and icc_registration_outstanding %}
                        <a id="home_list_group_subject_listboard"
                           href="{% url 'inte_prn_admin:inte_prn_integratedcareclinicregistration_changelist' %}"
                           class="list-group-item"><i class="fas fa-dungeon fa-lg fa-fw"></i>&nbsp;ICC Registration</a>
                    {% endif %}
                    {% if perms.edc_dashboard.view_subject_review_listboard %}
                        <a id="home_list_group_subject_review_listboard"
                           href="{% url subject_review_listboard_url|default:'subject_review_listboard_url_cannot_be_none' %}"
                           class="list-group-item"><i class="fas fa-calendar fa-lg fa-fw"></i>&nbsp;&nbsp;&nbsp;Subject
                            Review</a>
                    {% endif %}
                    {% if perms.edc_dashboard.view_screening_listboard %}
                        <a href="{{daily_closing_log_url}}"
                           class="list-group-item"><i
                                class="fas fa-newspaper fa-lg fa-fw"></i>&nbsp;Daily Closing Log</a>
                    {% endif %}
                    {% if perms.edc_navbar.nav_ae_section %}
                        <a href="{% url 'edc_adverse_event:ae_home_url' %}" class="list-group-item"><i
                                class="fas fa-heartbeat fa-lg fa-fw"></i>&nbsp;Adverse&nbsp;events</a>
                    {% endif %}
                    {% if perms.edc_navbar.nav_lab_section %}
                        <a id="home_list_group_requisition_listboard"
                           href="{% url requisition_listboard_url|default:'requisition_listboard_url_cannot_be_none' %}"
                           class="list-group-item"><i
                                class="fas fa-flask fa-lg fa-fw"></i>&nbsp;Specimens</a>
                    {% endif %}
                    {% if perms.edc_action_item %}
                        <a href="{% url 'edc_action_item:home_url' %}" class="list-group-item"><i
                                class="fas fa-bolt fa-lg fa-fw"></i>&nbsp;Action&nbsp;items</a>
                    {% endif %}
                    {% if perms.edc_navbar.nav_data_manager_section %}
                        <a href="{% url 'edc_data_manager:home_url' %}" class="list-group-item"><i
                                class="fas fa-database fa-lg fa-fw"></i>&nbsp;Data&nbsp;Management</a>
                    {% endif %}
                    {% if perms.edc_navbar.nav_pharmacy_section %}
                        <a href="{% url 'edc_randomization_admin:edc_randomization_randomizationlist_changelist' %}"
                           class="list-group-item"><i
                                class="fas fa-medkit fa-lg fa-fw"></i>&nbsp;Pharmacy</a>
                    {% endif %}
                    {% if perms.canned_views %}
                      <a id="home_canned_views" href="{% url 'canned_views:home_url' %}" class="list-group-item">
                        <i class="fas fa-list-alt fa-lg fa-fw"></i>Custom QA Reports</a>
                    {% endif %}
                    {% if perms.edc_export %}
                        <a href="{% url 'edc_export:home_url' %}" class="list-group-item"><i
                                class="fas fa-file-export fa-lg fa-fw"></i>&nbsp;Export&nbsp;data</a>
                    {% endif %}
                    <a href="/switch_sites/" class="list-group-item"><i class="fas fa-arrows-alt fa-lg fa-fw"></i>&nbsp;Switch&nbsp;sites</a>
                    <a href="{% url 'logout' %}" class="list-group-item"><i class="fas fa-sign-out-alt fa-lg fa-fw"></i>&nbsp;Log&nbsp;out</a>
                </div>
            </div>
        </div>
        <div class="col-sm-4">&nbsp;
        </div>
    </div>


{% endblock main %}
