2021-09-17 11:25:14 +00:00
|
|
|
<div class="modal fade" id="awardModal" tabindex="-1" role="dialog" aria-labelledby="awardModalTitle" aria-hidden="true">
|
2021-09-17 14:01:47 +00:00
|
|
|
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title">Give Award</h5>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div id="awardModalBody" class="modal-body">
|
2021-09-17 14:08:30 +00:00
|
|
|
<form id="awardTarget" class="pt-3 pb-0" action="" method="post">
|
2021-09-17 14:01:47 +00:00
|
|
|
<div class="card-columns awards-wrapper">
|
2021-09-17 14:35:12 +00:00
|
|
|
{% for award in v.user_awards %}
|
2021-09-17 14:37:51 +00:00
|
|
|
<input type="checkbox" name="check" value="1" onclick="document.getElementById('giveaward').disabled=false;document.getElementById('kind').value="{{award.kind}}">
|
2021-09-17 14:35:12 +00:00
|
|
|
<label class="card" >
|
|
|
|
<i class="{{award.icon}} {{award.color}}"></i><br />
|
|
|
|
<span class="d-block pt-2" style="font-weight: bold; font-size: 14px;">{{award.title}}</span>
|
|
|
|
<span class="text-muted">{{award.owned}} owned</span>
|
|
|
|
</label>
|
|
|
|
{% endfor %}
|
2021-09-17 14:13:40 +00:00
|
|
|
</div>
|
|
|
|
<label for="note" class="pt-4">Note (optional):</label>
|
2021-09-17 14:37:51 +00:00
|
|
|
<input id="kind" name="kind" value="{{award.kind}}" hidden>
|
2021-09-17 14:13:40 +00:00
|
|
|
<textarea id="note" name="note" class="form-control" placeholder="Note to include in award notification"></textarea>
|
2021-09-17 14:24:08 +00:00
|
|
|
<input id="giveaward" class="btn btn-primary" style="float:right" type="submit" value="Give Award" disabled>
|
2021-09-17 14:01:47 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
2021-09-17 14:35:12 +00:00
|
|
|
.awards-wrapper input[type="radio"] {
|
|
|
|
display: none;
|
2021-09-17 14:24:46 +00:00
|
|
|
}
|
2021-09-17 14:35:12 +00:00
|
|
|
|
|
|
|
.awards-wrapper label {
|
2021-09-17 14:01:47 +00:00
|
|
|
cursor: pointer;
|
2021-09-17 14:35:12 +00:00
|
|
|
padding: 15px;
|
|
|
|
text-align: center;
|
|
|
|
text-transform: none!important;
|
2021-09-17 14:01:47 +00:00
|
|
|
}
|
|
|
|
|
2021-09-17 14:35:12 +00:00
|
|
|
.awards-wrapper label i {
|
|
|
|
font-size: 45px;
|
2021-09-17 14:01:47 +00:00
|
|
|
}
|
|
|
|
|
2021-09-17 14:35:12 +00:00
|
|
|
.awards-wrapper label.disabled {
|
|
|
|
opacity: 0.6;
|
2021-09-17 14:24:46 +00:00
|
|
|
}
|
2021-09-17 14:35:12 +00:00
|
|
|
|
|
|
|
.awards-wrapper label:hover {
|
|
|
|
/*background-color: rgba(173, 226, 255, 0.7)!important;*/
|
|
|
|
background-color: var(--primary)!important;
|
2021-09-17 14:24:46 +00:00
|
|
|
}
|
2021-09-17 14:35:12 +00:00
|
|
|
|
|
|
|
.awards-wrapper input[type="radio"]:checked+label {
|
|
|
|
/*background-color: rgba(173, 226, 255, 0.9)!important;*/
|
|
|
|
background-color: var(--primary)!important;
|
2021-09-17 14:24:46 +00:00
|
|
|
}
|
2021-09-17 14:01:47 +00:00
|
|
|
</style>
|