23 Commits

Author SHA1 Message Date
Alexander Brandon Coles f8e3ea3019 Merge remote-tracking branch 'opf/dev' into HEAD
# Conflicts:
#	frontend/src/assets/sass/backlogs/_master_backlog.sass
#	modules/backlogs/config/locales/crowdin/es.yml
#	modules/backlogs/config/locales/crowdin/uk.yml
#	modules/storages/config/locales/crowdin/zh-CN.yml
#	modules/wikis/config/locales/crowdin/es.yml
#	modules/wikis/config/locales/crowdin/uk.yml
#	modules/wikis/config/locales/crowdin/zh-CN.yml
2026-05-11 17:31:22 +02:00
Oliver Günther eae05f9d1a Fix after login redirect not ending up on configured URL by default
We used request.url and a back_url for the home path to redirect users
if they did not end up trying to access on a deep link.

In case you access / and get redirected by require_login, you want users
to end up on the after_login_default_redirect_url

Likewise, if you access /login without a back_url, you want the same
behavior

Deep linking logins are unchanged

https://community.openproject.org/work_packages/74756
2026-05-08 09:26:58 +02:00
Klaus Zanders cb04c035ad Refactor generation of select options to not pass bools around 2026-05-04 10:45:07 +02:00
Klaus Zanders b00b01d519 Always include the selected option in the settings form 2026-05-04 10:31:22 +02:00
Klaus Zanders ba64d8ff56 Ensure that only roles with fitting permissions can be used as the role for the project creator 2026-05-04 10:20:24 +02:00
Oliver Günther 4d731dcab6 Replace raw and explicit html_safe calls 2026-03-20 09:49:10 +01:00
Alexander Brandon Coles 5436a27358 [#70200] Introduce Fieldset component, input group
Introduces both an unstyled, low-level `FieldsetComponent` and the
`fieldset_group` input group for use with the Primer Forms DSL.

https://community.openproject.org/work_packages/70200
2026-01-14 05:43:56 -03:00
Alexander Brandon Coles e309d8a7c6 Introduce new settings input methods
Introduces `text_area`, `check_box_group` and `select_list` inputs.
Makes various refactorings to ensure that handling of explicit `valus`
params is as robust as possible.
2025-11-25 18:47:40 -03:00
Mir Bhatia b74d2cfb30 Update email layout and add default text 2025-11-24 18:13:10 +01:00
Mir Bhatia 9af0d224df Primerize and add new tab to new project settings 2025-11-24 18:13:07 +01:00
Alexander Brandon Coles 6955290eef DRY up decorator boilerplate with SimpleDelegator 2025-10-31 15:03:10 +00:00
Alexander Brandon Coles 3bfe5d1bbf Separate Decorators for FormObject and InputGroup
Ensures that `#group` is only defined on decorated `FormObject`.
2025-10-31 15:03:10 +00:00
Alexander Brandon Coles 6f4afe7b7f Use aria-describedby to associate expiry unit 2025-10-31 15:03:09 +00:00
Alexander Brandon Coles 670454c014 Remove indent from nested Session expiry time
Removed pending further internal discussion.

See https://community.openproject.org/wp/68696
2025-10-31 15:03:09 +00:00
Alexander Brandon Coles 9849c98bab Teach FormDecorator to decorate #group
Ensures `form.group` yields an `InputGroup` decorated with
`FormDecorator`.
2025-10-31 15:03:08 +00:00
Alexander Brandon Coles 886ae0d3da Define CSS classes config for show-when-checked
Uses Stimulus API for defining classes: this allows classes to be
defined on the controller rather than element level.

See https://stimulus.hotwired.dev/reference/css-classes
2025-10-31 15:03:08 +00:00
Alexander Brandon Coles c82bec97bf [#68679] Fix toggleability of Session expiry time
Restores previous behavior (inferred from broken jQuery code), hiding
"Session expiry time after inactivity" field unless "Session expires"
is checked.

Possibly broken in #18734.
2025-10-31 15:03:08 +00:00
Alexander Brandon Coles 7ef17c8e37 Allow passing blocks to FormDecorator#check_box 2025-10-31 15:03:08 +00:00
Alexander Brandon Coles 6a799e39cb Fix RichTextArea label ids, form namespace support 2025-07-07 14:18:54 +01:00
Oliver Günther 4ed3d87d35 Fix input group selection 2025-05-08 08:51:47 +02:00
Oliver Günther 8c7051fbeb Add test selector, fix name label association 2025-04-30 08:36:57 +02:00
Oliver Günther ff89d259ac Use radio group for self register 2025-04-30 08:35:15 +02:00
Oliver Günther 66a94b2be2 Introduce setting multi-lang helper 2025-04-30 08:35:15 +02:00