Commit 09ef0aa2 by Nikola Markovic

moji zahtevi - front

parent c3b13f52
<!DOCTYPE html>
<html lang="en">
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
......@@ -114,23 +114,27 @@
<h2 th:if="${oglasi.size() == 0}" class="text-center">Jos niste poslali nijedan zahtev!</h2>
<div class="card mb-3" th:each="oglas: ${oglasi}" style="background: transparent">
<div class="row no-gutters">
<div class="col-md-1">
<div th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'POTVRDJEN'}"
class="col-md-4 h-100"
style="background-color: green;border-radius: 5px"></div>
<div th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'CEKANJE'}"
class="col-md-4 h-100"
style="background-color: yellow;border-radius: 5px"></div>
<div th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'ZAVRSEN'}"
class="col-md-4 h-100" style="background-color: blue;border-radius: 5px"></div>
<div th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'ODBIJEN'}"
class="col-md-4 h-100" style="background-color: red;border-radius: 5px"></div>
</div>
<div class="col-md-2 d-flex justify-content-center align-items-center">
<img
th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'POTVRDJEN'}"
th:src="@{'data:image/png;charset=utf-8;base64,'+${slike[oglasStat.count - 1].slikaCode}}"
alt="slika korisnika"
style="width: 150px;height: 150px;border-radius: 50%;object-fit: cover; border: green 5px solid">
<img
th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'CEKANJE'}"
th:src="@{'data:image/png;charset=utf-8;base64,'+${slike[oglasStat.count - 1].slikaCode}}"
alt="slika korisnika"
style="width: 150px;height: 150px;border-radius: 50%;object-fit: cover; border: yellow 5px solid">
<img
th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'ZAVRSEN'}"
th:src="@{'data:image/png;charset=utf-8;base64,'+${slike[oglasStat.count - 1].slikaCode}}"
alt="slika korisnika"
style="width: 150px;height: 150px;border-radius: 50%;object-fit: cover; border: blue 5px solid">
<img
th:if="${zahtevi[oglasStat.count - 1].status.toString() == 'ODBIJEN'}"
th:src="@{'data:image/png;charset=utf-8;base64,'+${slike[oglasStat.count - 1].slikaCode}}"
alt="slika korisnika"
style="width: 150px;height: 150px;border-radius: 50%;object-fit: cover;">
style="width: 150px;height: 150px;border-radius: 50%;object-fit: cover; border: red 5px solid">
</div>
<div th:class="${zahtevi[oglasStat.count - 1].status.toString() == 'ZAVRSEN'} ? 'col-md-4' : 'col-md-7'">
<div class="card-body">
......
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