1 | <!DOCTYPE html>
|
---|
2 | <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
|
---|
3 | <head>
|
---|
4 | <meta charset="UTF-8"/>
|
---|
5 | <title>Books</title>
|
---|
6 | <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
---|
7 | <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
---|
8 | <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
---|
9 | <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
---|
10 | </head>
|
---|
11 | <body>
|
---|
12 | <!--Header-->
|
---|
13 | <nav class="navbar navbar-expand-md navbar-dark bg-dark">
|
---|
14 | <div class="container">
|
---|
15 | <a class="navbar-brand" href="/home">ONLINE LIBRARY</a>
|
---|
16 | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
|
---|
17 | aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
|
---|
18 | <span class="navbar-toggler-icon"></span>
|
---|
19 | </button>
|
---|
20 |
|
---|
21 | <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault">
|
---|
22 | <ul class="navbar-nav m-auto">
|
---|
23 | <li class="nav-item m-auto">
|
---|
24 | <a class="nav-link active" href="/home">ПОЧЕТНА</a>
|
---|
25 | </li>
|
---|
26 | <li class="nav-item m-auto">
|
---|
27 | <a class="nav-link active" href="/book">КНИГИ</a>
|
---|
28 | </li>
|
---|
29 | <li class="nav-item m-auto">
|
---|
30 | <a class="nav-link active" href="/room">ПРОСТОРИИ</a>
|
---|
31 | </li>
|
---|
32 | </ul>
|
---|
33 |
|
---|
34 | <form class="form-inline my-2 my-lg-0">
|
---|
35 | <a class="btn btn-primary btn-sm ml-3" href="/logout">
|
---|
36 | <i class="fa fa-shopping-cart"></i> ОДЈАВИ СЕ
|
---|
37 | </a>
|
---|
38 | </form>
|
---|
39 | </div>
|
---|
40 | </div>
|
---|
41 | </nav>
|
---|
42 |
|
---|
43 | <!--Main-->
|
---|
44 | <div class="container">
|
---|
45 | <section class="jumbotron text-center">
|
---|
46 | <h2 class="jumbotron-heading"><b>Достапни книги</b></h2>
|
---|
47 | </section>
|
---|
48 |
|
---|
49 | <div th:if="${hasError}">
|
---|
50 | <h5 class="text-center text-danger" th:text="${error}"></h5>
|
---|
51 | </div>
|
---|
52 |
|
---|
53 | <div class="container mb-4">
|
---|
54 | <div class="row">
|
---|
55 | <div class="col-12" >
|
---|
56 | <div class="table-responsive">
|
---|
57 | <table class="table table-striped">
|
---|
58 | <thead>
|
---|
59 | <th scope="col">Име на книга</th>
|
---|
60 | <th scope="col">Број на книга</th>
|
---|
61 | <th scope="col">Цена</th>
|
---|
62 | <th scope="col">Цена со задоцнување</th>
|
---|
63 | <!-- <th scope="col">Автор</th> -->
|
---|
64 | <!-- <th scope="col">Жанр</th> -->
|
---|
65 | <th scope="col"></th>
|
---|
66 | <th scope="col"></th>
|
---|
67 | </thead>
|
---|
68 | <tbody>
|
---|
69 | <tr th:each="book : ${books}" class="book">
|
---|
70 | <td th:text="${book.getBookName()}"></td>
|
---|
71 | <td th:text="${book.getBookNumber()}"></td>
|
---|
72 | <td th:text="${book.getBookPrice()}"></td>
|
---|
73 | <td th:text="${book.getBookPriceLate()}"></td>
|
---|
74 | <!-- <td th:each="writer : ${writers}" th:if="${book.getWriters().contains(writer)}" th:text="${writer.getWriterName()}"></td> -->
|
---|
75 | <!-- <td th:each="genre : ${genres}" th:if="${book.getGenre().contains(genre)}" th:text="${genre.getGenreName()}"></td> -->
|
---|
76 | <td><a class="btn btn-primary btn-sm ml-3" href="/resBook">Резервација</a>
|
---|
77 | <a class="btn btn-primary btn-sm ml-3" href="/online">Симнување</a></td>
|
---|
78 | </tr>
|
---|
79 | </tbody>
|
---|
80 |
|
---|
81 | </table>
|
---|
82 | </div>
|
---|
83 | </div>
|
---|
84 | </div>
|
---|
85 | </div>
|
---|
86 |
|
---|
87 | </div>
|
---|
88 |
|
---|
89 |
|
---|
90 |
|
---|
91 | <!-- Footer -->
|
---|
92 | <footer class="text-black-50 mt-xl-5">
|
---|
93 | <div class="container">
|
---|
94 | <div class="row">
|
---|
95 | <div class="col-md-3 col-lg-1 col-xl-5">
|
---|
96 | <h5>Contact</h5>
|
---|
97 | <hr class="bg-white mb-2 mt-0 d-inline-block mx-auto w-25">
|
---|
98 | <ul class="list-unstyled">
|
---|
99 | <li><i class="fa fa-envelope mr-2"></i>onlinelibrary@library.com</li>
|
---|
100 | <li><i class="fa fa-phone mr-2"></i> + 33 12 14 15 16</li>
|
---|
101 | <li><i class="fa fa-print mr-2"></i> + 33 12 14 15 16</li>
|
---|
102 | </ul>
|
---|
103 | </div>
|
---|
104 | </div>
|
---|
105 | </div>
|
---|
106 | </footer>
|
---|
107 | </body>
|
---|
108 | </html> |
---|