Commit 01bcf14d by Milovan Samardzic

zahteviFront

parent 2b1266fb
...@@ -146,7 +146,8 @@ ...@@ -146,7 +146,8 @@
th:if="${zahtevi[oglasStat.count - 1].status.toString() != 'ZAVRSEN'}"> th:if="${zahtevi[oglasStat.count - 1].status.toString() != 'ZAVRSEN'}">
<h4 th:text="${zahtevi[oglasStat.count - 1].datum + ' ' + zahtevi[oglasStat.count - 1].vreme}" <h4 th:text="${zahtevi[oglasStat.count - 1].datum + ' ' + zahtevi[oglasStat.count - 1].vreme}"
th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'POTVRDJEN'}"></h4> th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'POTVRDJEN'}"></h4>
<form method="GET" th:if="${zahtevi[oglasStat.count - 1].status.toString() != 'POTVRDJEN'}" <form method="GET"
th:if="${zahtevi[oglasStat.count - 1].status.toString() != 'POTVRDJEN'}"
th:action="@{/oglas-edit/{oglasId}/obrisi-zahtev/{zahtevId}(oglasId=${oglas.oglasId}, zahtevId=${zahtevi[oglasStat.count - 1].zahtevId})}"> th:action="@{/oglas-edit/{oglasId}/obrisi-zahtev/{zahtevId}(oglasId=${oglas.oglasId}, zahtevId=${zahtevi[oglasStat.count - 1].zahtevId})}">
<button type="submit" class="btn btn-danger" <button type="submit" class="btn btn-danger"
th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'CEKANJE'}"> th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'CEKANJE'}">
...@@ -160,14 +161,26 @@ ...@@ -160,14 +161,26 @@
</div> </div>
<div class="col-5 d-flex align-items-center flex-row justify-content-center" <div class="col-5 d-flex align-items-center flex-row justify-content-center"
th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'ZAVRSEN'}"> th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'ZAVRSEN'}">
<div class="col-8 h-100"> <div th:each="komentar: ${komentari}">
<p th:text="${komentar.toString()}"></p>
</div>
<form method="post" th:action="@{/profile/moji-zahtevi/sacuvaj-komentar}" th:object="${komentari[oglasStat.count - 1]}">
<div class="col-4 h-100">
<div class="w-100 h-100 d-flex justify-content-center align-items-center"> <div class="w-100 h-100 d-flex justify-content-center align-items-center">
<textarea id="form7" class="md-textarea form-control h-75" rows="3"></textarea> <input type="text" th:field="${komentari[oglasStat.count - 1].komentar}"/>
</div>
</div> </div>
<div class="col-4">
<input type="radio" name="ocenaRadio"/>
<input type="radio" name="ocenaRadio"/>
<input type="radio" name="ocenaRadio"/>
<input type="radio" name="ocenaRadio"/>
<input type="radio" name="ocenaRadio"/>
</div> </div>
<div class="col-4"> <div class="col-4">
<button type="submit" class="btn btn-secondary">Postavi komentar</button> <button type="submit" class="btn btn-secondary">Postavi komentar</button>
</div> </div>
</form>
</div> </div>
</div> </div>
</div> </div>
...@@ -177,7 +190,6 @@ ...@@ -177,7 +190,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="container-fluid pb-0 mb-0 justify-content-center text-light "> <div class="container-fluid pb-0 mb-0 justify-content-center text-light ">
<footer> <footer>
...@@ -249,6 +261,7 @@ ...@@ -249,6 +261,7 @@
<script src="https://kit.fontawesome.com/51d1fadef3.js" crossorigin="anonymous"></script> <script src="https://kit.fontawesome.com/51d1fadef3.js" crossorigin="anonymous"></script>
<script src="/js/main.js"></script> <script src="/js/main.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script> <script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-star-rating/4.1.2/js/star-rating.min.js"></script>
<script> <script>
AOS.init(); AOS.init();
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment