Blame view

PFE06/src/main/resources/templates/registration.html 966 Bytes
d0a03db7   sfeutrie   restructuration d...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  <!DOCTYPE html>
  <html xmlns:th="http://www.thymeleaf.org">
  <head>
      <title>Ajout d'utilisateurs</title>
      <meta charset="utf-8"/>
  </head>
  <body>
  <div>
      <h5>Ajout d'utilisateurs :</h5>
      <form th:action="@{/registration}" method="POST">
          <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>
      <span th:utext="${ok}"></span>
      <a href="/login">connexion</a>
      <!--<div th:if="${param.ok}">
          <span>L'utilisateur a été ajouté !</span>
      </div>
      <div th:if="${param.fail}">
          <span>Le pseudo existe déjà !</span>
      </div>-->
  </div>
  </body>
  </html>