index.jsp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="utf-8"%>
  3. <%@ taglib prefix="tag" tagdir="/WEB-INF/tags" %>
  4. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  5. <%@ page import="java.util.List" %>
  6. <%@ page import="microfolie.service.EspaceService" %>
  7. <%@ page import="microfolie.service.dto.EspaceDTO" %>
  8. <%
  9. EspaceService espaceService = EspaceService.getInstance();
  10. List<EspaceDTO> espaces = espaceService.getAll();
  11. %>
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15. <tag:head title="Paramétrage" />
  16. </head>
  17. <body class="grey lighten-3">
  18. <!-- Header -->
  19. <tag:header active="settings" />
  20. <!-- Main -->
  21. <main class="container">
  22. <div class="row">
  23. <div class="col s12 center-align">
  24. <h3>Param&eacute;trage</h3>
  25. </div>
  26. </div>
  27. <div class="row center-align">
  28. <c:forEach items="<%= espaces %>" var="espace">
  29. <div class="col l4 m6 s12 mbot-5">
  30. <a href="<c:url value="/settings/configure?espace=${espace.code}"/>" class="waves-effect waves-light btn-large red">${espace.libelle}</a>
  31. </div>
  32. </c:forEach>
  33. </div>
  34. </main>
  35. <!-- Footer -->
  36. <tag:footer />
  37. <!-- Script -->
  38. <tag:script />
  39. </body>
  40. </html>