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

Add a placeholder icon in front of the responsible autocompleter of an agenda item

Henriette Dargeec27a384e717
diff --git a/frontend/src/global_styles/content/_autocomplete.sass b/frontend/src/global_styles/content/_autocomplete.sass
index 85980a95545..fb2b6d85715 100644
--- a/frontend/src/global_styles/content/_autocomplete.sass
+++ b/frontend/src/global_styles/content/_autocomplete.sass
@@ -87,7 +87,7 @@ div.autocomplete
.ng-placeholder
top: 1px !important
- color: var(--color-fg-muted)
+ color: var(--color-fg-subtle)
@include text-shortener
input
diff --git a/modules/meeting/app/components/meeting_agenda_items/form_component.sass b/modules/meeting/app/components/meeting_agenda_items/form_component.sass
index d848e8ee41a..504784c181c 100644
--- a/modules/meeting/app/components/meeting_agenda_items/form_component.sass
+++ b/modules/meeting/app/components/meeting_agenda_items/form_component.sass
@@ -9,6 +9,14 @@
&--actions
justify-self: end
+ // Render an icon in front of the placeholder
+ &--presenter
+ .ng-placeholder
+ @extend .icon-user
+ &:before
+ @include icon-font-common
+ margin-right: 10px
+
@media screen and (max-width: $breakpoint-md)
grid-template-columns: 100px minmax(0, 100%)
grid-template-areas: "title title" "duration presenter" "notes notes" "add_note actions"
diff --git a/modules/meeting/app/forms/meeting_agenda_item/presenter.rb b/modules/meeting/app/forms/meeting_agenda_item/presenter.rb
index 3dcb761f793..9e41e1ca3d1 100644
--- a/modules/meeting/app/forms/meeting_agenda_item/presenter.rb
+++ b/modules/meeting/app/forms/meeting_agenda_item/presenter.rb
@@ -44,6 +44,7 @@ class MeetingAgendaItem::Presenter < ApplicationForm
focusDirectly: false,
multiple: false,
appendTo: "body",
+ placeholder: I18n.t("activerecord.attributes.meeting_agenda_item.presenter"),
disabled: @disabled
}
)