source: Git/src/main/resources/templates/movieShow.html@ 0226942

main
Last change on this file since 0226942 was c02189f, checked in by Petar Partaloski <ppartaloski@…>, 3 years ago

Added new core functionalities, fixed bugs and improved visual clarity

  • Property mode set to 100644
File size: 5.6 KB
Line 
1<style>
2 #admin-buttons button{
3 float:left;
4 margin: 20px !important;
5 }
6
7 #admin-buttons{
8 width: 60%;
9 margin: auto;
10 }
11</style>
12
13<div xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml" style="width: 80%; margin: auto">
14 <div>
15 <div style="width: 30%; margin-right: 10px; padding:20px; border-right: 3px solid black; border-radius: 10px; float:left" id="image-movie-section">
16 <img th:src="${movie.getImageUrl()}" style="width: 90%; height: auto; clear: both; margin-bottom: 20px">
17 <div id="admin-buttons">
18 <a class="btn btn-primary" th:href="@{'/discussions/all/{id}?type=M' (id=${movie.getMovieId()})}" >Прегледај дискусии</a>
19 <th:block sec:authorize="isAuthenticated()" >
20 <div>
21 <a class="btn btn-success button-add-favourite-list" th:movie-id="${movie.getMovieId()}" th:user-id="${user.getUserId()}" th:if="${!likedMovies.contains(movie)}">❤</a>
22 <a class="btn btn-danger button-remove-favourite-list" th:movie-id="${movie.getMovieId()}" th:user-id="${user.getUserId()}" th:if="${likedMovies.contains(movie)}">💔</a>
23 </div>
24 <a class="btn btn-secondary button-add-grade-movie" th:movie-id="${movie.getMovieId()}">Остави оценка</a>
25 <a class="btn btn-warning" th:href="@{'/movies/{id}/edit' (id=${movie.getMovieId()})}">Промени</a>
26 <a class="btn btn-danger button-delete-movie" th:movie-id="${movie.getMovieId()}">Избриши филм</a>
27 </th:block>
28 </div>
29 </div>
30
31 <div style="width: 60%; margin-left: 10px; padding:20px; float:left">
32 <h1 th:text="${movie.getTitle()}" style="text-align: center; padding:10px; background-color: rgba(64,64,64,0.5); color:white; border-radius: 10px 0px"></h1>
33 <hr>
34 <h3>
35 <span>Режисер:</span>
36 <a th:if="${movie.getDirector() != null}" th:text="${movie.getDirector().getName() + ' ' + movie.getDirector().getSurname()}" th:href="@{'/persons/{id}' (id=${movie.getDirector().getPersonId()})}"></a>
37 <span th:if="${movie.getDirector() == null}"> / </span>
38 </h3>
39 <h3 th:text="${'IMDB оцена: ' + movie.getImdbRating()}"></h3>
40 <h3 th:text="${'Прикажан на: ' + movie.getDateFormatted()}"></h3>
41
42 <div style="background-color: rgba(200,200,200,0.5); border-radius: 10px; padding:15px; ">
43 <h3>Краток опис:</h3>
44 <p th:text="${movie.getDescription()}" style="text-align: justify"></p>
45 </div>
46
47 <div id="likes-showcase">
48 <h4 style="text-align: center">
49 <span>Филмот му се допаднал на </span>
50 <strong th:text="${likes}" id="movie_likes_count"></strong>
51 <span> корисници</span>
52 </h4>
53 </div>
54
55 <div class="person-movies-list genres-listing">
56 <h3>Жанрови:</h3>
57 <ul>
58 <li th:each="genre: ${movie.getGenres()}" th:text="${genre.getGenre().getGenreType()}"></li>
59 </ul>
60 </div>
61 <div class="person-movies-list">
62 <h3>Актери:</h3>
63 <ul>
64 <li th:each="actor: ${movie.getActors()}"><a th:text="${actor.getPerson().getName() + ' ' + actor.getPerson().getSurname()}" th:href="@{'/persons/{id}' (id=${actor.getPerson().getPersonId()})}" ></a></li>
65 </ul>
66 </div>
67
68 </div>
69 </div>
70
71 <hr>
72 <div style="width: 45%; margin: 25px; float:left; background-color: rgb(200,200,200); padding: 10px; border-radius: 5px">
73 <h2>
74 <span>Бројот на оцени кои филмот ги добил:</span>
75 <span th:text="${movie.getRates().size()}"></span>
76 </h2>
77 <hr>
78 <div th:each="rating: ${movie.getRates()}" style="margin-bottom: 10px; border: 2px solid gray; border-radius: 10px; background-color: lightblue; padding: 10px; border-radius: 10px; min-height: 130px;">
79 <div style="width: 60%; float:left;">
80 <p th:text="${rating.getReason()}" style="text-align: justify"></p>
81 </div>
82 <div style="width: 30%; float:right; background-color: darkorange; border-radius: 10px 30px; color: whitesmoke; padding: 10px;">
83 <h2 style="text-align: center">Оценет:</h2>
84 <p th:text="${rating.getStarsRated() + ' од 10'}" style="text-align: center"></p>
85 </div>
86 </div>
87 </div>
88 <div style="width: 45%; margin: 25px; float:left; background-color: rgb(200,200,200); padding: 10px; border-radius: 5px">
89 <h2>
90 <span>Лајковите кои филмот ги добил:</span>
91 </h2>
92 <hr>
93 <div th:each="liked: ${movie.getLikes()}" style="margin-bottom: 10px; border: 2px solid gray; border-radius: 10px; background-color: lightblue; padding: 10px; border-radius: 10px; min-height: 60px;">
94 <div style="width: 100%; float:left;">
95 <h3 style="text-align: center">
96 <span th:text="${liked.getUser().getName() + ' ' + liked.getUser().getSurname()}"></span>
97 <span style="color: green; font-size: 100%" >✔</span>
98 </h3>
99 </div>
100 </div>
101 </div>
102</div>
Note: See TracBrowser for help on using the repository browser.