forked from rDrama/rDrama
fix
parent
11b7bfc5ef
commit
bf8200e8b7
|
@ -78,12 +78,8 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
{% for k, v in badge_types.items() %}
|
||||
<tr class="relative hover:bg-gray-300 dark:hover:bg-white/10">
|
||||
<td class="px-2.5">
|
||||
<label class="absolute w-full h-full left-0 bottom-0" for="badge-{{k}}">
|
||||
<input type="radio" id="badge-{{k}}" name="badge_id" value="{{k}}">
|
||||
</label>
|
||||
</td>
|
||||
<tr class="relative hover:bg-gray-300 dark:hover:bg-white/10" onclick="selectCheckbox('badge-{{k}}')">
|
||||
<td class="px-2.5"><input type="radio" id="badge-{{k}}" name="badge_id" value="{{k}}"></td>
|
||||
<td class="px-2.5">
|
||||
<label for="badge-{{k}}">
|
||||
<img loading="lazy" src="/assets/CHRISTMAS/images/badges/{{v['name']}}.webp?a=1" class="object-contain w-16 h-16 p-2" alt="{{v['name']}} badge"/>
|
||||
|
@ -109,3 +105,12 @@
|
|||
</style>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
function selectCheckbox(id) {
|
||||
const el = document.getElementById(id);
|
||||
el.checked = !el.checked;
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue