diff --git a/app/components/work_packages/exports/column_selection_component.html.erb b/app/components/work_packages/exports/column_selection_component.html.erb index 3db7647073cd..738bef270c8d 100644 --- a/app/components/work_packages/exports/column_selection_component.html.erb +++ b/app/components/work_packages/exports/column_selection_component.html.erb @@ -9,7 +9,7 @@ selected: selected_columns, protected: protected_options, inputCaption: caption, - inputLabel: I18n.t(:"queries.configure_view.columns.input_label"), + inputLabel: label, inputPlaceholder: I18n.t(:"queries.configure_view.columns.input_placeholder"), dragAreaLabel: I18n.t(:"queries.configure_view.columns.drag_area_label"), } diff --git a/app/components/work_packages/exports/column_selection_component.rb b/app/components/work_packages/exports/column_selection_component.rb index 7715b74cd5eb..e99625ca6188 100644 --- a/app/components/work_packages/exports/column_selection_component.rb +++ b/app/components/work_packages/exports/column_selection_component.rb @@ -33,14 +33,16 @@ module Exports class ColumnSelectionComponent < ApplicationComponent include WorkPackagesHelper - attr_reader :query, :id, :caption + attr_reader :query, :id, :caption, :label - def initialize(query, id, caption) + def initialize(query, id, caption, + label = I18n.t(:"queries.configure_view.columns.input_label")) super() @query = query @id = id @caption = caption + @label = label end def available_columns diff --git a/app/components/work_packages/exports/pdf/report/export_settings_component.html.erb b/app/components/work_packages/exports/pdf/report/export_settings_component.html.erb index b35226de16a8..95e026d32eda 100644 --- a/app/components/work_packages/exports/pdf/report/export_settings_component.html.erb +++ b/app/components/work_packages/exports/pdf/report/export_settings_component.html.erb @@ -3,7 +3,8 @@ <%= render WorkPackages::Exports::ColumnSelectionComponent.new( query, "columns-select-export-pdf-report", - I18n.t("export.dialog.columns.input_caption_report") + I18n.t("export.dialog.columns.input_caption_report"), + I18n.t("export.dialog.columns.input_label_report") ) %> <% end %> <% container.with_row do |_columns| %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 31a3f8845185..799ab5fe185f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1764,7 +1764,8 @@ en: xls: label: "XLS" columns: - input_caption_report: "By default all attributes added as columns in the work package list are selected." + input_label_report: "Add columns to attribute table" + input_caption_report: "By default all attributes added as columns in the work package list are selected. Long text fields are not available in the attribute table, but can be displayed below it." input_caption_table: "By default all attributes added as columns in the work package list are selected. Long text fields are not available in table based exports." pdf: export_type: