master
kek7198 2021-12-10 22:20:01 -06:00
parent c49dae6912
commit deae73f257
1 changed files with 4 additions and 4 deletions

View File

@ -15,11 +15,11 @@
{% for award in v.user_awards %}
<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}}" class="peer">
<label for="{{award.kind}}" 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">
<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">
{% else %}
<input hidden name="kind" value="{{award.kind}}" type="radio" id="{{award.kind}}" class="peer" disabled>
<label for="{{award.kind}}" 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">
<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">
{% endif %}
<i class="{{award.icon}} {{award.color}}"></i>
<div class="mt-2 font-bold text-base text-black">{{award.title}}</div>