Commit Graph

42 Commits

Author SHA1 Message Date
Oliver Günther 4d731dcab6 Replace raw and explicit html_safe calls 2026-03-20 09:49:10 +01:00
Dombi Attila 486ce0c96b Fix specs 2025-03-05 12:45:08 +01:00
Dombi Attila 453d55e089 Use version groups for the version html autocompleters. 2025-03-05 12:45:08 +01:00
Jan Sandbrink c0d59d730d Make some files ready for frozen string literals
During a previous test, added the frozen string literal comment
to all Ruby files, to see how our codebase would react to that.

The test run uncovered a few files that were trying to modify strings
that originate from string literals. This commit is changed some
of them to be safe under frozen string literals and freezes literals
in the affected files.
2025-02-21 16:27:12 +01:00
Eric Schubert 61108493c1 [#58865] fixed some rubocop issues 2024-11-12 14:01:49 +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
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +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
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +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
Benjamin Bädorf 8d9cf86115 Fix custom field form builder specs 2023-01-25 11:47:56 +01:00
Benjamin Bädorf a341f0b798 Fix broken specs 2023-01-25 10:43:40 +01:00
Yule d67d18c8f5 Merge branch 'dev' into feature/42358-standardise-date-pickers-2 2023-01-24 16:48:48 +01:00
Benjamin Bädorf 510d389618 Use op-single-date-picker for backlogs, fix value from dataset loading for op-single-date-picker 2023-01-24 11:09:36 +01:00
Christophe Bliard 10085736da refactor: Rename and generalize #accessor_name as #attribute_name
Also extract #attribute_getter and #attribute_setter when
using #attribute_name in the context of calling the getter/setter
methods.
2023-01-17 09:39:27 +01:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard a33524ef6d remove ruby magic comment for utf-8
ruby interprets source encoding as utf-8 since 2.0.0, making magic comment redundant and useless
2022-03-10 19:36:58 +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
Oliver Günther ac049663a3 Add multiple option for project custom fields (#9125)
* Allow multi-select CFs for projects

* Render multiple custom values in project row

* Output arrays from custom_value_attributes for multiselect values

* Add spec for copying multi-value cf

* Fix custom field multiselect form on new custom fields

* Fix custom field builder specs

* Add spec for creating/updating projects with multi select

* Add spec to create new multi select project cfs

* Add spec for projects index displaying of custom fields
2021-03-30 17:29:32 +02:00
ulferts 1bdd2ab9ae safe automatic fixes by rubocop (#8994) 2021-02-11 16:02:18 +01: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
Oliver Günther c369a71f4d Allow project help texts on the rails form
Renders help texts on a project core attributes and custom fields
2020-08-20 09:04:33 +02:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther 2da01fe42b Decide on editor type in hal resource
Allow backend and frontend to set the editor type for given fields.

This disables table functionality on custom field types (pasting however still
works due to paste-from-office) and enables tables on project
description and statusExplanation

[ci skip]
2019-10-23 13:26:16 +02:00
ulferts 28dddb6332 disable macros in various ckeditors
* project status
* project description
* text custom fields
2019-10-21 09:35:15 +02:00
Oliver Günther bb48a3b36d Allow WYSIWYG in project/other long text formattible fields
The project text custom field was not using the WYSIWYG editor, but was
outputting plain text.

https://community.openproject.com/wp/30433
2019-08-08 16:13:26 +02:00
Inga Mai 7b43a78836 Required fields implementation corrected, tests adapted 2019-02-28 13:50:21 +01:00
Oliver Günther 2213ca8a92 [28155] Replace calendar_for with global augmented datepickers
Allow to create and reuse datepicker fields through a global event
listener instead of calling `calendar_for` in Rails.

This allows us to use a datepicker even in the legacy app.

[ci skip]

https://community.openproject.com/wp/28155
2018-08-09 12:45:22 +02:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther 60f146e76d [26313] Output checked value for check_box tag form builder (#6020)
[ci skip]
2017-11-28 08:05:04 +01:00
ulferts 41aea10480 fix user/version cf rendering in forms (#5610)
[ci skip]
2017-06-06 14:33:40 +02:00
Jens Ulferts 9a347d7e83 move CustomFieldFormat to OpenProject namespace 2017-05-08 11:57:26 +02:00
Oliver Günther 93dcd386f4 Remove usage of CF translations 2017-04-03 22:34:08 +02:00
Markus Kahl f5a57e3f42 list custom field normalisation and multi select 2017-02-17 14:38:24 +00:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
HDinger d071c694cc Add required star to required custom fields (#4393) 2016-05-06 13:17:15 +02:00
Alex Coles a6212fb304 Fix syntax (w/Rubocop) in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-06-30 12:08:31 +02:00
Alex Coles 8eb4b94c28 Fix missing label titles in CustomFieldFormBuilder
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-04-17 17:51:39 +02:00
Jens Ulferts 561e5a5784 fix accessibility "lang" tags on custom fields 2015-02-11 15:09:11 +01:00
Jens Ulferts 44f122ed4b extract custom_fields form logic into separate builder 2015-02-09 09:46:27 +01:00