From a40d4260bc422611084be7154173a88556221228 Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Thu, 29 Jul 2021 16:40:09 +0200 Subject: [PATCH] Fixed included role checkboxes on role.show if role is locked, closes #68 --- uffd/role/templates/role/show.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uffd/role/templates/role/show.html b/uffd/role/templates/role/show.html index d5ae275f..d46bb429 100644 --- a/uffd/role/templates/role/show.html +++ b/uffd/role/templates/role/show.html @@ -94,8 +94,8 @@ <td> <div class="form-check"> <input class="form-check-input" type="checkbox" id="include-role-{{ r.id }}-checkbox" name="include-role-{{ r.id }}" value="1" aria-label="enabled" - {% if r == role or role.locked %}disabled{% endif %} - {% if r in role.included_roles %}checked{% endif %}> + {% if r == role or role.locked %} disabled{% endif %} + {% if r in role.included_roles %} checked{% endif %}> </div> </td> <td> -- GitLab