<%--
  Created by IntelliJ IDEA.
  User: Кинетик
  Date: 28.12.2016
  Time: 18:51
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>

<head>
  <title>Login Page</title>
  <style type="text/css">
    <%@include file="/WEB-INF/bootstrap-4.0.0-alpha.6-dist/css/cssforpr.css" %>
    <%@include file="/WEB-INF/bootstrap-4.0.0-alpha.6-dist/css/bootstrap.min.css" %>
  </style>
</head>

<body>

<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <a class="navbar-brand" href="#">MePhorce</a>
        <nav class="nav nav-masthead">
            <a class="nav-link active" href="/">Войти</a>
            <a class="nav-link" href="/aboutUs">О проекте</a>
            <a class="nav-link" href="/registrate">Создать аккаунт</a>
            <a class="nav-link" href="/contacts">Контакты</a>
        </nav>
    </div>
</nav>

<div class="container">
    <div class="login-block">
        <h1>Вход в систему</h1>
        <spring:form method="post"  modelAttribute="userJSP" action="check-user">
            <spring:select path="name" type="text" value="" placeholder="Логин" id="username">
                <spring:option value="исполнитель">Исполнитель</spring:option>
                <spring:option value="модератор">Администратор</spring:option>
                <spring:option value="заказчик">Заказчик</spring:option>
            </spring:select> <br/>
            <spring:input path="password" type="password" value="" placeholder="Пароль" id="password"/>   <br/>
            ${message}<br/>
            <spring:button>Вход</spring:button>
        </spring:form>
    </div>
</div>

<footer class="footer">
    <div class="container">
        <p class="text-muted">&copy;2017 Mephorce</p>
    </div>
</footer>

</body>

</html>
