Blame view

PFE06/src/main/resources/templates/all.html 4.67 KB
115e3f68   sfeutrie   amélioration du f...
1
2
3
  <!DOCTYPE html>
  <html xmlns:th="http://www.thymeleaf.org">
  <head>
115e3f68   sfeutrie   amélioration du f...
4
5
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
115e3f68   sfeutrie   amélioration du f...
6
7
      <link rel="stylesheet" th:href="@{/css/all.css}">
      <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
f1c88101   sfeutrie   Ergonomie du site
8
      <title>Listes des utilisateurs dans la base de données</title>
115e3f68   sfeutrie   amélioration du f...
9
10
  </head>
  <body>
115e3f68   sfeutrie   amélioration du f...
11
      <!-- NAV BAR -->
f1c88101   sfeutrie   Ergonomie du site
12
      <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
6fbad9c5   Unknown   Modifications fro...
13
14
15
16
17
18
19
20
21
22
23
24
          <div class="container">
              <a th:href="@{/home}"><span class="navbar-brand"><img style="max-width:32px;" src="/pfelogo.png"></span></a>
              <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
                  <span class="navbar-toggler-icon"></span>
              </button>
              <div class="collapse navbar-collapse" id="navbarNavAltMarkup">
                  <div class="navbar-nav mr-auto">
                      <a class="nav-item nav-link" th:href="@{/upload}">Uploader un fichier</a>
                      <div th:remove="tag" th:switch="${customerRole}">
                          <div th:remove="tag" th:case="'ADMIN'">
                              <a class="nav-item nav-link" th:href="@{/registration}">Enregistrer des utilisateurs</a>
                              <a class="nav-item nav-link active" th:href="@{/all}">Liste des utilisateurs</a>
65f1240c   sfeutrie   Ajout des groupes...
25
                              <a class="nav-item nav-link" th:href="@{/update}">Paramétrer une mise à jour</a>
a0f630f2   sfeutrie   Il est désormais ...
26
                              <a class="nav-item nav-link" th:href="@{/history}">Etat du réseau</a>
6fbad9c5   Unknown   Modifications fro...
27
28
                          </div>
                          <div th:remove="tag" th:case="'USER'">
65f1240c   sfeutrie   Ajout des groupes...
29
                              <a class="nav-item nav-link" th:href="@{/update}">Paramétrer une mise à jour</a>
a0f630f2   sfeutrie   Il est désormais ...
30
                              <a class="nav-item nav-link" th:href="@{/history}">Etat du réseau</a>
6fbad9c5   Unknown   Modifications fro...
31
                          </div>
f1c88101   sfeutrie   Ergonomie du site
32
                      </div>
f6a02b6c   Unknown   Mise à jour front...
33
                  </div>
115e3f68   sfeutrie   amélioration du f...
34
              </div>
6fbad9c5   Unknown   Modifications fro...
35
36
37
38
              <div class="collapse navbar-collapse ml-3" id="navbarNavAltMarkup2" >
                  <div class="navbar-nav ml-auto">
                      <a class="nav-item nav-link btn btn-danger active" th:href="@{/logout}">Déconnexion</a>
                  </div>
f1c88101   sfeutrie   Ergonomie du site
39
40
41
              </div>
          </div>
      </nav>
f6a02b6c   Unknown   Mise à jour front...
42
  
6fbad9c5   Unknown   Modifications fro...
43
  
f1c88101   sfeutrie   Ergonomie du site
44
45
46
47
48
49
50
51
52
53
54
55
      <!-- TABLE PART -->
      <div class="container">
          <h1 style="margin-bottom:50px; margin-top:50px; border-bottom:1px solid #CCC; padding-bottom:20px;">Liste des utilisateurs</h1>
          <table class="table table-striped table-bordered">
              <tr>
                  <th scope="col">Email</th>
                  <th scope="col">Role</th>
                  <th scope="col">ID</th>
              </tr>
              <tr th:each="prod : ${list}">
                  <td th:text="${prod.getEmail()}">Email</td>
                  <td th:text="${prod.getRole()}">Role</td>
65f1240c   sfeutrie   Ajout des groupes...
56
                  <td th:text="${prod.getCustomerId()}">ID</td>
f1c88101   sfeutrie   Ergonomie du site
57
58
59
              </tr>
          </table>
      </div>
115e3f68   sfeutrie   amélioration du f...
60
  
51db1937   sfeutrie   Possibilité de vo...
61
62
63
64
65
66
67
      <div class="container">
          <h1 style="margin-bottom:50px; margin-top:50px; border-bottom:1px solid #CCC; padding-bottom:20px;">Liste des groupes</h1>
          <table class="table table-striped table-bordered">
              <tr>
                  <th scope="col">Nom</th>
                  <th scope="col">ID</th>
                  <th scope="col">Utilisateurs</th>
e7370ebe   Antoine Duquenoy   Backend - Configu...
68
                  <th scope="col">Mises à jour</th>
51db1937   sfeutrie   Possibilité de vo...
69
70
71
72
73
74
75
76
77
78
79
80
81
              </tr>
              <tr th:each="prod : ${team}">
                  <td th:text="${prod.getTeam()}">Team</td>
                  <td th:text="${prod.getTeamId()}">ID</td>
                  <td>
                      <div  th:each="customer : ${prod.getCustomers()}" th:utext="${customer.getEmail()}"></div>
                  </td>
                  <td>
                      <div  th:each="update : ${prod.getUpdates()}" th:utext="${update.getUpdate()}"></div>
                  </td>
              </tr>
          </table>
      </div>
6536a229   sfeutrie   modifications min...
82
      
115e3f68   sfeutrie   amélioration du f...
83
84
85
86
87
  <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
  </body>
  </html>