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

restyle column selection in administration

ulfertse2bdd4902946
diff --git a/app/views/admin/settings/projects_settings/show.html.erb b/app/views/admin/settings/projects_settings/show.html.erb
index bff17d6acb8..7aa2f0dbd84 100644
--- a/app/views/admin/settings/projects_settings/show.html.erb
+++ b/app/views/admin/settings/projects_settings/show.html.erb
@@ -60,38 +60,39 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% end %>
- <div class="form--field">
- <%= setting_block(:enabled_projects_columns) do %>
- <div class="form--text-field-container -wide">
- <%= angular_component_tag 'opce-draggable-autocompleter',
- inputs: {
- options: projects_columns_options,
- selected: selected_projects_columns_options,
- protected: protected_projects_columns_options,
- name: 'settings[enabled_projects_columns][]',
- id: 'settings_enabled_projects_columns',
- inputLabel: I18n.t(:'queries.configure_view.columns.input_label'),
- inputPlaceholder: I18n.t(:'queries.configure_view.columns.input_placeholder'),
- dragAreaLabel: I18n.t(:'queries.configure_view.columns.drag_area_label')
- }%>
- </div>
- <% end %>
+ <div class="form--field -full-width">
+ <div class="form--text-field-container -xwide">
+ <%= angular_component_tag 'opce-draggable-autocompleter',
+ inputs: {
+ options: projects_columns_options,
+ selected: selected_projects_columns_options,
+ protected: protected_projects_columns_options,
+ name: 'settings[enabled_projects_columns][]',
+ id: 'settings_enabled_projects_columns',
+ inputLabel: I18n.t(:'queries.configure_view.columns.input_label'),
+ inputPlaceholder: I18n.t(:'queries.configure_view.columns.input_placeholder'),
+ dragAreaLabel: I18n.t(:'queries.configure_view.columns.drag_area_label')
+ }%>
+ </div>
</div>
- <div class="form--field">
- <%= setting_block("project_gantt_query") do %>
- <span class="form--text-field-container">
- <%= content_tag 'editable-query-props',
- '',
- data: {
- name: 'settings[project_gantt_query]',
- id: 'settings_project_gantt_query',
- query: ::Projects::GanttQueryGeneratorService.current_query,
- 'url-params': 'true'
- }
- %>
+ <div class="form--field -vertical">
+ <div class="form--label -bold">
+ <%= I18n.t(:setting_project_gantt_query) %>
+ </div>
+ <span class="form--field-container">
+ <span class="form--text-field-container">
+ <%= content_tag 'editable-query-props',
+ '',
+ data: {
+ name: 'settings[project_gantt_query]',
+ id: 'settings_project_gantt_query',
+ query: ::Projects::GanttQueryGeneratorService.current_query,
+ 'url-params': 'true'
+ }
+ %>
+ </span>
</span>
- <% end %>
<div class="form--field-instructions">
<%= I18n.t(:setting_project_gantt_query_text) %>
</div>
diff --git a/app/views/admin/settings/work_packages_settings/show.html.erb b/app/views/admin/settings/work_packages_settings/show.html.erb
index cbcd83be334..6ffc38f88cc 100644
--- a/app/views/admin/settings/work_packages_settings/show.html.erb
+++ b/app/views/admin/settings/work_packages_settings/show.html.erb
@@ -66,26 +66,31 @@ See COPYRIGHT and LICENSE files for more details.
%>
</div>
<% end %>
+ </section>
- <hr class="form--separator -invisible"></hr>
+ <section class="form--section">
+ <fieldset class="form--fieldset">
+ <legend class="form--fieldset-legend"><%= t(:setting_column_options) %></legend>
- <div class="form--field">
- <%= setting_block(:work_package_list_default_columns) do %>
- <div class="form--text-field-container -wide">
- <%= angular_component_tag 'opce-draggable-autocompleter',
- inputs: {
- options: work_packages_columns_options,
- selected: selected_work_packages_columns_options,
- protected: protected_work_packages_columns_options,
- name: 'settings[work_package_list_default_columns][]',
- id: 'setting_column_options',
- inputLabel: I18n.t(:'queries.configure_view.columns.input_label'),
- inputPlaceholder: I18n.t(:'queries.configure_view.columns.input_placeholder'),
- dragAreaLabel: I18n.t(:'queries.configure_view.columns.drag_area_label')
- }%>
+ <div class="form--field -full-width">
+ <div class="form--field-container">
+ <div class="form--text-field-container -xwide">
+ <%= angular_component_tag 'opce-draggable-autocompleter',
+ inputs: {
+ options: work_packages_columns_options,
+ selected: selected_work_packages_columns_options,
+ protected: protected_work_packages_columns_options,
+ name: 'settings[work_package_list_default_columns][]',
+ id: 'setting_column_options',
+ inputLabel: I18n.t(:'queries.configure_view.columns.input_label'),
+ inputPlaceholder: I18n.t(:'queries.configure_view.columns.input_placeholder'),
+ dragAreaLabel: I18n.t(:'queries.configure_view.columns.drag_area_label')
+ }%>
+ </div>
</div>
- <% end %>
- </div>
+ </div>
+ </fieldset>
</section>
+
<%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
<% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index d28e7107ab0..f4441c6e569 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2906,6 +2906,7 @@ en:
setting_brute_force_block_minutes: "Time the user is blocked for"
setting_cache_formatted_text: "Cache formatted text"
setting_use_wysiwyg_description: "Select to enable CKEditor5 WYSIWYG editor for all users by default. CKEditor has limited functionality for GFM Markdown."
+ setting_column_options: "Default work package lists columns"
setting_commit_fix_keywords: "Fixing keywords"
setting_commit_logs_encoding: "Commit messages encoding"
setting_commit_logtime_activity_id: "Activity for logged time"
@@ -2938,7 +2939,6 @@ en:
setting_work_package_done_ratio_field: "The work package field"
setting_work_package_done_ratio_status: "The work package status"
setting_work_package_done_ratio_disabled: "Disable (hide the % Complete field)"
- setting_work_package_list_default_columns: "Columns in a work packages list displayed by default"
setting_work_package_properties: "Work package properties"
setting_work_package_startdate_is_adddate: "Use current date as start date for new work packages"
setting_work_packages_projects_export_limit: "Work packages / Projects export limit"
@@ -3069,7 +3069,7 @@ en:
projects:
missing_dependencies: "Project module %{module} was checked which depends on %{dependencies}. You need to check these dependencies as well."
section_new_projects: "Settings for new projects"
- section_project_overview: "Settings for project overview list"
+ section_project_overview: "Settings for project lists"
session: "Session"
user:
default_preferences: "Default preferences"
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index 0c01211d278..018ad01cd11 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -538,6 +538,10 @@ fieldset.form--fieldset
&.-with-bottom-spacing
margin-bottom: 1rem
+ .form--field.-vertical &
+ @include grid-size(12)
+ @include grid-offset(0)
+
.form--field-error
@extend %form--field-after-container
font-style: italic