<!DOCTYPE html>
<html lang="en">
<head>
    {% load static %}
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Custom fonts-->
    <link href="{% static '/css/all.min.css' %}" rel="stylesheet" type="text/css">
    <link rel="icon" href="{% static '/images/logo.png' %}" type="image/png">
    <link
            href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
            rel="stylesheet">
    <title>{% block title %}SERVIR AppTemplate{% endblock %}</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <link href="{% static '/css/basic.css' %}" rel="stylesheet">
    <link href="{% static '/css/base.css' %}" rel="stylesheet" type="text/css">
    <link href="{% static '/css/common.css' %}" rel="stylesheet" type="text/css">

    {% block script %}{% endblock %}
</head>
<body id="page-top">
<div id="wrapper">
    <div id="content-wrapper" class="d-flex flex-column">
        <!-- Main Content -->
        <div id="content" class="bg-gray-300">
            <!-- Header logos -->
            <!-- Change src of <img> tag in order to change the header logo images -->
            <div class="row bg-white">
                <div class="col-lg-12 h-50">

                    <div class="float-sm-start ml-5">
                        <a
                                class="align-items-center "
                                href="//www.usaid.gov/"
                                id="navbarDropdownMenuAvatar"
                                role="button"
                                title="USAID website"
                        >
                            <img
                                    src="{% static "images/USAID.jpg" %}"
                                    width="110"
                                    height="50"
                                    alt="USAID_seal_fullname_surrounding_USAID_shield_with_handclasp_USAID_blue_red_on_right_with_FromTheAmericanPeople_tagline">
                        </a>
                        <a
                                class=" align-items-center"
                                href="//www.nasa.gov/"
                                id="navbarDropdownMenuAvatar"
                                role="button"
                                title="NASA website"
                        >
                            <img
                                    src="{% static "images/NASA.jpg" %}"
                                    width="60"
                                    height="60"
                                    alt="NASA_blue_circle_with_stars_red_vector_upward_right_white_NASA_with_orbitcircle"
                            >
                        </a>
                    </div>
                    <div class="float-sm-end mr-5">
                        <a
                                class="align-items-center"
                                href="//servirglobal.net"
                                id="navbarDropdownMenuAvatar"
                                role="button"
                                title="SERVIR Global"
                        >
                            <img
                                    src="{% static "images/SERVIR.jpg" %}"
                                    width="130"
                                    height="60"
                                    alt="SERVIR Global"/>
                        </a>
                    </div>
                </div>
            </div>
            <!-- Navigation bar -->
            <!-- To update any of the navigation bar items, please edit the content of <li> tags below -->
            <nav class="navbar navbar-expand-lg navbar-dark" id="navbar_app_base">
                <div class="container-fluid">
                    <a class="navbar-brand" href="{% url "home" %}" id="title_navbar">Geospatial App</a>
                    <button class="navbar-toggler" type="button" data-bs-toggle="collapse"
                            data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
                            aria-expanded="false" aria-label="Toggle navigation">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse" id="navbarSupportedContent">

                        <ul class="navbar-nav float-right" id="ul_navbar">
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'about' %}">About</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'setup' %}">Setup</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'feedback' %}">Feedback</a>
                            </li>
                            <li class="nav-item dropdown">
                                <!-- Nav Item - User Information -->
                                {% if user.is_authenticated %}
                                    <a class="nav-link dropdown-toggle" href="#" role="button"
                                       data-bs-toggle="dropdown">{{ user.username }} </a>
                                    <ul class="dropdown-menu" id="details" style="margin-top: 3vh">
                                        <li><a class="dropdown-item" href="/accounts/logout/">Log Out</a></li>
                                    </ul>
                                {% else %}
                                    <a class="nav-link" href="/accounts/google/login/">
                                        Login
                                    </a>
                                {% endif %}
                            </li>
                        </ul>
                    </div>
                </div>
            </nav>
            {% block content %}{% endblock %}
        </div>
    </div>
</div>
<!-- End of Page Wrapper -->

<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
    <i class="fas fa-angle-up"></i>
</a>
<div class="d-flex flex-column">
    <footer id="footer">
        <div class="app-copy">
            <a href="/" title="App Template Home">App Template</a>

        </div>
        <div class="ml-auto app-power">

            <a href="https://servirglobal.net" title="SERVIR Global">
                <img src="{% static "images/SERVIR_flat_white.png" %}" alt="SERVIR Global"
                     style="margin-left: 8px; max-height: 21px;">
            </a>
        </div>

    </footer>
</div>
</body>
</html>