Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Profil</title>
  6.  
  7. <!-- Bootstrap core CSS -->
  8. <link rel="stylesheet" type="text/css" th:href="@{vendor/bootstrap/css/bootstrap.min.css}" />
  9.  
  10. <!-- Custom styles for this template -->
  11. <link rel="stylesheet" type="text/css" th:href="@{css/modern-business.css}" />
  12.  
  13. </head>
  14.  
  15. <body>
  16.  
  17. <!-- Navigation -->
  18. <nav th:replace="fragments/header :: header"></nav>
  19.  
  20. <div class="container">
  21. <!-- Features Section -->
  22. <div class="row">
  23.  
  24. <div class="col-lg-6">
  25. <h2>Mon profil</h2>
  26. <ul>
  27. <li>Pseudo : <strong th:utext="${user.pseudo}">Pseudo</strong></li>
  28. <li>Nombre de matchs joués : <span th:text="${user.matchsJoues}">Nb parties</span></li>
  29. <li>Nombre de victoires : <span th:text="${user.matchsGagnes}">Nb victoires</span></li>
  30. <li>Pourcentage de victoires : <span th:text="${user.matchsGagnes != 0} ? ${user.matchsJoues} / ${user.matchsGagnes} : '0.0%'">% victoires</span></li>
  31. <li>Nombre de buts marqués/encaissés : <span th:text="${user.butMarques}">Nb victoires</span>/<span th:text="${user.butEncaisses}">Nb victoires</span></li>
  32. </ul>
  33. <a href="/composition.html" th:href="@{composition}" class="btn btn-info" role="button">Modifier mon equipe</a>
  34. <a href="/logout.html" th:href="@{logout}" class="btn btn-danger" role="button">Se déconnecter</a>
  35. </div>
  36. <div class="col-lg-6">
  37. <ul class="nav nav-tabs">
  38. <li class="nav-item">
  39. <a class="nav-link active">Mes joueurs</a>
  40. </li>
  41. </ul>
  42. <div class="container">
  43. <div class="row">
  44. <table class="table table-hover">
  45. <thead>
  46. <tr>
  47. <th>Nom</th>
  48. <th>Prénom</th>
  49. <th>Nation</th>
  50. <th>Note globale</th>
  51. <th>Position</th>
  52. <th>Vendre</th>
  53. </tr>
  54. </thead>
  55. <tbody>
  56. <tr th:each="player : ${user.players}">
  57. <td><span th:text="${player.nom}"></span></td>
  58. <td><span th:text="${player.prenom}"></span></td>
  59. <td><span th:text="${player.nation}"></span></td>
  60. <td><span th:text="${player.globalNote}"></span></td>
  61. <td><span th:text="${player.fieldRole}"></span></td>
  62. <td><a href="#" class="btn btn-primary" role="button"><span th:utext="${player.price} / 2 "><img src="/images/coins.png" th:src="@{/images/coins.png}"/></span></a></td>
  63. </tr>
  64. </tbody>
  65. </table>
  66. </div>
  67. </div>
  68. <ul class="nav nav-tabs">
  69. <li class="nav-item">
  70. <a class="nav-link" href="#">Mes packs</a>
  71. </li>
  72. </ul>
  73. <div class="container">
  74. <div class="row">
  75. <table class="table table-hover">
  76. <thead>
  77. <tr>
  78. <th>Qualité</th>
  79. <th>Type</th>
  80. <th>Ouvrir</th>
  81. </tr>
  82. </thead>
  83. <tbody>
  84. <tr th:each="pack : ${user.packs}">
  85. <td><span th:text="${pack.PackType}"></span></td>
  86. <td><span th:text="${pack.PackFormat}"></span></td>
  87.  
  88. <form autocomplete="off" action="#" th:action="@{/profil}"
  89. th:object="${player} method="post"> <a href="#" class="btn btn-primary" role="button">Ouvrir</a></form></td>
  90. </tr>
  91. </tbody>
  92. </table>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <!-- /.row -->
  98. </div>
  99. <!-- /.container -->
  100.  
  101. <!-- Footer -->
  102. <footer th:replace="fragments/footer :: footer">
  103. </footer>
  104.  
  105. <!-- Bootstrap core JavaScript -->
  106. <script th:src="@{vendor/jquery/jquery.min.js}"></script>
  107. <script th:src="@{vendor/bootstrap/js/bootstrap.bundle.min.js}"></script>
  108.  
  109. </body>
  110. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement