{% extends 'multimail/base.html' %}
{% load static %}

{% block main %}

<div class="d-flex" id="wrapper">

    <!-- Sidebar -->
    <div class="bg-dark border-right" id="sidebar-wrapper">
        <div class="sidebar-heading">
            <a href="{% url 'multimail:index' %}" class="link-unstyled">Multimail</a>
        </div>
        <div class="list-group list-group-flush">
            <a href="{% url 'multimail:domains' %}" class="list-group-item list-group-item-action bg-dark">Domains</a>
            <a href="{% url 'multimail:mailboxes' %}"
               class="list-group-item list-group-item-action bg-dark">Mailboxes</a>
            <a href="{% url 'multimail:aliases' %}" class="list-group-item list-group-item-action bg-dark">Aliases</a>
        </div>
    </div>
    <!-- /#sidebar-wrapper -->

    <!-- Page Content -->
    <div id="page-content-wrapper">

        <nav class="navbar navbar-expand-lg navbar-dark bg-dark border-bottom">
            <button class="btn btn-link btn-lg" id="menu-toggle"><i class="fas fa-bars"></i></button>

            <button class="navbar-toggler btn btn-link btn-lg" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
                    aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <i class="fas fa-user"></i>
            </button>

            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav ml-auto mt-2 mt-lg-0">
                    <!--li class="nav-item active">
                        <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">Link</a>
                    </li-->
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
                           data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            {{ user }}
                        </a>
                        <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
                            <a class="dropdown-item" href="#">Nothing</a>
                            <div class="dropdown-divider"></div>
                            <a href="{% url 'multimail:logout' %}" class="dropdown-item">Logout</a>
                        </div>
                    </li>
                </ul>
            </div>
        </nav>

        <div class="container-fluid">
            {% block content %}
            {% endblock %}
        </div>
    </div>
    <!-- /#page-content-wrapper -->

</div>

{% endblock %}