rDrama/files/templates/award_modal.html

81 lines
3.0 KiB
HTML
Raw Normal View History

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-01 04:18:42 +00:00
<div class="modal-dialog modal-dialog-centered" role="document">
2021-12-01 04:01:13 +00:00
<div class="modal-content mx-auto max-w-2xl bg-gray-100 rounded-md shadow-lg">
2021-10-15 14:08:27 +00:00
<div class="modal-header">
2021-12-01 03:54:31 +00:00
<h5 class="font-bold text-xl text-black font-heading leading-normal">Give Award</h5>
2021-12-01 04:06:16 +00:00
<button type="button" class="close text-gray-700 hover:text-gray-900" 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>
<div id="awardModalBody" class="modal-body">
<form id="awardTarget" class="pt-3 pb-0" action="" method="post">
2021-12-01 04:18:42 +00:00
<div class="flex flex-wrap -mx-4 overflow-hidden overflow-y-scroll">
2021-10-15 14:08:27 +00:00
{% for award in v.user_awards %}
2021-12-01 03:58:27 +00:00
<div class="my-4 px-4 w-1/2 overflow-hidden lg:w-1/4 flex items-center justify-center">
2021-10-15 14:08:27 +00:00
{% if award.owned %}
2021-12-01 04:04:11 +00:00
<button type="button" id="{{award.kind}}" onclick="bruh('{{award.kind}}')">
2021-10-15 14:08:27 +00:00
{% else %}
2021-12-01 04:05:29 +00:00
<button type="button" id="{{award.kind}}" disabled class="cursor-not-allowed opacity-50">
2021-10-15 14:08:27 +00:00
{% endif %}
2021-12-01 03:56:55 +00:00
<i class="{{award.icon}} {{award.color}}"></i>
2021-12-01 04:00:37 +00:00
<div class="mt-2 font-bold text-base text-gray-700">{{award.title}}</div>
2021-12-01 04:00:56 +00:00
<div class="text-sm text-gray-500">{{award.owned}} owned</div>
2021-12-01 03:56:55 +00:00
</button>
</div>
2021-10-15 14:08:27 +00:00
{% endfor %}
</div>
2021-12-01 04:16:29 +00:00
<label id="notelabel" for="note" class="pt-4">
2021-12-01 04:17:05 +00:00
Note
2021-12-01 04:18:08 +00:00
<small class="font-normal text-gray-500">Optional</small>
2021-12-01 04:16:29 +00:00
</label>
2021-10-15 14:08:27 +00:00
<input id="kind" name="kind" value="" hidden>
2021-10-29 16:57:50 +00:00
<textarea id="note" maxlength="200" name="note" class="form-control" placeholder="Note to include in award notification..."></textarea>
2021-12-01 03:59:45 +00:00
<div class="flex justify-end space-x-2 border-t border-gray-300 p-4">
2021-12-01 04:03:12 +00:00
<input id="giveaward" class="ml-auto block px-4 py-2 bg-gradient-to-t from-green-700 to-green-600 hover:from-green-600 hover:to-green-700 active:shadow-inner border border-green-900 rounded-md text-shadow-t shadow-inset-t-white-10 text-sm font-bold text-gray-100 focus:text-gray-500 focus:outline-none" type="submit" value="Give Award" disabled>
2021-12-01 03:59:45 +00:00
</div>
2021-10-15 14:08:27 +00:00
</form>
</div>
</div>
</div>
</div>
2021-11-30 18:03:48 +00:00
<script defer src="/assets/js/award_modal.js?v=57"></script>
2021-11-30 17:32:52 +00:00
2021-10-15 14:08:27 +00:00
<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-10-21 14:47:27 +00:00
.award-columns {
column-count: 2;
}
2021-10-15 14:08:27 +00:00
@media (min-width: 767.98px) {
.award-columns {
2021-11-23 22:36:38 +00:00
column-count: 9 !important;
2021-10-15 14:08:27 +00:00
}
}
2021-09-17 14:01:47 +00:00
</style>