Blame view

PFE06/src/main/resources/templates/login.html 1.01 KB
e1305e8c   sfeutrie   projet Spring boo...
1
2
3
4
5
6
7
8
9
  <!DOCTYPE html>
  <html xmlns:th="http://www.thymeleaf.org">
  <head>
      <title>Add users page</title>
      <meta charset="utf-8"/>
  </head>
      <body>
          <div>
              <h5>Add new users</h5>
e743b1b9   Antoine Duquenoy   Ajout d'un utilis...
10
              <form th:action="@{/login}" method="POST">
e1305e8c   sfeutrie   projet Spring boo...
11
12
13
14
15
16
17
18
19
20
                  <div class="form1">
                      <label for="username">User Name: </label>
                      <input type="text" id="username" placeholder="Enter UserName" name="pseudo"/>
                  </div>
                  <div class="form2">
                      <label for="password">Password: </label>
                      <input type="password" id="password" placeholder="Enter Password" name="password"/>
                  </div>
                  <button type="submit">Ajouter</button>
              </form>
e743b1b9   Antoine Duquenoy   Ajout d'un utilis...
21
22
23
24
25
              <div th:if="${param.ok}">
                  <span>L'utilisateur a été ajouté !</span>
              </div>
              <div th:if="${param.error}">
                  <span>Le pseudo existe déjà !</span>
e1305e8c   sfeutrie   projet Spring boo...
26
27
28
29
              </div>
          </div>
      </body>
  </html>