refactor pour intégrer l'architecture 3-tiers
This commit is contained in:
Binary file not shown.
BIN
target/classes/local/epul4a/fotosharing/dto/CommentaireDTO.class
Normal file
BIN
target/classes/local/epul4a/fotosharing/dto/CommentaireDTO.class
Normal file
Binary file not shown.
BIN
target/classes/local/epul4a/fotosharing/dto/PartageDTO.class
Normal file
BIN
target/classes/local/epul4a/fotosharing/dto/PartageDTO.class
Normal file
Binary file not shown.
BIN
target/classes/local/epul4a/fotosharing/dto/PhotoDTO.class
Normal file
BIN
target/classes/local/epul4a/fotosharing/dto/PhotoDTO.class
Normal file
Binary file not shown.
BIN
target/classes/local/epul4a/fotosharing/dto/UtilisateurDTO.class
Normal file
BIN
target/classes/local/epul4a/fotosharing/dto/UtilisateurDTO.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/classes/local/epul4a/fotosharing/mapper/PhotoMapper.class
Normal file
BIN
target/classes/local/epul4a/fotosharing/mapper/PhotoMapper.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -8,9 +8,6 @@
|
||||
<h2>Mes photos</h2>
|
||||
<p><a th:href="@{/upload}">Uploader une photo</a></p>
|
||||
<p><a th:href="@{/}">Retour accueil</a></p>
|
||||
<div th:if="${#lists.isEmpty(mesPhotos)}">
|
||||
<p>Vous n'avez pas encore de photos.</p>
|
||||
</div>
|
||||
<h2>Mes photos privées</h2>
|
||||
<div>
|
||||
<a th:each="p : ${photosPrivees.content}"
|
||||
@@ -52,10 +49,21 @@
|
||||
</div>
|
||||
<div>
|
||||
<a th:if="${mesPhotosPartagees.hasPrevious()}"
|
||||
th:href="@{/mes-photos(pageMesPartagees=${pageMesPartagees - 1})}">⬅</a>
|
||||
th:href="@{/mes-photos(
|
||||
pagePrivees=${pagePrivees},
|
||||
pagePubliques=${pagePubliques},
|
||||
pagePartagees=${pagePartagees},
|
||||
pageMesPartagees=${pageMesPartagees - 1}
|
||||
)}">⬅</a>
|
||||
<span th:text="'Page ' + (${pageMesPartagees}+1)"></span>
|
||||
<a th:if="${mesPhotosPartagees.hasNext()}"
|
||||
th:href="@{/mes-photos(pageMesPartagees=${pageMesPartagees + 1})}">➡</a>
|
||||
th:href="@{/mes-photos(
|
||||
pagePrivees=${pagePrivees},
|
||||
pagePubliques=${pagePubliques},
|
||||
pagePartagees=${pagePartagees},
|
||||
pageMesPartagees=${pageMesPartagees + 1}
|
||||
)}">➡</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
<ul>
|
||||
<li th:each="p : ${partages}">
|
||||
<span th:text="${p.utilisateur.email}"></span>
|
||||
—
|
||||
<span th:text="${p.permission}"></span>
|
||||
<a th:href="@{'/photo/' + ${photo.id} + '/unshare/' + ${p.utilisateur.email}}"
|
||||
style="color:red;">Retirer</a>
|
||||
</li>
|
||||
@@ -43,6 +45,12 @@
|
||||
<form th:action="@{'/photo/' + ${photo.id} + '/share'}" method="post">
|
||||
<label>Email de l'utilisateur :</label>
|
||||
<input type="email" name="email" required />
|
||||
<label>Permission :</label>
|
||||
<select name="permission">
|
||||
<option value="READ">Lecture</option>
|
||||
<option value="COMMENT">Commenter</option>
|
||||
<option value="ADMIN">Administrer</option>
|
||||
</select>
|
||||
<button type="submit">Partager</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user