added refused
This commit is contained in:
parent
aafe149fe3
commit
2cc2c3abb0
|
@ -276,6 +276,10 @@ button[type="submit"]:hover {
|
||||||
background-color: rgba(0, 255, 0, 0.46);
|
background-color: rgba(0, 255, 0, 0.46);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.treasure-refused {
|
||||||
|
background-color: rgba(255, 0, 0, 0.397);
|
||||||
|
}
|
||||||
|
|
||||||
.overlay {
|
.overlay {
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
|
@ -812,9 +812,12 @@ function updateDemandes() {
|
||||||
let td = data.treasureData;
|
let td = data.treasureData;
|
||||||
|
|
||||||
for(const td_uid in td) {
|
for(const td_uid in td) {
|
||||||
if(td[td_uid].state != "Refused") {
|
if(td[td_uid].treasureState != "Accepted") {
|
||||||
$elem = $('#' + td[td_uid].activityUid);
|
$elem = $('#' + td[td_uid].activityUid);
|
||||||
$elem.addClass('treasure-submitted');
|
if(td[td_uid].treasureState == "Refused")
|
||||||
|
$elem.addClass('treasure-refused');
|
||||||
|
else
|
||||||
|
$elem.addClass('treasure-submitted');
|
||||||
$elem.find(".treasure-btn-submit").text('Editer la soumission');
|
$elem.find(".treasure-btn-submit").text('Editer la soumission');
|
||||||
|
|
||||||
$(`<div class="treasure-image">Image: <a href="${base_url}images/${td[td_uid].image}.html" target="_blank"> Lien</a></div>`).insertAfter($elem.find('.treasure-desc'))
|
$(`<div class="treasure-image">Image: <a href="${base_url}images/${td[td_uid].image}.html" target="_blank"> Lien</a></div>`).insertAfter($elem.find('.treasure-desc'))
|
||||||
|
|
Loading…
Reference in a new issue