Advertisement
Mr_Max

Untitled

Nov 23rd, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.55 KB | None | 0 0
  1. <html xmlns:th="http://www.thymeleaf.org"
  2.      th:with="lang=${#locale.language}" th:lang="${lang}">
  3. <head>
  4.     <title>Login</title>
  5.     <div th:replace="fragments/header :: header-style"></div>
  6.     <link type="text/css" rel="stylesheet" href="css/style.css">
  7.     <style>
  8.  
  9.     </style>
  10.  
  11. </head>
  12. <body>
  13. <div class="flex-wrapper">
  14.     <div th:replace="fragments/header :: header"></div>
  15.     <div class="content">
  16.  
  17.         <div style="width:600px;margin-left: auto;margin-right: auto;margin-top:24px;padding: 24px;">
  18.             <div class="card">
  19.                 <div class="card-header">
  20.                     <i class="fa fa-user"></i> Please Login
  21.                 </div>
  22.                 <div class="card-block" style="padding: 24px;">
  23.                     <form name="f" th:action="@{/login}" th:object="${user}" method="post">
  24.                         <fieldset>
  25.                             <!-- Thymeleaf + Spring Security error display -->
  26.                             <div th:if="${param.error}" class="alert alert-danger">
  27.                                 Invalid username and password.
  28.                             </div>
  29.  
  30.                             <div th:if="${param.logout}" class="alert alert-success">
  31.                                 You have been logged out.
  32.                             </div>
  33.  
  34.                             <!-- Login Controls -->
  35.                             <div class="form-group">
  36.                                 <label for="txtUsername">Username</label>
  37.                                 <input th:field="*{email}" type="text" class="form-control" id="txtUsername" name="txtUsername"
  38.                                       placeholder="Username">
  39.                             </div>
  40.  
  41.                             <div class="form-group">
  42.                                 <label for="txtPassword">Password</label>
  43.                                 <input  th:field="*{password}" type="password" class="form-control" id="txtPassword" name="txtPassword"
  44.                                       placeholder="Password">
  45.                             </div>
  46.  
  47.  
  48.  
  49.                             <!-- Login Button -->
  50.                             <div class="form-actions" style="margin-top: 12px;">
  51.                                 <button type="submit" class="btn btn-success">Log in</button>
  52.                             </div>
  53.                         </fieldset>
  54.                     </form>
  55.                 </div>
  56.             </div>
  57.         </div>
  58.     </div>
  59.  
  60.     <div th:replace="fragments/footer :: footer"></div>
  61. </div>
  62.  
  63. </body>
  64. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement