25 Commits

Author SHA1 Message Date
Henriette Darge fc8df6a9d3 Add description texts to Email and Reminder settings page 2026-04-22 10:16:29 +02:00
Henriette Darge 5fb8197141 Add unique ids to avoid label mismatch 2026-04-07 09:02:58 +02:00
Henriette Darge d5a7da66ce Fix workday saving for users when disabling all workdays 2026-03-30 12:20:37 +02:00
Henriette Darge 65742eaa02 Exclude projects that already have a setting for the user 2026-03-30 11:59:55 +02:00
Henriette Darge deeb026431 Adapt tests to new reminders and notifications structure 2026-03-30 11:56:23 +02:00
Henriette Darge 6732b9fd00 Primerize the myAccount NotificationsForm 2026-03-27 11:31:51 +01:00
Henriette Darge 3f0f3cfca0 Use reminders form component for the admin view as well and remove now outdated angular components 2026-03-26 15:15:29 +01:00
Henriette Darge 35d481edb7 Pimerize the reminders form 2026-03-26 14:41:54 +01:00
Henriette Darge 9ba727d45e Use fieldsetgroup in myAccount interface page 2026-03-26 08:13:34 +01:00
Oliver Günther 4d731dcab6 Replace raw and explicit html_safe calls 2026-03-20 09:49:10 +01:00
Jan Sandbrink 485e09c357 Disable inputs in edit forms more consistently
The decision on which fields are writable has been moved into
the user's contract. Previously the fields in the My Account form were only
disabled in the frontend, but when changing the browser form, the user could
still update values. Now the contract has been updated to check the
authentication method as well, denying changes to the own name and email address.

Similarly when the contract prevents edits, this is also reflected in the admin
UI for users. It's not pretty, because there seems to be no formatting for disabled
text boxes in our old forms, but it still gives faster feedback than the
old forms, where you had to submit to see that a change to your own login
was rejected.

In the My Accounts form, this change leads to the curious case, where
an admin CAN change their own name in the My Account view, because admins
could do it in other forms as well. It's surprising, but consistent.

Additionally the behaviour has been harmonized across LDAP and other auth providers.
Editing the email address is now also forbidden in all cases for the user themselves.
2026-02-18 16:25:47 +01:00
Henriette Darge 313127fb5c Fix tests
Update config/locales/en.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Update app/views/my/account.html.erb

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Update app/forms/my/account_form.rb

Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>

Update app/forms/my/account_form.rb

Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>

Update app/forms/my/account_form.rb

Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>

Apply suggestion from @myabc

Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>
2025-11-26 16:29:25 +01:00
Henriette Darge 753f5fd303 Primerise the first page of the MyAccount area 2025-11-26 16:29:25 +01:00
Alexander Brandon Coles 7d45642376 [#69095] Primerize Admin > System Settings forms 2025-11-25 19:05:02 -03:00
Kabiru Mwenja 30e3cb4508 Remove seeming redundant check_box checked|value definitions.
Automatically inferred by primer forms
2025-09-16 17:03:54 +03:00
Kabiru Mwenja 94c4e1c5df Update ApplicationForm#attribute_name method signature to be less restrictive
Just forward all arguments to ActiveRecord's #huma_attribute_name. Esp when there's interpolation needed.
2025-09-16 17:03:54 +03:00
Kabiru Mwenja b1375a2992 Use 'force' terminology for theme contrast preferences
Changes attribute names from enable_auto_*_contrast to force_*_contrast
to better match existing UI terminology and differentiate from single
theme contrast settings.
2025-09-16 17:03:53 +03:00
Kabiru Mwenja 51d870866b Use AR#human_attribute_name for more elegant translations 2025-09-15 14:26:08 +03:00
Kabiru Mwenja 740bedb084 Add "Increase contrast" checkboxes for "Light high contrast" and "Dark high contrast" that force high contrast in Automatic mode
https://community.openproject.org/work_packages/66396
2025-09-13 12:41:05 +03:00
Oliver Günther c84dd850fa Refactor static links to ensure users have to go through url_for
This ensures links will be translated if they are part of the website
2025-09-09 13:43:26 +02:00
Alexander Brandon Coles 52ea0a77e9 Sort displayed languages by CLDR name, not code 2025-08-27 18:28:02 +01:00
Alexander Brandon Coles 8567214338 [#65403] Primerize My Account > Settings page
Introduces `My::LocaleComponent` and accompanying forms.
Includes basic spec coverage.

Also applies lang attribute to individual Language options, with the
goal of improving screenreader and browser translation tool support.
2025-08-27 18:28:00 +01:00
Henriette Darge d95f18d377 Add caption for auto hiding success messages setting 2025-07-07 10:51:50 +02:00
Henriette Darge 2dbeb00282 Introduce a new setting to disable the keyboard shortcuts 2025-06-23 11:21:51 +02:00
Henriette Darge c52571c10f Primerize the MySettings form and split it into a separate menu entry 2025-06-20 08:02:50 +02:00