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
readd select/unselect in project settings
ulferts071459305a63
diff --git a/app/assets/javascripts/specific/toggable_fieldset.js b/app/assets/javascripts/specific/toggable_fieldset.jsindex d03dc659a14..815f5e4f02c 100644--- a/app/assets/javascripts/specific/toggable_fieldset.js+++ b/app/assets/javascripts/specific/toggable_fieldset.js@@ -66,7 +66,7 @@ function getFieldset(el) {function toggleFieldset(el) {var fieldset = getFieldset(el);- var contentArea = fieldset.find('> div').not('.form--fieldset-control');+ var contentArea = fieldset.find('> div').not('.form--toolbar');fieldset.toggleClass('collapsed');contentArea.slideToggle('fast', null);diff --git a/app/assets/stylesheets/content/_forms.lsg b/app/assets/stylesheets/content/_forms.lsgindex f07ee4c25c9..ce40a1df4d7 100644--- a/app/assets/stylesheets/content/_forms.lsg+++ b/app/assets/stylesheets/content/_forms.lsg@@ -496,8 +496,8 @@<legend class="form--fieldset-legend">Various information</legend>- <div class="form--fieldset-control">- <span class="form--fieldset-control-container">+ <div class="form--toolbar">+ <span class="form--toolbar-item">(<a href="#">Check all</a> | <a href="#">Uncheck all</a>)</span></div>diff --git a/app/assets/stylesheets/content/_forms.sass b/app/assets/stylesheets/content/_forms.sassindex f0d14db6880..14fd72fe02d 100644--- a/app/assets/stylesheets/content/_forms.sass+++ b/app/assets/stylesheets/content/_forms.sass@@ -264,19 +264,22 @@ fieldset.form--fieldset#sidebar .form--fieldset-legend@include varprop(color, main-menu-fieldset-header-color)-.form--fieldset-control+.form--toolbarfloat: right- margin-top: -2.8remtext-align: rightcolor: lighten($body-font-color, 10)font-size: 1remfont-style: italicline-height: 1.8+ margin-top: -1.8rem++ fieldset > &+ margin-top: -2.8rema:hovertext-decoration: none-.form--fieldset-control-container+.form--toolbar-itempadding: 0 0.25rembackground-color: inheritdiff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rbindex aaa3c6ee031..ddb0a42f7c7 100644--- a/app/helpers/application_helper.rb+++ b/app/helpers/application_helper.rb@@ -373,9 +373,9 @@ module ApplicationHelperenddef check_all_links(form_name)- link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") ++ link_to_function(t(:button_check_all), "checkAll('#{form_name}', true)") +' | ' +- link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)")+ link_to_function(t(:button_uncheck_all), "checkAll('#{form_name}', false)")enddef current_layoutdiff --git a/app/views/project_settings/activities.html.erb b/app/views/project_settings/activities.html.erbindex 3cc7b0f257e..5b7c309d643 100644--- a/app/views/project_settings/activities.html.erb+++ b/app/views/project_settings/activities.html.erb@@ -29,9 +29,9 @@ See docs/COPYRIGHT.rdoc for more details.<%= toolbar title: l(:enumeration_activities) %><% if TimeEntryActivity.any? %>- <%= form_tag project_time_entry_activities_path(@project),- method: :put,- class: "tabular" do %>+ <%= labelled_tabular_form_for @project,+ url: project_time_entry_activities_path(@project),+ method: :put do %><%= render partial: 'projects/form/activities', locals: { project: @project, withControlls: true } %><% end %>diff --git a/app/views/project_settings/modules.html.erb b/app/views/project_settings/modules.html.erbindex 78b2ff4f384..8925ea11fcc 100644--- a/app/views/project_settings/modules.html.erb+++ b/app/views/project_settings/modules.html.erb@@ -26,10 +26,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<%= toolbar title: l(:label_module_plural) %>+<%= toolbar title: t(:label_module_plural) %><%= labelled_tabular_form_for @project,- url: { controller: '/projects', action: 'modules', id: @project },+ url: settings_modules_project_path(@project),method: :put do |form| %><%= render partial: "/projects/form/modules",diff --git a/app/views/projects/form/_activities.html.erb b/app/views/projects/form/_activities.html.erbindex c185b1665bf..da5b51fce61 100644--- a/app/views/projects/form/_activities.html.erb+++ b/app/views/projects/form/_activities.html.erb@@ -27,6 +27,8 @@ See docs/COPYRIGHT.rdoc for more details.++#%>+<%= render partial: 'projects/form/toolbar', locals: { form_name: "edit_project_#{@project.id}" } %>+<% TimeEntryActivity.includes(:time_entry_activities_projects).order(:name)diff --git a/app/views/projects/form/_custom_fields.html.erb b/app/views/projects/form/_custom_fields.html.erbindex f1837a23641..d05d9fd3f26 100644--- a/app/views/projects/form/_custom_fields.html.erb+++ b/app/views/projects/form/_custom_fields.html.erb@@ -27,6 +27,8 @@ See docs/COPYRIGHT.rdoc for more details.++#%>+<%= render partial: 'projects/form/toolbar', locals: { form_name: "modules-form" } %>+<div class="generic-table--container"><div class="generic-table--results-container"><table class="generic-table">diff --git a/app/views/projects/form/_modules.html.erb b/app/views/projects/form/_modules.html.erbindex 2be0669cd87..c3acf0b3eb4 100644--- a/app/views/projects/form/_modules.html.erb+++ b/app/views/projects/form/_modules.html.erb@@ -27,6 +27,8 @@ See docs/COPYRIGHT.rdoc for more details.++#%>+<%= render partial: 'projects/form/toolbar', locals: { form_name: "edit_project_#{@project.id}" } %>+<% sorted_modules = OpenProject::AccessControl.available_project_modules.sort_by { |name| l_or_humanize(name, prefix: "project_module_") } %><% sorted_modules.each do |name| %><div class="form--field">diff --git a/app/views/projects/form/_toolbar.html.erb b/app/views/projects/form/_toolbar.html.erbnew file mode 100644index 00000000000..796515621a5--- /dev/null+++ b/app/views/projects/form/_toolbar.html.erb@@ -0,0 +1,34 @@+<%#-- copyright+OpenProject is an open source project management software.+Copyright (C) 2012-2020 the OpenProject GmbH++This program is free software; you can redistribute it and/or+modify it under the terms of the GNU General Public License version 3.++OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+Copyright (C) 2006-2017 Jean-Philippe Lang+Copyright (C) 2010-2013 the ChiliProject Team++This program is free software; you can redistribute it and/or+modify it under the terms of the GNU General Public License+as published by the Free Software Foundation; either version 2+of the License, or (at your option) any later version.++This program is distributed in the hope that it will be useful,+but WITHOUT ANY WARRANTY; without even the implied warranty of+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+GNU General Public License for more details.++You should have received a copy of the GNU General Public License+along with this program; if not, write to the Free Software+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.++See docs/COPYRIGHT.rdoc for more details.++++#%>++<div class="form--toolbar">+ <span class="form--toolbar-item">+ <%= check_all_links form_name %>+ </span>+</div>diff --git a/app/views/projects/form/_types.html.erb b/app/views/projects/form/_types.html.erbindex 59724e792d5..298d58dc9d5 100644--- a/app/views/projects/form/_types.html.erb+++ b/app/views/projects/form/_types.html.erb@@ -30,14 +30,16 @@ See docs/COPYRIGHT.rdoc for more details.<%= javascript_include_tag 'types_checkboxes' %><%= render_flash_message :notice,- l(:notice_automatic_set_of_standard_type),+ t(:notice_automatic_set_of_standard_type),style: "display:none;",id: "types_flash_notice",class: "ignored-by-flash-activation" %>+<%= render partial: 'projects/form/toolbar', locals: { form_name: "types-form" } %>+<div class="generic-table--container"><div class="generic-table--results-container">- <table class="generic-table types" id="types-form">+ <table class="generic-table types"><colgroup><col highlight-col><col highlight-col>diff --git a/app/views/roles/_permissions.html.erb b/app/views/roles/_permissions.html.erbindex bae294e668a..55490fb7523 100644--- a/app/views/roles/_permissions.html.erb+++ b/app/views/roles/_permissions.html.erb@@ -34,8 +34,8 @@ See docs/COPYRIGHT.rdoc for more details.<legend class="form--fieldset-legend"><%= mod.blank? ? Project.model_name.human : l_or_humanize(mod, prefix: 'project_module_') %></legend>- <div class="form--fieldset-control">- <span class="form--fieldset-control-container">+ <div class="form--toolbar">+ <span class="form--toolbar-item">(<%= check_all_links module_name %>)</span></div>diff --git a/app/views/roles/report.html.erb b/app/views/roles/report.html.erbindex ede6916a255..4b0a10c4c30 100644--- a/app/views/roles/report.html.erb+++ b/app/views/roles/report.html.erb@@ -44,8 +44,8 @@ See docs/COPYRIGHT.rdoc for more details.<legend class="form--fieldset-legend" ><%= mod.blank? ? I18n.t('attributes.project') : l_or_humanize(mod, prefix: 'project_module_') %></legend>- <div class="form--fieldset-control">- <span class="form--fieldset-control-container">+ <div class="form--toolbar">+ <span class="form--toolbar-item">(<%= check_all_links module_name %>)</span></div>diff --git a/app/views/settings/_notifications.html.erb b/app/views/settings/_notifications.html.erbindex 691b724a9e3..379c45f7266 100644--- a/app/views/settings/_notifications.html.erb+++ b/app/views/settings/_notifications.html.erb@@ -38,8 +38,8 @@ See docs/COPYRIGHT.rdoc for more details.<legend class="form--fieldset-legend"><%= t(:text_select_mail_notifications) %></legend>- <div class="form--fieldset-control">- <span class="form--fieldset-control-container">+ <div class="form--toolbar">+ <span class="form--toolbar-item">(<%= check_all_links 'notified_events' %>)</span></div>diff --git a/app/views/types/form/_projects.html.erb b/app/views/types/form/_projects.html.erbindex 613650f58c2..3d645c1aa00 100644--- a/app/views/types/form/_projects.html.erb+++ b/app/views/types/form/_projects.html.erb@@ -36,8 +36,8 @@ See docs/COPYRIGHT.rdoc for more details.<%= t('types.edit.enabled_projects') %></legend><div>- <div class="form--fieldset-control">- <span class="form--fieldset-control-container">+ <div class="form--toolbar">+ <span class="form--toolbar-item">(<%= check_all_links 'type_project_ids' %>)</span></div>diff --git a/app/views/work_packages/reports/_report_category.html.erb b/app/views/work_packages/reports/_report_category.html.erbindex ddc7a48306a..7f9a1535e71 100644--- a/app/views/work_packages/reports/_report_category.html.erb+++ b/app/views/work_packages/reports/_report_category.html.erb@@ -29,8 +29,8 @@ See docs/COPYRIGHT.rdoc for more details.<div class="form--fieldset"><div class="form--fieldset-legend"><%= WorkPackage.human_attribute_name(report.report_type) %></div>- <div class="form--fieldset-control">- <span class="form--fieldset-control-container">+ <div class="form--toolbar">+ <span class="form--toolbar-item"><%= link_to(icon_wrapper('icon icon-zoom-in',l(:text_analyze, subject: WorkPackage.human_attribute_name(report.report_type))),{action: 'report_details', detail: report.report_type},title: l(:text_analyze, subject: WorkPackage.human_attribute_name(report.report_type)),diff --git a/modules/backlogs/app/views/project_settings/backlogs_settings.html.erb b/modules/backlogs/app/views/project_settings/backlogs_settings.html.erbindex c98993b9123..c47967d127c 100644--- a/modules/backlogs/app/views/project_settings/backlogs_settings.html.erb+++ b/modules/backlogs/app/views/project_settings/backlogs_settings.html.erb@@ -29,7 +29,9 @@ See docs/COPYRIGHT.rdoc for more details.<%= toolbar title: l('backlogs.definition_of_done') %>-<%= styled_form_tag(controller: '/projects', action: "project_done_statuses", id: @project) do %>+<%= render partial: 'projects/form/toolbar', locals: { form_name: "edit_project_#{@project.id}" } %>++<%= styled_form_tag({controller: '/projects', action: "project_done_statuses", id: @project}, id: "edit_project_#{@project.id}") do %><div class="generic-table--container"><div class="generic-table--results-container">diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erbindex bd8ef4a5b6a..bddf22de456 100644--- a/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erb+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/_form.html.erb@@ -36,8 +36,8 @@<legend class="form--fieldset-legend" title="<%= t 'webhooks.outgoing.form.events.title' %>"><%= t 'webhooks.outgoing.form.events.title' %></legend>- <div class="form--fieldset-control">- <span class="form--fieldset-control-container">+ <div class="form--toolbar">+ <span class="form--toolbar-item">(<%= check_all_links 'webhooks-selected-events' %>)</span></div>