Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SkuciSe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tim 2 - 2022
SkuciSe
Commits
d0baa575
Commit
d0baa575
authored
Sep 19, 2022
by
Milovan Samardzic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mojiZahteviIOglasKomentar
parent
4ac943c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
179 additions
and
143 deletions
+179
-143
SkuciSe/src/main/resources/static/css/oglasiStyle.css
+0
-1
SkuciSe/src/main/resources/templates/moji-zahtevi.html
+12
-12
SkuciSe/src/main/resources/templates/oglas.html
+167
-130
No files found.
SkuciSe/src/main/resources/static/css/oglasiStyle.css
View file @
d0baa575
...
...
@@ -332,7 +332,6 @@ h3{
.border-bottom-grey
{
border-bottom
:
1px
solid
#c0c4c8
;
}
.gradient-bg
{
background
:
linear-gradient
(
90deg
,
rgba
(
255
,
255
,
255
,
1
)
0%
,
rgba
(
251
,
251
,
251
,
1
)
10%
,
rgba
(
251
,
251
,
251
,
1
)
91%
,
rgba
(
255
,
255
,
255
,
1
)
100%
);
}
...
...
SkuciSe/src/main/resources/templates/moji-zahtevi.html
View file @
d0baa575
...
...
@@ -100,7 +100,7 @@
<div
class=
"row w-100 h-50"
style=
"margin-top:50px;"
>
<div
class=
"row"
>
<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=
"card mb-3"
th:each=
"oglas: ${oglasi}"
style=
"background: transparent"
th:if=
"${!zahtevi[oglasStat.index].korisnikKom}"
>
<div
class=
"row"
>
<div
class=
"col-lg-2 col-md-3 col-sm-2 col-xs-2 d-flex justify-content-center align-items-center"
>
<img
...
...
@@ -157,7 +157,7 @@
</button>
</form>
</div>
<div
class=
"col-lg-7 col-md-5 col-sm-7 col-xs-7 d-flex align-items-center flex-row justify-content-center"
th:if=
"${
zahtevi[oglasStat.index].status.toString() == 'ZAVRSEN'
}"
>
<div
class=
"col-lg-7 col-md-5 col-sm-7 col-xs-7 d-flex align-items-center flex-row justify-content-center"
th:if=
"${
(zahtevi[oglasStat.index].status.toString() == 'ZAVRSEN')
}"
>
<form
method=
"get"
class=
"row w-100 h-100 flex-wrap flex-row"
th:action=
"@{/profile/moji-zahtevi/sacuvaj-komentar}"
th:if=
"${zahtevi[oglasStat.index].status.toString() == 'ZAVRSEN'}"
>
...
...
@@ -172,16 +172,16 @@
name=
"zahtevId"
style=
"display: none"
>
</div>
<div
class=
"starrating risingstar d-flex justify-content-center flex-row-reverse"
>
<input
type=
"radio"
id=
"star5
"
name=
"ocenaRadio"
value=
"5"
/><label
for=
"star5
"
title=
"5 star"
></label>
<input
type=
"radio"
id=
"star4
"
name=
"ocenaRadio"
value=
"4"
/><label
for=
"star4
"
title=
"4 star"
></label>
<input
type=
"radio"
id=
"star3
"
name=
"ocenaRadio"
value=
"3"
/><label
for=
"star3
"
title=
"3 star"
></label>
<input
type=
"radio"
id=
"star2
"
name=
"ocenaRadio"
value=
"2"
/><label
for=
"star2
"
title=
"2 star"
></label>
<input
type=
"radio"
id=
"star1
"
name=
"ocenaRadio"
value=
"1"
/><label
for=
"star1
"
title=
"1 star"
></label>
<input
type=
"radio"
th:id=
"${'star' + zahtevi[oglasStat.index].zahtevId + '-5'}
"
name=
"ocenaRadio"
value=
"5"
/><label
th:for=
"${'star' + zahtevi[oglasStat.index].zahtevId + '-5'}
"
title=
"5 star"
></label>
<input
type=
"radio"
th:id=
"${'star' + zahtevi[oglasStat.index].zahtevId + '-4'}
"
name=
"ocenaRadio"
value=
"4"
/><label
th:for=
"${'star' + zahtevi[oglasStat.index].zahtevId + '-4'}
"
title=
"4 star"
></label>
<input
type=
"radio"
th:id=
"${'star' + zahtevi[oglasStat.index].zahtevId + '-3'}
"
name=
"ocenaRadio"
value=
"3"
/><label
th:for=
"${'star' + zahtevi[oglasStat.index].zahtevId + '-3'}
"
title=
"3 star"
></label>
<input
type=
"radio"
th:id=
"${'star' + zahtevi[oglasStat.index].zahtevId + '-2'}
"
name=
"ocenaRadio"
value=
"2"
/><label
th:for=
"${'star' + zahtevi[oglasStat.index].zahtevId + '-2'}
"
title=
"2 star"
></label>
<input
type=
"radio"
th:id=
"${'star' + zahtevi[oglasStat.index].zahtevId + '-1'}
"
name=
"ocenaRadio"
value=
"1"
/><label
th:for=
"${'star' + zahtevi[oglasStat.index].zahtevId + '-1'}
"
title=
"1 star"
></label>
</div>
</div>
<div
class=
"col-lg-3 col-md-3 col-sm-3 col-xs-3 d-flex justify-content-center align-items-center"
>
...
...
SkuciSe/src/main/resources/templates/oglas.html
View file @
d0baa575
...
...
@@ -141,51 +141,54 @@
</div>
</div>
<div
class=
"col-lg-5 col-md-5 col-sm-5"
>
<div
class=
"col d-flex flex-column justify-content-center align-items-center border-bottom-grey gradient-bg"
>
<div
class=
"row"
>
<h1
th:text=
"${oglas.naslov}"
class=
"oglas-naslov"
></h1>
</div>
<div
class=
"row w-100 border-bottom-grey my-3 flex-row justify-content-end align-items-center pb-3"
>
<a
th:href=
"@{/korisnik/{korisnikId}(korisnikId=${vlasnik.korisnikId})}"
th:text=
"${vlasnik.ime + ' '+ vlasnik.prezime}"
class=
"text-right w-50"
style=
"color:#495056;text-decoration: none"
></a>
<div
style=
"width:50px; height:50px;"
>
<img
class=
"d-flex rounded-circle"
style=
"width: 50px; height:50px;"
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${vlasnik.getSlika()}}"
alt=
"Image Description"
>
</div>
</div>
<div
class=
"col d-flex justify-content-evenly"
style=
"color: #777;"
>
<h4
th:text=
"${oglas.cena*oglas.kvadratura} + '$'"
></h4>
<h4
th:text=
"${oglas.lokacija} + ', '+${grad}"
></h4>
</div>
<div
class=
"col d-flex flex-column justify-content-center align-items-center border-bottom-grey gradient-bg"
>
<div
class=
"row"
>
<h1
th:text=
"${oglas.naslov}"
class=
"oglas-naslov"
></h1>
</div>
<div
class=
"col border-bottom-grey"
>
<div
class=
"row mt-5"
>
<div
class=
"col"
>
<div
class=
"row"
th:if=
"${oglas.vrstaOglasaId == 1}"
><p>
Cena:
</p></div>
<div
class=
"row"
th:if=
"${oglas.vrstaOglasaId == 1}"
><p>
Cena po m2:
</p></div>
<div
class=
"row"
th:if=
"${oglas.vrstaOglasaId != 1}"
><p>
Kirija:
</p></div>
<div
class=
"row"
><p>
Povrsina:
</p></div>
<div
class=
"row"
><p>
Broj soba:
</p></div>
<div
class=
"row"
><p>
Grejanje:
</p></div>
<div
class=
"row"
><p>
Lift:
</p></div>
<div
class=
"row"
><p>
Namesten:
</p></div>
</div>
<div
class=
"col"
>
<div
class=
"row"
><p
th:text=
"${oglas.cena * oglas.kvadratura + '$'}"
th:if=
"${oglas.vrstaOglasaId == 1}"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.cena + '$'}"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.kvadratura + ' m2'}"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.brojSoba}"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.grejanje} ? 'Da':'Ne'"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.lift} ? 'Da':'Ne'"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.namesten} ? 'Da':'Ne'"
></p></div>
</div>
<div
class=
"row w-100 border-bottom-grey my-3 flex-row justify-content-end align-items-center pb-3"
>
<a
th:href=
"@{/korisnik/{korisnikId}(korisnikId=${vlasnik.korisnikId})}"
th:text=
"${vlasnik.ime + ' '+ vlasnik.prezime}"
class=
"text-right w-50"
style=
"color:#495056;text-decoration: none"
></a>
<div
style=
"width:50px; height:50px;"
>
<img
class=
"d-flex rounded-circle"
style=
"width: 50px; height:50px;"
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${vlasnik.getSlika()}}"
alt=
"Image Description"
>
</div>
</div>
<div
class=
"row mt-3 pl-3 pr-3"
>
<div
class=
"col d-flex justify-content-evenly"
style=
"color: #777;"
>
<h4
th:text=
"${oglas.cena*oglas.kvadratura} + '$'"
></h4>
<h4
th:text=
"${oglas.lokacija} + ', '+${grad}"
></h4>
</div>
</div>
<div
class=
"col border-bottom-grey"
>
<div
class=
"row mt-5"
>
<div
class=
"col"
>
<div
class=
"row"
th:if=
"${oglas.vrstaOglasaId == 1}"
><p>
Cena:
</p></div>
<div
class=
"row"
th:if=
"${oglas.vrstaOglasaId == 1}"
><p>
Cena po m2:
</p></div>
<div
class=
"row"
th:if=
"${oglas.vrstaOglasaId != 1}"
><p>
Kirija:
</p></div>
<div
class=
"row"
><p>
Povrsina:
</p></div>
<div
class=
"row"
><p>
Broj soba:
</p></div>
<div
class=
"row"
><p>
Grejanje:
</p></div>
<div
class=
"row"
><p>
Lift:
</p></div>
<div
class=
"row"
><p>
Namesten:
</p></div>
</div>
<div
class=
"col"
>
<p
class=
"text-wrap"
th:text=
"${'Opis: ' + oglas.opis}"
style=
"text-align: justify;"
></p>
<div
class=
"row"
><p
th:text=
"${oglas.cena * oglas.kvadratura + '$'}"
th:if=
"${oglas.vrstaOglasaId == 1}"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.cena + '$'}"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.kvadratura + ' m2'}"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.brojSoba}"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.grejanje} ? 'Da':'Ne'"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.lift} ? 'Da':'Ne'"
></p></div>
<div
class=
"row"
><p
th:text=
"${oglas.namesten} ? 'Da':'Ne'"
></p></div>
</div>
</div>
</div>
<div
class=
"row mt-3 pl-3 pr-3"
>
<div
class=
"col"
>
<p
class=
"text-wrap"
th:text=
"${'Opis: ' + oglas.opis}"
style=
"text-align: justify;"
></p>
</div>
</div>
<div
class=
"row"
th:if=
"${(loggedUser !=null) && (oglas.korisnikId != loggedUser.getKorisnik().korisnikId)}"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"zahtevDugme"
>
Zakazite obilazak
</button>
...
...
@@ -228,27 +231,36 @@
<div
class=
"row"
>
<div
class=
"col"
>
<img
class=
"d-flex rounded-circle"
style=
"height:100px; width:100px;"
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${korisniciKomentari[komentarStat.index].slika}}"
alt=
"Image Description"
>
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${korisniciKomentari[komentarStat.index].slika}}"
alt=
"Image Description"
>
</div>
<div
class=
"col d-flex flex-column justify-content-center align-items-end"
>
<a
th:href=
"@{/korisnik/{korisnikId}(korisnikId=${korisniciKomentari[komentarStat.index].korisnikId})}"
th:text=
"${korisniciKomentari[komentarStat.index].ime + ' '+ korisniciKomentari[komentarStat.index].prezime}"
class=
"text-right w-100"
style=
"color:#495056;text-decoration: none"
></a>
<a
th:href=
"@{/korisnik/{korisnikId}(korisnikId=${korisniciKomentari[komentarStat.index].korisnikId})}"
th:text=
"${korisniciKomentari[komentarStat.index].ime + ' '+ korisniciKomentari[komentarStat.index].prezime}"
class=
"text-right w-100"
style=
"color:#495056;text-decoration: none"
></a>
<br>
<span
class=
"g-color-gray-dark-v4 g-font-size-12"
th:text=
"${komentar.vreme + ' ' + komentar.datum}"
></span>
<span
class=
"g-color-gray-dark-v4 g-font-size-12"
th:text=
"${komentar.vreme + ' ' + komentar.datum}"
></span>
</div>
</div>
<p
class=
"pt-3"
th:text=
"${komentar.komentar}"
></p>
<div
class=
"starrating risingstar d-flex justify-content-end flex-row-reverse"
>
<img
src
th:onload=
"postaviZvezdice([[${komentar.ocena}]])"
>
<input
type=
"radio"
id=
"star5"
name=
"ocenaRadio"
value=
"5"
th:checked=
"${komentar.ocena == 5}"
disabled
/><label
<input
type=
"radio"
id=
"star5"
name=
"ocenaRadio"
value=
"5"
th:checked=
"${komentar.ocena == 5}"
disabled
/><label
for=
"star5"
title=
"5 star"
style=
"pointer-events:none"
></label>
<input
type=
"radio"
id=
"star4"
name=
"ocenaRadio"
value=
"4"
th:checked=
"${komentar.ocena == 4}"
disabled
/><label
<input
type=
"radio"
id=
"star4"
name=
"ocenaRadio"
value=
"4"
th:checked=
"${komentar.ocena == 4}"
disabled
/><label
for=
"star4"
title=
"4 star"
style=
"pointer-events:none"
></label>
<input
type=
"radio"
id=
"star3"
name=
"ocenaRadio"
value=
"3"
th:checked=
"${komentar.ocena == 3}"
disabled
/><label
<input
type=
"radio"
id=
"star3"
name=
"ocenaRadio"
value=
"3"
th:checked=
"${komentar.ocena == 3}"
disabled
/><label
for=
"star3"
title=
"3 star"
style=
"pointer-events:none"
></label>
<input
type=
"radio"
id=
"star2"
name=
"ocenaRadio"
value=
"2"
th:checked=
"${komentar.ocena == 2}"
disabled
/><label
<input
type=
"radio"
id=
"star2"
name=
"ocenaRadio"
value=
"2"
th:checked=
"${komentar.ocena == 2}"
disabled
/><label
for=
"star2"
title=
"2 star"
style=
"pointer-events:none"
></label>
<input
type=
"radio"
id=
"star1"
name=
"ocenaRadio"
value=
"1"
th:checked=
"${komentar.ocena == 1}"
disabled
/><label
<input
type=
"radio"
id=
"star1"
name=
"ocenaRadio"
value=
"1"
th:checked=
"${komentar.ocena == 1}"
disabled
/><label
for=
"star1"
title=
"1 star"
style=
"pointer-events:none"
></label>
</div>
</div>
...
...
@@ -261,97 +273,122 @@
<div
class=
"container container-main d-flex align-items-center justify-content-center flex-column"
th:object=
"${korisnici}"
th:if=
"${(loggedUser!=null)&&(loggedUser.korisnik.korisnikId == oglas.korisnikId)}"
>
<h1>
Spisak zahteva za obilazak
</h1>
<h1
th:if=
"${korisnici.size() > 0}"
>
Spisak zahteva za obilazak
</h1>
<div
class=
"row w-100 h-50"
style=
"margin-top:50px;"
>
<div>
<div
class=
"card mb-3"
th:each=
"korisnik: ${korisnici}"
style=
"background: transparent"
th:if=
"${!zahtevi[korisnikStat.index].vlasnikKom}"
>
<div
class=
"row"
>
<div
class=
"col ps-md-4"
>
<div
class=
"row"
>
<div
class=
"card mb-3"
th:each=
"korisnik: ${korisnici}"
style=
"background: transparent"
>
<div
class=
"row no-gutters"
>
<div
class=
"col-md-1"
>
</div>
<div
class=
"col-md-2 d-flex justify-content-center align-items-center"
>
<img
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'POTVRDJEN'}"
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${korisnik.getSlika()}}"
alt=
"slika korisnika"
style=
"width: 150px;height: 150px;border-radius: 50%;object-fit: cover;
<div
class=
"col-md-2 d-flex justify-content-center align-items-center"
>
<img
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'POTVRDJEN'}"
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${korisnik.getSlika()}}"
alt=
"slika korisnika"
style=
"width: 150px;height: 150px;border-radius: 50%;object-fit: cover;
border: green 5px solid"
>
<img
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'CEKANJE'}"
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${korisnik.getSlika()}}"
alt=
"slika korisnika"
style=
"width: 150px;height: 150px;border-radius: 50%;object-fit: cover;
<img
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'CEKANJE'}"
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${korisnik.getSlika()}}"
alt=
"slika korisnika"
style=
"width: 150px;height: 150px;border-radius: 50%;object-fit: cover;
border: yellow 5px solid"
>
<img
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'ZAVRSEN'}"
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${korisnik.getSlika()}}"
alt=
"slika korisnika"
style=
"width: 150px;height: 150px;border-radius: 50%;object-fit: cover;
<img
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'ZAVRSEN'}"
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${korisnik.getSlika()}}"
alt=
"slika korisnika"
style=
"width: 150px;height: 150px;border-radius: 50%;object-fit: cover;
border: blue 5px solid"
>
<img
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'ODBIJEN'}"
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${korisnik.getSlika()}}"
alt=
"slika korisnika"
style=
"width: 150px;height: 150px;border-radius: 50%;object-fit: cover;
<img
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'ODBIJEN'}"
th:src=
"@{'data:image/png;charset=utf-8;base64,'+${korisnik.getSlika()}}"
alt=
"slika korisnika"
style=
"width: 150px;height: 150px;border-radius: 50%;object-fit: cover;
border: red 5px solid"
>
</div>
<div
class=
"col-md-4"
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
th:text=
"${korisnik.getIme() + ' ' + korisnik.getPrezime()}"
></h5>
<p
class=
"card-text"
th:if=
"${zahtevi[korisnikStat.index].status.toString()=='POTVRDJEN'}"
>
Email:
<span
th:text=
"${korisnik.getEmail()}"
></span><br>
Telefon:
<span
th:text=
"${korisnik.getTelefon()}"
></span>
</p>
<button
class=
"btn btn-primary"
th:onclick=
"window.open('/chat?email='+[[${korisnik.getEmail()}]],'mywindow','menubar=1,width=650,height=900')"
>
Posaljite poruku
</button>
</div>
</div>
<div
class=
"col-md-3 d-flex flex-column justify-content-around align-items-center"
>
<div
class=
"card-body"
>
<p
class=
"card-text"
>
<span
th:text=
"${zahtevi[korisnikStat.index].datum + ' ' + zahtevi[korisnikStat.index].vreme}"
></span>
</p>
</div>
</div>
<div
class=
"col-md-3 d-flex flex-column justify-content-around align-items-center"
>
<form
method=
"get"
th:action=
"@{/oceni-korisnika}"
>
<input
type=
"text"
th:value=
"${loggedUser.korisnik.korisnikId}"
name=
"vlasnikId"
style=
"display: none"
>
<input
type=
"text"
th:value=
"${korisnik.korisnikId}"
name=
"korisnikId"
style=
"display: none"
>
<input
type=
"text"
th:value=
"${zahtevi[korisnikStat.index].zahtevId}"
name=
"zahtevId"
style=
"display: none"
>
<input
type=
"number"
name=
"ocenaRadio"
><br>
<input
type=
"text"
name=
"komentar"
><br>
<button
type=
"submit"
>
Oceni
</button>
</form>
</div>
<div
class=
"col-md-2 d-flex flex-column justify-content-around align-items-center"
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'CEKANJE'}"
>
<form
method=
"GET"
th:action=
"@{/oglas-edit/{oglasId}/prihvati-zahtev/{zahtevId}(oglasId=${zahtevi[korisnikStat.index].oglasId},zahtevId=${zahtevi[korisnikStat.index].zahtevId})}"
>
<button
type=
"submit"
class=
"btn btn-success"
>
Prihvati zahtev
</button>
</form>
<form
method=
"GET"
th:action=
"@{/oglas-edit/{oglasId}/odbi-zahtev/{zahtevId}(oglasId=${zahtevi[korisnikStat.index].oglasId},zahtevId=${zahtevi[korisnikStat.index].zahtevId})}"
>
<button
type=
"submit"
class=
"btn btn-danger"
>
Odbij zahtev
</button>
</form>
</div>
<div
class=
"col-md-2 d-flex flex-column justify-content-around align-items-center"
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'ODBIJEN'}"
>
<form
method=
"GET"
>
<!--OBRISI ZAHTEV TH:ACTION="@{/oglas-edit/{oglasId}/obrisi-zahtev/}"-->
<button
type=
"submit"
class=
"btn btn-danger"
>
Obrisi zahtev
</button>
</form>
</div>
</div>
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
th:text=
"${korisnik.getIme() + ' ' + korisnik.getPrezime()}"
></h5>
<p
class=
"card-text"
th:if=
"${zahtevi[korisnikStat.index].status.toString()=='POTVRDJEN'}"
>
Email:
<span
th:text=
"${korisnik.getEmail()}"
></span><br>
Telefon:
<span
th:text=
"${korisnik.getTelefon()}"
></span>
</p>
<button
class=
"btn btn-primary"
th:onclick=
"window.open('/chat?email='+[[${korisnik.getEmail()}]],'mywindow','menubar=1,width=650,height=900')"
>
Posaljite poruku
</button>
</div>
</div>
<div
class=
"col-md-3 d-flex flex-column justify-content-around align-items-center"
>
<div
class=
"card-body"
>
<p
class=
"card-text"
>
<span
th:text=
"${zahtevi[korisnikStat.index].datum + ' ' + zahtevi[korisnikStat.index].vreme}"
></span>
</p>
</div>
</div>
<div
class=
"col-md-3 d-flex flex-column justify-content-around align-items-center"
>
<form
method=
"get"
th:action=
"@{/oceni-korisnika}"
>
<input
type=
"text"
th:value=
"${oglas.oglasId}"
name=
"oglasId"
style=
"display: none"
/>
<input
type=
"text"
th:value=
"${loggedUser.korisnik.korisnikId}"
name=
"vlasnikId"
style=
"display: none"
>
<input
type=
"text"
th:value=
"${korisnik.korisnikId}"
name=
"korisnikId"
style=
"display: none"
>
<input
type=
"text"
th:value=
"${zahtevi[korisnikStat.index].zahtevId}"
name=
"zahtevId"
style=
"display: none"
>
<div
class=
"starrating risingstar d-flex justify-content-center flex-row-reverse"
>
<input
type=
"radio"
th:id=
"${'star' + zahtevi[korisnikStat.index].zahtevId + '-5'}"
name=
"ocenaRadio"
value=
"5"
/><label
th:for=
"${'star' + zahtevi[korisnikStat.index].zahtevId + '-5'}"
title=
"5 star"
></label>
<input
type=
"radio"
th:id=
"${'star' + zahtevi[korisnikStat.index].zahtevId + '-4'}"
name=
"ocenaRadio"
value=
"4"
/><label
th:for=
"${'star' + zahtevi[korisnikStat.index].zahtevId + '-4'}"
title=
"4 star"
></label>
<input
type=
"radio"
th:id=
"${'star' + zahtevi[korisnikStat.index].zahtevId + '-3'}"
name=
"ocenaRadio"
value=
"3"
/><label
th:for=
"${'star' + zahtevi[korisnikStat.index].zahtevId + '-3'}"
title=
"3 star"
></label>
<input
type=
"radio"
th:id=
"${'star' + zahtevi[korisnikStat.index].zahtevId + '-2'}"
name=
"ocenaRadio"
value=
"2"
/><label
th:for=
"${'star' + zahtevi[korisnikStat.index].zahtevId + '-2'}"
title=
"2 star"
></label>
<input
type=
"radio"
th:id=
"${'star' + zahtevi[korisnikStat.index].zahtevId + '-1'}"
name=
"ocenaRadio"
value=
"1"
/><label
th:for=
"${'star' + zahtevi[korisnikStat.index].zahtevId + '-1'}"
title=
"1 star"
></label>
<textarea
class=
"form-control h-100"
id=
"exampleFormControlTextarea1"
rows=
"3"
name=
"komentar"
></textarea>
</div>
<button
class=
"btn btn-primary"
type=
"submit"
>
Oceni
</button>
</form>
</div>
<div
class=
"col-md-2 d-flex flex-column justify-content-around align-items-center"
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'CEKANJE'}"
>
<form
method=
"GET"
th:action=
"@{/oglas-edit/{oglasId}/prihvati-zahtev/{zahtevId}(oglasId=${zahtevi[korisnikStat.index].oglasId},zahtevId=${zahtevi[korisnikStat.index].zahtevId})}"
>
<button
type=
"submit"
class=
"btn btn-success"
>
Prihvati zahtev
</button>
</form>
<form
method=
"GET"
th:action=
"@{/oglas-edit/{oglasId}/odbi-zahtev/{zahtevId}(oglasId=${zahtevi[korisnikStat.index].oglasId},zahtevId=${zahtevi[korisnikStat.index].zahtevId})}"
>
<button
type=
"submit"
class=
"btn btn-danger"
>
Odbij zahtev
</button>
</form>
</div>
<div
class=
"col-md-2 d-flex flex-column justify-content-around align-items-center"
th:if=
"${zahtevi[korisnikStat.index].status.toString() == 'ODBIJEN'}"
>
<form
method=
"GET"
>
<!--OBRISI ZAHTEV TH:ACTION="@{/oglas-edit/{oglasId}/obrisi-zahtev/}"-->
<button
type=
"submit"
class=
"btn btn-danger"
>
Obrisi zahtev
</button>
</form>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment