Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#60388] reenable custom options edit for project attributes

Eric Schubert7f5233ea5886
diff --git a/app/views/admin/settings/project_custom_fields/edit.html.erb b/app/views/admin/settings/project_custom_fields/edit.html.erb
index 4b28742f473..bb88d394606 100644
--- a/app/views/admin/settings/project_custom_fields/edit.html.erb
+++ b/app/views/admin/settings/project_custom_fields/edit.html.erb
@@ -36,14 +36,19 @@ See COPYRIGHT and LICENSE files for more details.
))
%>
-<%= error_messages_for 'custom_field' %>
+<%= error_messages_for "custom_field" %>
+
+<% content_controller "admin--custom-fields",
+ dynamic: true,
+ "admin--custom-fields-format-config-value": OpenProject::CustomFieldFormatDependent.stimulus_config
+%>
<%= labelled_tabular_form_for @custom_field, as: :custom_field,
url: admin_settings_project_custom_field_path(@custom_field),
- html: {method: :put, id: 'custom_field_form'} do |f| %>
- <%= render partial: 'custom_fields/form', locals: { f: f, custom_field: @custom_field } %>
+ html: {method: :put, id: "custom_field_form"} do |f| %>
+ <%= render partial: "custom_fields/form", locals: { f: f, custom_field: @custom_field } %>
<% if @custom_field.new_record? %>
- <%= hidden_field_tag 'type', @custom_field.type %>
+ <%= hidden_field_tag "type", @custom_field.type %>
<% end %>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-highlight -with-icon icon-checkmark" %>
<% end %>
diff --git a/app/views/admin/settings/project_custom_fields/new.html.erb b/app/views/admin/settings/project_custom_fields/new.html.erb
index 0384cb23b78..a1cdbf6b98d 100644
--- a/app/views/admin/settings/project_custom_fields/new.html.erb
+++ b/app/views/admin/settings/project_custom_fields/new.html.erb
@@ -31,19 +31,19 @@ See COPYRIGHT and LICENSE files for more details.
<%= render(Settings::ProjectCustomFields::NewFormHeaderComponent.new) %>
-<%= error_messages_for 'custom_field' %>
+<%= error_messages_for "custom_field" %>
<% content_controller "admin--custom-fields",
dynamic: true,
- 'admin--custom-fields-format-config-value': OpenProject::CustomFieldFormatDependent.stimulus_config
+ "admin--custom-fields-format-config-value": OpenProject::CustomFieldFormatDependent.stimulus_config
%>
<%= labelled_tabular_form_for @custom_field, as: :custom_field,
url: admin_settings_project_custom_fields_path,
- html: { id: 'custom_field_form' } do |f| %>
- <%= render partial: 'custom_fields/form', locals: { f: f, custom_field: @custom_field } %>
+ html: { id: "custom_field_form" } do |f| %>
+ <%= render partial: "custom_fields/form", locals: { f: f, custom_field: @custom_field } %>
<% if @custom_field.new_record? %>
- <%= hidden_field_tag 'type', @custom_field.type %>
+ <%= hidden_field_tag "type", @custom_field.type %>
<% end %>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: "-highlight -with-icon icon-checkmark" %>
<% end %>