source: Git/Sources/src/main/resources/templates/personsList.html

main
Last change on this file was 980eeda, checked in by Test <matonikolov77@…>, 2 years ago

Restructuring project

  • Property mode set to 100644
File size: 3.6 KB
RevLine 
[5b447b0]1<div xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml">
2
[3fe36de]3 <div style="width: 70%; margin: auto;">
4 <a sec:authorize="isAuthenticated()" th:href="@{'persons/add'}" class="btn btn-secondary">Додади актер или режисер</a>
[5b447b0]5 </div>
6 <div class="container mb-4">
7 <div class="col-12" th:if="${persons.size() > 0}">
8 <div class="table-responsive">
9 <table class="table table-striped">
10 <thead>
11 <tr>
12 <th scope="col">Име</th>
[f25e8dd]13 <!--<th scope="col">Презиме</th>-->
[5b447b0]14 <th scope="col">Датум рагање</th>
[f25e8dd]15 <!--<th scope="col">Опис</th>-->
[5b447b0]16<!-- <th scope="col">Занрови</th>-->
17 <th scope="col">Слика</th>
18
19 <th scope="col">Филмови</th>
20 <th scope="col"></th>
21 <th:block sec:authorize="isAuthenticated()">
22 <th scope="col"></th>
23 <th scope="col"></th>
24 <th scope="col"></th>
25
26 </th:block>
27
28 </tr>
29 </thead>
30 <tbody>
31 <tr th:each="person : ${persons}" class="elements">
[f25e8dd]32 <td><a th:href="@{'/persons/{id}' (id=${person.getPersonId()})}" th:text="${person.getName() + ' ' + person.getSurname()}"></a></td>
33 <!--<td th:text="${person.getSurname()}"></td>-->
[5b447b0]34 <td th:text="${person.getDateOfBirth()}"></td>
[f25e8dd]35 <!--<td th:text="${person.getDescription()}"></td>-->
[5b447b0]36
37<!-- <td>-->
38<!-- <div th:each="g: ${person.getGenres()}" th:text="${g.getGenre().genreType }"></div>-->
39<!-- </td>-->
40 <td><img th:src="${person.getImageUrl()}" style="width: 20%; height: 20%"/></td>
41 <td>
42 <div th:each="m: ${person.getMovieActors().size() > 0 ? person.getMovieActors() : person.getMovies()}"
43 th:text="${m.getClass().getName() == 'com.wediscussmovies.project.model.relation.MovieActors' ? m.getMovie().getTitle() : m.getTitle()} "></div>
44 </td>
45 <td> <a class="btn btn-primary" th:href="@{'discussions/all/{id}?type=P' (id=${person.getPersonId()})}" >Прегледај дискусии</a></td>
46 <th:block sec:authorize="isAuthenticated()">
47 <td>
[c02189f]48 <a class="btn btn-secondary button-add-grade-person" th:person-id="${person.getPersonId()}">Остави оценка</a>
[5b447b0]49 </td>
50 <td>
[c02189f]51 <a class="btn btn-warning" th:href="@{'persons/edit/{personId}' (personId = ${person.getPersonId()})}">Промени</a>
[5b447b0]52 </td>
53 <td>
[c02189f]54 <a class="btn btn-danger button-delete-actor" th:person-id="${person.getPersonId()}">Избриши</a>
[5b447b0]55
56 </td>
[3c0f9a9]57
58
[5b447b0]59 </th:block>
60
61 </tr>
62 </tbody>
63 </table>
64 </div>
65 </div>
66 </div>
67
68</div>
Note: See TracBrowser for help on using the repository browser.