index.jsp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <%--
  2. Created by IntelliJ IDEA.
  3. User: Кинетик
  4. Date: 28.12.2016
  5. Time: 18:51
  6. To change this template use File | Settings | File Templates.
  7. --%>
  8. <%@ taglib prefix="spring" uri="http://www.springframework.org/tags/form" %>
  9. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
  10. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  11. <link href="bootstrap.min.css" rel="stylesheet">
  12. <html>
  13. <head>
  14. <title>Login Page</title>
  15. <style type="text/css">
  16. <%@include file="cssforpr.css" %>
  17. <%@include file="bootstrap.min.css" %>
  18. </style>
  19. </head>
  20. <body>
  21. <div class="inner">
  22. <h3 class="masthead-brand">Mephorce</h3>
  23. <nav class="nav nav-masthead">
  24. <a class="nav-link active" href="#">Войти</a>
  25. <a class="nav-link" href="#">О проекте</a>
  26. <a class="nav-link" href="#">Создать аккаунт</a>
  27. <a class="nav-link" href="#">Контакты</a>
  28. </nav>
  29. </div>
  30. <div class="logo"></div>
  31. <div class="login-block">
  32. <h1>Вход в систему</h1>
  33. <spring:form method="post" modelAttribute="userJSP" action="check-user">
  34. <spring:select path="name" type="text" value="" placeholder="Логин" id="username">
  35. <spring:option value="student">Исполнитель</spring:option>
  36. <spring:option value="admin">Администратор</spring:option>
  37. <spring:option value="owner">Заказчик</spring:option>
  38. </spring:select> <br/>
  39. <spring:input path="password" type="password" value="" placeholder="Пароль" id="password"/> <br/>
  40. ${message}<br/>
  41. <spring:button>Вход</spring:button>
  42. </spring:form>
  43. </div>
  44. <footer class="main-footer">
  45. <span>&copy;2017 Mephorce</span>
  46. </footer>
  47. </body>
  48. </html>