2021-12-24 23:00:09 +00:00
|
|
|
<script src="/static/assets/js/award_modal.js?a=3"></script>
|
2021-10-15 14:08:27 +00:00
|
|
|
<div class="modal fade" id="awardModal" tabindex="-1" role="dialog" aria-labelledby="awardModalTitle" aria-hidden="true">
|
2021-12-19 03:01:21 +00:00
|
|
|
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered awardmodal" role="document">
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="modal-content">
|
2021-10-15 14:08:27 +00:00
|
|
|
<div class="modal-header">
|
2021-12-14 22:48:37 +00:00
|
|
|
<h5 class="modal-title">Give Award</h5>
|
|
|
|
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
|
2021-10-15 14:08:27 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2021-12-14 22:48:37 +00:00
|
|
|
<div id="awardModalBody" class="modal-body">
|
|
|
|
<form id="awardTarget" class="pt-3 pb-0" action="" method="post">
|
2021-12-28 12:41:26 +00:00
|
|
|
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="card-columns award-columns awards-wrapper">
|
2021-10-15 14:08:27 +00:00
|
|
|
{% for award in v.user_awards %}
|
|
|
|
{% if award.owned %}
|
2021-12-14 22:48:37 +00:00
|
|
|
<a href="javascript:void(0)" id="{{award.kind}}" class="card" onclick="bruh('{{award.kind}}')">
|
2021-10-15 14:08:27 +00:00
|
|
|
{% else %}
|
2021-12-14 22:48:37 +00:00
|
|
|
<a href="javascript:void(0)" id="{{award.kind}}" class="card disabled">
|
2021-10-15 14:08:27 +00:00
|
|
|
{% endif %}
|
2021-12-04 20:45:38 +00:00
|
|
|
<i class="{{award.icon}} {{award.color}}"></i>
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="pt-2" style="font-weight: bold; font-size: 14px; color:#E1E1E1">{{award.title}}</div>
|
|
|
|
<div class="text-muted">{{award.owned}} owned</div>
|
|
|
|
</a>
|
2021-10-15 14:08:27 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2021-12-14 22:48:37 +00:00
|
|
|
<label id="notelabel" for="note" class="pt-4">Note (optional):</label>
|
2021-12-28 12:41:26 +00:00
|
|
|
<input autocomplete="off" id="kind" name="kind" value="" hidden>
|
|
|
|
<textarea autocomplete="off" id="note" maxlength="200" name="note" class="form-control" placeholder="Note to include in award notification..."></textarea>
|
|
|
|
<input autocomplete="off" id="giveaward" class="btn btn-primary" style="float:right" type="submit" value="Give Award" disabled>
|
2021-12-14 22:48:37 +00:00
|
|
|
<pre>
|
|
|
|
|
|
|
|
|
|
|
|
</pre>
|
2021-10-15 14:08:27 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.awards-wrapper input[type="radio"] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awards-wrapper a {
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 15px !important;
|
|
|
|
text-align: center;
|
|
|
|
text-transform: none!important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awards-wrapper a i {
|
|
|
|
font-size: 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awards-wrapper a.disabled {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
|
2021-10-27 00:37:34 +00:00
|
|
|
.awards-wrapper a:hover:not(.disabled), .awards-wrapper .picked {
|
2021-10-15 14:08:27 +00:00
|
|
|
background-color: var(--primary)!important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awards-wrapper input[type="radio"]:checked+a {
|
|
|
|
background-color: var(--primary)!important;
|
|
|
|
}
|
|
|
|
|
2021-12-27 02:09:06 +00:00
|
|
|
.award-columns {
|
2021-12-28 06:28:18 +00:00
|
|
|
column-count: 1;
|
2021-12-27 02:09:06 +00:00
|
|
|
}
|
|
|
|
|
2021-10-15 14:08:27 +00:00
|
|
|
@media (min-width: 767.98px) {
|
|
|
|
.award-columns {
|
2021-12-10 04:58:55 +00:00
|
|
|
column-count: 7 !important;
|
2021-10-15 14:08:27 +00:00
|
|
|
}
|
|
|
|
}
|
2021-12-19 03:01:21 +00:00
|
|
|
|
|
|
|
.awardmodal {
|
|
|
|
max-width: 90% !important;
|
|
|
|
}
|
2021-09-17 14:01:47 +00:00
|
|
|
</style>
|