Ignore:
Timestamp:
09/22/22 18:11:04 (2 years ago)
Author:
Leona <leona@…>
Branches:
master
Children:
6791e89
Parents:
e5de1b0
Message:

books & rooms showing

Location:
src/main/resources/templates
Files:
2 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/book.html

    re5de1b0 r3692f0d  
    2525        </li>
    2626        <li class="nav-item m-auto">
    27           <a class="nav-link active" href="/info">ИНФОРМАЦИИ</a>
     27          <a class="nav-link active" href="/book">КНИГИ</a>
    2828        </li>
    2929        <li class="nav-item m-auto">
    30           <a class="nav-link active" href="/guide">УПАТСТВО</a>
    31         </li>
    32         <li class="nav-item m-auto">
    33           <a class="nav-link active" href="/book">КНИГИ</a>
     30          <a class="nav-link active" href="/room">ПРОСТОРИИ</a>
    3431        </li>
    3532      </ul>
     
    4744<div class="container">
    4845  <section class="jumbotron text-center">
    49     <h2 class="jumbotron-heading">Достапни книги</h2>
     46    <h2 class="jumbotron-heading"><b>Достапни книги</b></h2>
    5047  </section>
    5148
     
    6057          <table class="table table-striped">
    6158            <thead>
    62             <th scope="col">Book Name</th>
    63             <th scope="col">Price</th>
    64             <th scope="col">Price Late</th>
    65             <th scope="col">Genre</th>
    66             <th scope="col">Library</th>
     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>
    6766            </thead>
    6867            <tbody>
    69             <tr>
    70               <td></td>
     68            <tr th:each="book : ${books}" class="book">
     69              <td th:text="${book.getBookName()}"></td>
     70              <td th:text="${book.getBookNumber()}"></td>
     71              <td th:text="${book.getBookPrice()}"></td>
     72              <td th:text="${book.getBookPriceLate()}"></td>
     73              <td th:each="writer : ${writers}" th:if="${book.getWriters().contains(writer)}" th:text="${writer.getWriterName()}"></td>
     74              <td th:each="genre : ${genres}" th:if="${book.getGenre().contains(genre)}" th:text="${genre.getGenreName()}"></td>
     75              <td><a class="btn btn-primary btn-sm ml-3" href="/resBook">Резервација</a>
     76                <a class="btn btn-primary btn-sm ml-3" href="/online">Симнување</a></td>
    7177            </tr>
    7278            </tbody>
     
    7682      </div>
    7783    </div>
    78   </div>
    79 
    80   <div>
    81     <table>
    82 
    83       <!-- For each news you should have one <tr> like below -->
    84       <tr class="item" th:each="book:${book}">
    85         <td th:text="${book.bookName}">[book.bookName]</td>
    86         <td th:text="${book.bookPrice}">[book.bookPrice]</td>
    87         <td th:text="${book.bookPriceLate}">[book.bookPriceLate]</td>
    88         <td th:text="${book.getGenreOfBook()}">[book.genreOfBook]</td>
    89         <td th:text="${book.getLibraryOfBook()}">[book.libraryOfBook]</td>\
    90 
    91       </tr>
    92     </table>
    9384  </div>
    9485
  • src/main/resources/templates/register.html

    re5de1b0 r3692f0d  
    2525                </li>
    2626                <li class="nav-item m-auto">
    27                     <a class="nav-link active" href="info.html">ИНФОРМАЦИИ</a>
     27                    <a class="nav-link active" href="/info">ИНФОРМАЦИИ</a>
    2828                </li>
    2929                <li class="nav-item m-auto">
    30                     <a class="nav-link active" href="guide.html">УПАТСТВО</a>
     30                    <a class="nav-link active" href="/guide">УПАТСТВО</a>
    3131                </li>
    3232            </ul>
Note: See TracChangeset for help on using the changeset viewer.