summaryrefslogtreecommitdiff
path: root/public/stylesheets
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-31 15:55:43 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-31 15:55:43 +0200
commit464dd4266bdc433805010b5dca428f4cb75c2a81 (patch)
tree47fdf4f065960d49da015eafdf56cb817dcf9ea4 /public/stylesheets
parent5f17f421b176d48ef556fb379f59bbb7d284b48e (diff)
Group user accounts by role
Replaces the two-way admin/user split with four groups ordered by capability: administration, Redaktion, editors, alumni. alumni takes precedence over capability in role_group, so a retired admin appears at the bottom rather than the top. Forms now offer the three roles as checkboxes rather than a single admin checkbox, with a trailing hidden blank so an empty set can be posted, and user_params permits roles only for admins. Three create buttons prefill the common combinations.
Diffstat (limited to 'public/stylesheets')
-rw-r--r--public/stylesheets/admin.css19
1 files changed, 19 insertions, 0 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css
index c0496c6e..9991fad0 100644
--- a/public/stylesheets/admin.css
+++ b/public/stylesheets/admin.css
@@ -796,6 +796,25 @@ table.revisions_table tr:hover {
796 margin: 0; 796 margin: 0;
797} 797}
798 798
799.user_group_heading {
800 margin-top: 1.5rem;
801}
802
803/* Retired accounts: present for attribution, not for action. */
804.user_group_alumni,
805.user_table_alumni {
806 color: var(--text-muted);
807}
808
809.role_choice {
810 display: block;
811 margin-bottom: 0.35rem;
812}
813
814.role_choice .field_hint {
815 margin-left: 0.5rem;
816}
817
799/* ============================================================ 818/* ============================================================
800 Translation compare view (page_translations#show) 819 Translation compare view (page_translations#show)
801 ============================================================ */ 820 ============================================================ */