source: src/main/resources/templates/product_info.html@ d14176d

main
Last change on this file since d14176d was d14176d, checked in by HristijanMitic00 <hristijan.mitic.01@…>, 12 months ago

First commit

  • Property mode set to 100644
File size: 1.9 KB
Line 
1<div xmlns:th="http://www.thymeleaf.org" >
2
3 <form class="block" th:method="post" th:action="@{'/products/{id}/add-to-cart' (id = ${product.getIdProdukt()})}">
4 <input type="hidden" name="idKorisnik" id="idKorisnik" th:value="${#request.getRemoteUser()}">
5 <input type="hidden" name="cena" id="cena" th:value="${price.getIznos()}">
6 <label style="margin: auto; text-align: center; display: block; padding-top: 20px">Product name</label>
7 <p style="margin: auto; text-align: center" id="name" name="name" th:value="${product.getIme()}" th:text="${product.getIme()}"></p>
8 <label style="margin: auto; text-align: center; display: block; padding-top: 20px">Product description</label>
9 <p style="margin: auto; text-align: center" name="description" id="description" th:value="${product.getOpis()}" th:text="${product.getOpis()}"></p>
10 <label style="margin: auto; text-align: center; display: block ; padding-top: 20px">price</label>
11 <p style="margin: auto; text-align: center" name="price" id="price" th:value="${price.getIznos()}" th:text="${price.getIznos()}"></p>
12 <label style="margin: auto; text-align: center; display: block; padding-top: 20px">Category</label>
13 <p style="margin: auto; text-align: center;" name="category" id="category" th:value="${kat.getIme()}" th:text="${kat.getIme()}"></p>
14 <label style="margin: auto; text-align: center; display: block; padding-top: 20px">Quantity</label>
15 <input type="number" name="quantity" id="quantity" style="margin: auto; text-align: center; display: block" required="required">
16
17
18 <button style="margin: auto; text-align: center; display: block; padding-top: 20px" id="submit" type="submit" class="btn btn-primary">Submit</button>
19 <a style="margin: auto; text-align: center; display: block; padding-top: 20px; width: 75px" type="button" class="btn btn-primary" href="/products">Back</a>
20
21 </form>
22
23
24</div>
Note: See TracBrowser for help on using the repository browser.