]> source.dussan.org Git - redmine.git/commitdiff
Adds toggle checkboxes to project modules from project settings (#28242).
authorGo MAEDA <maeda@farend.jp>
Mon, 26 Feb 2018 12:02:35 +0000 (12:02 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 26 Feb 2018 12:02:35 +0000 (12:02 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@17215 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/_form.html.erb

index 864bfb305baa03aa65ad0f3f7521f3f2f0caf492..5bd5a9f0c1c514b7c4d5fa7d9069cf232a33c6e2 100644 (file)
@@ -29,7 +29,7 @@
 </div>
 
 <% if @project.safe_attribute?('enabled_module_names') %>
-<fieldset class="box tabular"><legend><%= l(:label_module_plural) %></legend>
+<fieldset class="box tabular" id="project_modules"><legend><%= toggle_checkboxes_link('#project_modules input[type="checkbox"]') %><%= l(:label_module_plural) %></legend>
 <% Redmine::AccessControl.available_project_modules.each do |m| %>
     <label class="floating">
     <%= check_box_tag 'project[enabled_module_names][]', m, @project.module_enabled?(m), :id => "project_enabled_module_names_#{m}" %>