forked from rDrama/rDrama
fix
parent
130fe3932b
commit
ac9e24a7ba
|
@ -1,4 +1,4 @@
|
|||
<script src="/assets/CHRISTMAS/js/award_modal.js?v=200"></script>
|
||||
<script src="/assets/CHRISTMAS/js/award_modal.js?v=201"></script>
|
||||
|
||||
<div class="modal fade" id="awardModal" tabindex="-1" role="dialog" aria-labelledby="awardModalTitle" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered" role="document">
|
||||
|
@ -17,7 +17,7 @@
|
|||
<div class="my-4 px-4 w-1/2 overflow-hidden lg:w-1/4 flex items-center justify-center">
|
||||
{% if award.owned %}
|
||||
<input hidden name="kind" value="{{award.kind}}" type="radio" id="{{award.kind}}-award" class="peer">
|
||||
<label for="{{award.kind}}-award" onclick="document.getElementById('giveaward').disabled=false" class="w-full h-full p-2 text-center hover:bg-gray-300 peer-checked:shadow-inner peer-checked:bg-gray-400 rounded">
|
||||
<label for="{{award.kind}}-award" onclick="document.getElementById('giveaward').disabled=false; checkAward(value)" class="w-full h-full p-2 text-center hover:bg-gray-300 peer-checked:shadow-inner peer-checked:bg-gray-400 rounded">
|
||||
{% else %}
|
||||
<input hidden name="kind" value="{{award.kind}}" type="radio" id="{{award.kind}}-award" class="peer" disabled>
|
||||
<label for="{{award.kind}}-award" onclick="document.getElementById('giveaward').disabled=false" class="w-full h-full p-2 text-center hover:bg-gray-300 peer-checked:shadow-inner peer-checked:bg-gray-400 rounded cursor-not-allowed opacity-50">
|
||||
|
@ -28,15 +28,10 @@
|
|||
</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<a class="card disabled d-md-none" style="border:none">
|
||||
<i class="fas fa-volume-mute" style="opacity:0"></i>
|
||||
<div class="pt-2" style="font-weight: bold; font-size: 14px; color:#E1E1E1"> </div>
|
||||
<div class="text-muted"> </div>
|
||||
</a>
|
||||
</div>
|
||||
<label id="notelabel" for="note" class="pt-4 label">
|
||||
Note
|
||||
<small class="font-normal text-gray-500">Optional</small>
|
||||
<small id="notelabel-helper" class="font-normal text-gray-500">Optional</small>
|
||||
</label>
|
||||
<textarea id="note" maxlength="200" name="note" class="form-input" placeholder="Note to include in award notification..."></textarea>
|
||||
<div class="flex justify-end space-x-2 border-t border-gray-300 p-4 -mx-4 mt-4">
|
||||
|
@ -49,39 +44,4 @@
|
|||
</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;
|
||||
}
|
||||
|
||||
.awards-wrapper a:hover:not(.disabled), .awards-wrapper .picked {
|
||||
background-color: var(--primary)!important;
|
||||
}
|
||||
|
||||
.awards-wrapper input[type="radio"]:checked+a {
|
||||
background-color: var(--primary)!important;
|
||||
}
|
||||
|
||||
@media (min-width: 767.98px) {
|
||||
.award-columns {
|
||||
column-count: 7 !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</div>
|
Loading…
Reference in New Issue