From 71ce3eefa09fb2728266f46305ae9d0db6eb798a Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 9 Nov 2022 20:57:09 +0100 Subject: [PATCH] Update cursor for states --- .../character/snippets/character_details/states.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/character/templates/character/snippets/character_details/states.html b/src/character/templates/character/snippets/character_details/states.html index 1f87e42..a7ff1ee 100644 --- a/src/character/templates/character/snippets/character_details/states.html +++ b/src/character/templates/character/snippets/character_details/states.html @@ -7,10 +7,9 @@ data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="{{ state.name }} : {{ state.description }}" - {% if state in character_states %} - class="state-enabled" - {% endif %} + class="{% if state in character_states %}state-enabled{% endif %}" {% if character|managed_by:user %} + role="button" {% if state in character_states %} hx-get="{% url "character:remove_state" pk=character.pk state_pk=state.pk %}" {% else %}