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
Use AutoCompleter correctly in form
Klaus Zandersdb417093c5e2
diff --git a/modules/meeting/app/forms/meeting_agenda_item/presenter.rb b/modules/meeting/app/forms/meeting_agenda_item/presenter.rbindex bf51da5e441..e504a4cdc6c 100644--- a/modules/meeting/app/forms/meeting_agenda_item/presenter.rb+++ b/modules/meeting/app/forms/meeting_agenda_item/presenter.rb@@ -27,19 +27,22 @@#++class MeetingAgendaItem::Presenter < ApplicationForm- form do |f|- f.autocompleter(+ form do |agenda_item_form|+ agenda_item_form.autocompleter(name: :presenter_id,label: I18n.t("attributes.presenter"),visually_hide_label: true,autocomplete_options: {+ defaultData: true,+ component: "opce-user-autocompleter",url: ::API::V3::Utilities::PathHelper::ApiV3Path.principals,filters: [{ name: "type", operator: "=", values: %w[User Group] },{ name: "member", operator: "=", values: [@builder.object.meeting.project_id] },{ name: "status", operator: "=", values: [Principal.statuses[:active], Principal.statuses[:invited]] }],searchKey: "any_name_attribute",- multiple: false,+ resource: "principals",focusDirectly: false,+ multiple: false,appendTo: "body",disabled: @disabled}@@ -47,6 +50,7 @@ class MeetingAgendaItem::Presenter < ApplicationFormenddef initialize(disabled: false)+ super()@disabled = disabledendenddiff --git a/modules/meeting/config/locales/en.yml b/modules/meeting/config/locales/en.ymlindex 0ad6eab92f3..359ed4967e5 100644--- a/modules/meeting/config/locales/en.yml+++ b/modules/meeting/config/locales/en.yml@@ -55,9 +55,10 @@ en:start_time_hour: "Starting time"meeting_agenda_items:title: "Title"- author: "Responsible"+ author: "Author"duration_in_minutes: "Duration (min)"description: "Notes"+ presenter: "Presenter"errors:messages:invalid_time_format: "is not a valid time. Required format: HH:MM"@@ -111,7 +112,6 @@ en:label_time_zone: "Time zone"label_start_date: "Start date"-meeting:copy:title: "Copy meeting %{title}"@@ -131,11 +131,11 @@ en:new_date_time: "New date/time"label_mail_all_participants: "Send email to all participants"types:- classic: 'Classic'- classic_text: 'Organize your meeting in a formattable text agenda and protocol.'- structured: 'Dynamic'- structured_text: 'Organize your meeting as a list of agenda items, optionally linking them to a work package.'- structured_text_copy: 'Copying a meeting will currently not copy the associated meeting agenda items, just the details'+ classic: "Classic"+ classic_text: "Organize your meeting in a formattable text agenda and protocol."+ structured: "Dynamic"+ structured_text: "Organize your meeting as a list of agenda items, optionally linking them to a work package."+ structured_text_copy: "Copying a meeting will currently not copy the associated meeting agenda items, just the details"copied: "Copied from Meeting #%{id}"notice_successful_notification: "Notification sent successfully"@@ -168,7 +168,7 @@ en:text_meeting_empty_heading: "Your meeting is empty"text_meeting_empty_description_1: "Start by adding agenda items below. Each item can be as simple as just a title, but you can also add additional details like duration and notes."- text_meeting_empty_description_2: "You can also add references to existing work packages. When you do, related notes will automatically be visible in the work package's \"Meetings\" tab."+ text_meeting_empty_description_2: 'You can also add references to existing work packages. When you do, related notes will automatically be visible in the work package''s "Meetings" tab.'label_meeting_empty_action: "Add agenda item"label_meeting_actions: "Meeting actions"@@ -213,5 +213,5 @@ en:text_agenda_item_no_notes: "No notes provided"text_agenda_item_not_editable_anymore: "This agenda item is not editable anymore."text_work_package_has_no_upcoming_meeting_agenda_items: "This work package is not scheduled in an upcoming meeting agenda yet."- text_work_package_add_to_meeting_hint: "Use the \"Add to meeting\" button to add this work package to an upcoming meeting."+ text_work_package_add_to_meeting_hint: 'Use the "Add to meeting" button to add this work package to an upcoming meeting.'text_work_package_has_no_past_meeting_agenda_items: "This work package was not mentioned in a past meeting."