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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Correct form definition to ensure enough space between the elements
Henriette Dargef832395a1fd8
diff --git a/app/components/admin/custom_fields/custom_field_projects/new_custom_field_projects_form_modal_component.html.erb b/app/components/admin/custom_fields/custom_field_projects/new_custom_field_projects_form_modal_component.html.erbindex a7596230ea1..3950d4e83b5 100644--- a/app/components/admin/custom_fields/custom_field_projects/new_custom_field_projects_form_modal_component.html.erb+++ b/app/components/admin/custom_fields/custom_field_projects/new_custom_field_projects_form_modal_component.html.erb@@ -37,7 +37,7 @@ See COPYRIGHT and LICENSE files for more details.) do |form|concat(render(Primer::Alpha::Dialog::Body.new(id: dialog_body_id, test_selector: dialog_body_id, aria: { label: title },- style: "min-height: 300px"+ classes: "Overlay-body_autocomplete_height")) dorender(Projects::CustomFields::CustomFieldMappingForm.new(form, project_mapping: @custom_field_project_mapping))end)diff --git a/app/forms/projects/custom_fields/custom_field_mapping_form.rb b/app/forms/projects/custom_fields/custom_field_mapping_form.rbindex f637ea05993..1a3f71f3dbe 100644--- a/app/forms/projects/custom_fields/custom_field_mapping_form.rb+++ b/app/forms/projects/custom_fields/custom_field_mapping_form.rb@@ -31,8 +31,7 @@ module Projects::CustomFieldsinclude OpPrimer::ComponentHelpersform do |form|- form.group(layout: :vertical) do |group|- group.project_autocompleter(+ form.project_autocompleter(name: :id,label: Project.model_name.human,visually_hide_label: true,@@ -48,13 +47,12 @@ module Projects::CustomFields})- group.check_box(+ form.check_box(name: :include_sub_projects,label: I18n.t(:label_include_sub_projects),checked: false,label_arguments: { class: "no-wrap" })- endenddef initialize(project_mapping:)