source: src/main/resources/templates/recept.html@ 501396e

Last change on this file since 501396e was 501396e, checked in by Blazho <aleksandar.blazhevski@…>, 5 months ago

added missing files

  • Property mode set to 100644
File size: 2.5 KB
Line 
1<!DOCTYPE html>
2<html xmlns="http://www.w3.org/1999/xhtml"
3 xmlns:th="http://www.thymeleaf.org">
4<head>
5 <meta charset="UTF-8">
6 <title>Home page</title>
7 <!-- Add Bootstrap CSS link -->
8 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
9 <style>
10 img{
11 margin: 16px;
12 border-style: groove;
13 }
14 </style>
15</head>
16<body>
17 <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
18 <a class="navbar-brand" th:href="@{/}">
19 CookBook
20 </a>
21 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
22 <span class="navbar-toggler-icon"></span>
23 </button>
24 <div class="collapse navbar-collapse" id="navbarNav">
25 <ul class="navbar-nav ml-auto">
26 <li class="nav-item active">
27 <a class="nav-link" th:href="@{/}">Home <span class="sr-only">(current)</span></a>
28 </li>
29 <li class="nav-item">
30 <a class="nav-link" href="#">About</a>
31 </li>
32 <li class="nav-item">
33 <a class="nav-link" href="#">Contact</a>
34 </li>
35 </ul>
36 </div>
37</nav>
38
39
40
41 <div class="container mt-4">
42 <h1 th:text="${recept.recIme}"></h1>
43
44 <h4 th:text="${recept.srednaOcena}"></h4>
45
46 <div class="row">
47 <div class="col-12">
48 <h6>Pictures</h6>
49 </div>
50 <div class="col-12">
51 <img th:each="slika : ${sliki}" th:src="${slika.pic}" class="img-fluid" alt="Recipe Image" width="200px" height="200px">
52 </div>
53 </div>
54
55 <div>
56 <h5>Состојки</h5>
57 <div th:if="${sostojki.size() == 0}">Состојките не се додадени!</div>
58 <ul>
59 <li th:each="sostojka : ${sostojki}" th:text="${sostojka.sNaziv}"></li>
60 </ul>
61 </div>
62
63
64 <div>
65 <h5>Постапка</h5>
66 <p class="mt-4" th:text="${recept.postapka}"></p>
67 </div>
68
69
70 <div class="mt-4">KOMENTARI TO DO</div>
71 </div>
72
73<!-- Add Bootstrap JS and Popper.js scripts (required for Bootstrap components) -->
74<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
75<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
76<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
77</body>
78</html>
Note: See TracBrowser for help on using the repository browser.