<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title – интерактивная карта</title>
    @Styles.Render("~/Content/css")
    
</head>
<body>
    <nav class="navbar navbar-expand-sm navbar-dark fixed-top bg-dark">
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-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 mr-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="/Home">О проекте@*<span class="sr-only">(current)</span>*@</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/Map/Map">Карта</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/Home/FAQ">Инструкция</a>
                    </li>
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Модерация</a>
                        <div class="dropdown-menu" aria-labelledby="navbarDropdown1">

                            @if ((bool)ViewBag.isAuth)
                            {
                                <a class="dropdown-item" href="/Account"><b>@ViewBag.UserName</b></a>
                                <div class="dropdown-divider"></div>
                                <a class="dropdown-item" href="/Account/Logoff">Выход</a>
                            }
                            else
                            {
                                <form class="px-3 py-3" action="/Account/Login" method="post">
                                    @Html.AntiForgeryToken()
                                    @Html.ValidationSummary(true)
                                    <small class="form-text">
                                        Авторизация необходима для изменения данных о поселениях.
                                    </small>
                                    <div class="form-group">
                                        <label for="Login"><b>Login</b></label>
                                        <input type="text" class="form-control" id="Login" name="Login" placeholder="Ваш логин" value="">
                                    </div>
                                    <div class="form-group">
                                        <label for="Password"><b>Password</b></label>
                                        <input type="password" class="form-control" id="Password" name="Password" placeholder="Ваш пароль" value="">
                                    </div>
                                    <button type="submit" class="btn btn-secondary">Вход</button>
                                    <small class="form-text">
                                        Для получения доступа обратитесь к <span><a href="mailto:salin.dv@protonmail.com" target="_blank">ответственному лицу</a></span>.
                                    </small>
                                </form>
                            }
                        </div>
                    </li>
                </ul>
                @*<form class="form-inline my-2 my-lg-0">
                    <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
                    <button class="btn btn-outline-info my-2 my-sm-0" type="submit">Search</button>
                </form>*@
            </div>
    </nav>
    <div class="container body-content">
        @RenderBody()
        <hr />
        <footer>
            <p>&copy; Историческая интерактивная карта "Поселения Саратовской области"</p>
        </footer>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")

    @RenderSection("scripts", required: false)
</body>
</html>
