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

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

app/views/projects/settings/_activities.html.erb

index 27a27de5d706f93603829139dcf81ccb34353398..2cd066ee20f33f9cfa9ae6c3c896d2c01827f5e5 100644 (file)
@@ -7,7 +7,7 @@
     <% TimeEntryActivity.new.available_custom_fields.each do |value| %>
     <th><%= value.name %></th>
     <% end %>
-    <th><%= l(:field_active) %></th>
+    <th><%= toggle_checkboxes_link('input.enumerations_active') %> <%= l(:field_active) %></th>
   </tr></thead>
 
   <% @project.activities(true).each do |enumeration| %>
@@ -24,7 +24,7 @@
     </td>
     <% end %>
     <td>
-      <%= ff.check_box :active %>
+      <%= ff.check_box :active, :class => 'enumerations_active' %>
     </td>
   </tr>
   <% end %>