Changeset 6791e89 for src/main/resources


Ignore:
Timestamp:
09/22/22 21:16:07 (2 years ago)
Author:
Leona <leona@…>
Branches:
master
Parents:
3692f0d
Message:

working on reservations part

Location:
src/main/resources
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/application.properties

    r3692f0d r6791e89  
    1 server.port=9091
     1server.port=9090
    22
    33# Datasource configuration
    4 spring.datasource.url=jdbc:postgresql://localhost:5432/parkingDB
    5 spring.datasource.username=parkDB
    6 spring.datasource.password=parkdb123
     4spring.datasource.url=jdbc:postgresql://localhost:9999/db_202122z_va_prj_vintagelibrary
     5spring.datasource.username=db_202122z_va_prj_vintagelibrary_owner
     6spring.datasource.password=45dc6bb3181a
    77
    88# Default connection pool
     
    1616spring.jpa.show-sql=true
    1717
    18 
    19 spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyComponentPathImpl
     18spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
     19spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
    2020
    2121spring.jpa.open-in-view=false
  • src/main/resources/templates/book.html

    r3692f0d r6791e89  
    6161            <th scope="col">Цена</th>
    6262            <th scope="col">Цена со задоцнување</th>
    63             <th scope="col">Автор</th>
    64             <th scope="col">Жанр</th>
     63            <!-- <th scope="col">Автор</th>  -->
     64           <!-- <th scope="col">Жанр</th> -->
     65            <th scope="col"></th>
    6566            <th scope="col"></th>
    6667            </thead>
     
    7172              <td th:text="${book.getBookPrice()}"></td>
    7273              <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>
     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> -->
    7576              <td><a class="btn btn-primary btn-sm ml-3" href="/resBook">Резервација</a>
    7677                <a class="btn btn-primary btn-sm ml-3" href="/online">Симнување</a></td>
  • src/main/resources/templates/login.html

    r3692f0d r6791e89  
    3636</nav>
    3737
     38<section class="jumbotron text-center">
    3839<div class="container">
    3940    <form class="form-signin mt-xl-5" method="post" action="/login">
    40         <h2 class="form-signin-heading">Најава</h2>
     41        <h2 class="form-signin-heading"><b>Најава</b></h2>
    4142        <p>
    4243            <label for="username" class="sr-only">Корисничко име:</label>
     
    5354        <button class="btn btn-lg btn-primary btn-block" type="submit">Најави се</button>
    5455    </form>
     56    <br>
    5557    <a href="/register" class="btn btn-block btn-light">Регистрирај се тука</a>
    5658</div>
     59</section>
    5760
    5861<!-- Footer -->
  • src/main/resources/templates/register.html

    r3692f0d r6791e89  
    4343    <div class="container">
    4444
    45         <form class="form-signin mt-xl-2 col-md-8" method="post" action="/register">
    46             <h2 class="form-signin-heading">Регистрација</h2>
     45        <form class="form-signin mt-xl-5" method="post" action="/register">
     46            <h2 class="form-signin-heading"><b>Регистрација</b></h2>
    4747            <br>
    4848            <p>
     
    9494
    9595    </div>
    96 </section>
     96
    9797
    9898<!-- Footer -->
  • src/main/resources/templates/resBook.html

    r3692f0d r6791e89  
    4242
    4343<!--Main-->
    44 <div class="container">
    45   <section class="jumbotron text-center">
    46     <h2 class="jumbotron-heading"><b>Резервација на книга</b></h2>
    47   </section>
     44<section class="jumbotron text-center">
     45
    4846
    4947  <div th:if="${hasError}">
     
    5149  </div>
    5250
    53   <div class="container mb-4">
    54     <div class="row">
     51  <div class="container">
     52    <form class="form-signin mt-xl-5" method="post" action="/resBook">
    5553
    56     </div>
     54      <h2 class="jumbotron-heading"><b>Резервација на книга</b></h2>
     55
     56      <div class="container mb-4">
     57        <div class="row">
     58          <p>
     59            <label for="bookName" class="sr-only" th:text="${book.getId()}"></label>
     60            <input type="text" id="bookName" name="bookName" class="form-control" th:placeholder="${book.getBookName()}" required="" disabled >
     61          </p>
     62        </div>
     63      </div>
     64
     65      <div class="container mb-4">
     66        <div class="row">
     67          <p>Датум земање книга
     68            <label for="takeDate" class="sr-only">Датум земање книга</label>
     69            <input type="date" id="takeDate" name="takeDate" class="form-control" placeholder="Take Date" required="" autofocus="">
     70          </p>
     71          <br>
     72          <p>Датум враќање книга
     73            <label for="returnDate" class="sr-only">Датум враќање книга</label>
     74            <input type="date" id="returnDate" name="returnDate" class="form-control" placeholder="Return Date" required="" autofocus="">
     75          </p>
     76        </div>
     77      </div>
     78    </form>
     79    <button class="btn btn-lg btn-primary btn-block" type="submit">ПОТВРДИ РЕЗЕРВАЦИЈА</button>
     80    <br>
     81    <a href="/book" class="btn btn-block btn-light">ОТКАЖИ РЕЗЕРВАЦИЈА</a>
    5782  </div>
    5883
    59 </div>
     84</section>
    6085
    6186<!-- Footer -->
Note: See TracChangeset for help on using the changeset viewer.