diff options
author | citrons <citrons> | 2021-08-07 23:22:51 +0000 |
---|---|---|
committer | citrons <citrons> | 2021-08-07 23:22:51 +0000 |
commit | 09f38fd67bae05c7998ab9573d5842d02df247d8 (patch) | |
tree | f0e9c7ed7f915475e06b2942b15b4c9f17218233 /apioforum/templates | |
parent | 2cbb238d80533cf06b1b6a7e1353843a0f583dea (diff) |
one is now able to remove a role configuration
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/edit_permissions.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apioforum/templates/edit_permissions.html b/apioforum/templates/edit_permissions.html index f91c710..c92c9a9 100644 --- a/apioforum/templates/edit_permissions.html +++ b/apioforum/templates/edit_permissions.html @@ -16,7 +16,7 @@ {% for role_config in role_configs %} <fieldset> - <legend id="config_{{role_config.role}}">{{role_config.role}}</legend> + <legend id="config_{{role_config.role}}">{{role_config.role}}</legend> {% macro perm(p, description, tooltip) %} <input type="checkbox" @@ -46,11 +46,17 @@ {{perm("p_create_subforum","create subforæ", "allow users with the role to create subforæ in this forum. " + "they will automatically become a bureaucrat in this subforum.")}} - <input type="hidden" name="roleconfig_{{role_config.role}}" value="present"/> {% if role_config.role != "other" %} {{perm("p_approve","approve others", "allow users with the role to assign the 'approved' role to those with the 'other' role")}} {% endif %} + <input type="hidden" name="roleconfig_{{role_config.role}}" value="present"/> + + {% if forum.id != 1 or role_config.role != "other" %} + <hr/> + <input type="checkbox" name="delete_{{role_config.role}}" id="delete_{{role_config.role}}"/> + <label for="delete_{{role_config.role}}">remove</label> + {% endif %} </fieldset> {% endfor %} {% if role_configs %} |