64 Commits

Author SHA1 Message Date
Henriette Darge dd581b800b Add mising form elements to exisiting cf::detailsForm instead of creating two different ways of rendering cf forms 2026-02-18 13:35:42 +01:00
Alexander Brandon Coles 9368247f13 Possible values table 2026-02-13 09:09:45 -03:00
Alexander Brandon Coles 0b19144fab [#70292] Primerize Custom Field forms
https://community.openproject.org/wp/70292
2026-02-13 09:09:19 -03:00
ulferts e02569ea9f move the check for component into the component 2025-12-18 09:36:15 +01:00
ulferts a24f6bc414 consolidate custom field form and component 2025-12-17 17:12:45 +01:00
ulferts 64609c8ae8 remove ability of boolean cfs to be required 2025-12-17 13:41:57 +01:00
Eric Schubert be7b7f35fa [#66410] add common denominator for hierarchical lists
- use better interpolated failure message in contract
2025-08-20 15:53:05 +02:00
Eric Schubert 97f14394b9 [#66410] added new custom field type scored list
- https://community.openproject.org/work_packages/66410
- works under the hood for now exactly like hierarchy
- added feature flag
2025-08-19 16:17:19 +02:00
ulferts 84ea15fa61 use hierarchy format as blueprint for moving to primer forms 2025-06-23 12:00:37 +02:00
ulferts 146fd6866c remove format toggle from custom field create form 2025-06-19 16:04:55 +02:00
Oliver Günther 000f1061b9 Remove application dynamic target 2025-06-17 15:15:30 +02:00
Eric Schubert 797e0ff7bd [#58865] fixed flaky custom fields specs 2024-11-13 14:47:50 +01:00
Eric Schubert d27a077d4b [#58865] add enterprise banner to new custom field form
- https://community.openproject.org/work_packages/58865
- show banner below form field selection, if
  - hierarchy is selected AND
  - enterprise token is not active
- disable submit button, if the enterprise banner is shown
2024-11-12 13:59:10 +01:00
Eric Schubert 6fdbc59911 [#57814] added predicate for field_format 2024-10-01 14:02:02 +02:00
Eric Schubert 91db17b28e [#57814] add detail page for hierarchy custom fields
- https://community.openproject.org/work_packages/57814
- add switch to display primer detail page only for custom
  fields of type hierarchy
- add all relevant form elements
- remark: spacing is not correct yet and will be fixed for all primer
  forms later
2024-09-30 13:32:37 +02:00
Kabiru Mwenja 39a1a75774 [OP#57901] Remove feature flag for custom fields multi-projects mgmt (#16760)
https://community.openproject.org/work_packages/57901
2024-09-20 10:43:46 +03:00
Kabiru Mwenja 50780d834e [OP#57514]: Add the projects tab in custom field edit view wrapped by a feature flag (#16543)
https://community.openproject.org/wp/57514
2024-09-04 12:00:45 +03:00
Henriette Darge 8788b34dbf Update the last page headers to use the new Primer::OpenProject::PageHeader component 2024-08-23 09:56:02 +02:00
Oliver Günther 12ee9e6b83 Merge remote-tracking branch 'origin/idea/56781-remove-years-from-copyrights' into dev 2024-08-06 10:17:59 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Ivan Kuchin 0d03688bbf move content_controller 'admin--custom-fields' to form partial
To check if using content controller is even needed
2024-07-29 15:44:26 +02:00
Ivan Kuchin 9e37bed899 move config for which parts of custom field form are visible depending on format to backend 2024-07-29 15:44:26 +02:00
Ivan Kuchin 83eab36430 cleaner creation of additional breadcrumb 2024-07-16 15:25:21 +02:00
Ivan Kuchin f190bf1b7b no need to pass format value explicitly, it is set through the format select 2024-07-16 15:25:21 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Henriette Darge 67dcba6fbe Merge button styles "alt-highlight" and "highlight" together in one "primary" style 2024-03-08 14:10:30 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Oliver Günther 54ea0183c2 Rewrite custom_fields.js into stimulus controller
Fix removing options

Fix selector for wysiwyg

Fix duplicating options
2023-05-30 14:22:41 +02:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
ulferts 5968c0b18a Fix/replace custom i18n function (#8681)
* replace custom i18n function calls

* remove custom i18n method
2020-09-16 11:26:15 +02:00
ulferts 27b41a313c replace custom i18n function in views 2020-09-15 07:23:59 +02:00
Oliver Günther 10e21154f7 Move asset pipeline javascripts to frontend (#8482)
* ove reporting and reporting_engine js to frontend page

* Replace webhook assets javascript

* Add path augment service to dynamically load scripts

* Remove JS-Files that are not used/not needed any more

* Include AugmentingModule correctly

* Remove special handling for checkbox selection which is outdated and two jquery libs that are not used any more

* Load scripts dynamically that are not needed globally

* Move plugin JS to frontend

* Move toggable fieldsets to global listeners

* Move top-menu to global listeners and convert to TS

* Move action_menu to frontend and port to TS

* Move settings listener to frontend

* Remove global js assets that were not used anyway

* Move date range to timelog dynamic script where it's still used until removed

* Move colors to global-listeners and port to TS

* Replace tooltip with simple form instructions on the one place used

Tooltips were only used at the one place in our application, when changing a users password.
We can simply remove it there and use a modern solution the next time we need a tooltip

* Move danger zone validation to frontend and port to TS

* Move colorcontrast to backlogs vendor where it's used now

* Remove contents of application.js.erb

* Move project and user scripts to dynamically loaded

* Move onboarding tour to dynamically loaded

* Use correct syntax for jQuery so that $ is  known keyword within this function

* Fix onboarding tour

* Fix onboarding tour for scrum tour

* Fix specs after moving JS

* Remove application.js.erb

* Move locales and ckeditor to the frontend to dynamically load

* Remove bundles caches

These are no longer being used since angular cli

* Ensure locales are exported before angular

Co-authored-by: Henriette Darge <h.darge@openproject.com>
2020-07-09 11:02:43 +02:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
ulferts 75f501e897 Fix/custom field lacking options (#5768)
* enforce having at least one custom option for a list cf

Removes the hand written nested attributes handling by accept_nested_attributes_for.
Removes the arbitrary boundary of having 500 custom options.

* i18n for custom option mgmt

[ci skip]
2017-07-19 11:35:34 +02:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
HDinger 88841ec642 Remove information from toolbar in admin/cf (#4392) 2016-05-04 16:06:51 +02:00
HDinger 31394d7559 Remove doubled toolbar (#4370)
This changes toolbar and breadcrumb elements in the admin view. The doubled information was removed.

Plugin PRs:
* https://github.com/finnlabs/openproject-costs/pull/234
* https://github.com/finnlabs/openproject-global_roles/pull/62
* https://github.com/finnlabs/openproject-pdf_export/pull/51

https://community.openproject.com/work_packages/23052/activity
2016-04-29 07:41:50 +02:00
Oliver Günther a3746ed4ae Create proper breadcrumb helper to avoid escaping
Lots of toolbars use the notation `<Foobar> >> <Subitem>`,
which did not have a helper yet and requires manually calling html_safe
all over the place.

This fixes it by adding a `breadcrumb_toolbar` helper that properly and
safely joins its components.
2016-01-12 15:31:53 +01:00
Oliver Günther 85081ac5f9 Fix all toolbar titles 2016-01-12 15:31:53 +01:00
Henriette Dinger 244d2d81e8 Update icon classes from 'reload1' until 'yes3' 2015-12-02 21:32:11 +01:00
Mohamed Wael Khobalatte 0e72ec4243 Move to ruby1-9 syntax once and for all 2015-10-29 19:17:59 +01:00
Florian Kraft b6bb2db786 prevent some xss and add missing toolbars
Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-05-19 16:05:19 +02:00
Florian Kraft 9cc779eef6 use toolbar in custom fields
Signed-off-by: Florian Kraft <f.kraft@finn.de>
2015-05-18 18:14:38 +02:00
Alex Coles a003c93351 Remove success button styling from forms, modals
This effectively reverts
7c6890825d
ecec5032eb

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-05-13 11:09:51 +02:00
Alex Coles b8362f7951 Add icon to success buttons in Rails views
NOTE: This patch switches most buttons from `input[type=submit]` to
`button[type=submit]` (Rails' `button_tag` helper sets `[type=submit]`
by default).

This is a quick-fix: ideally, methods should be added to view helpers
/`TabularFormBuilder` that append the relevant modifier/icon classes.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-04-27 15:43:48 +02:00