Mercurial > hg > soundsoftware-site
comparison .svn/pristine/f0/f09b6e4f323b9ff95f7e37e9563baf9176cbadb4.svn-base @ 1296:038ba2d95de8 redmine-2.2
Fix redmine-2.2 branch update (add missing svn files)
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:05:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1296:038ba2d95de8 |
---|---|
1 <h2><%= link_to l(:label_tracker_plural), trackers_path %> » <%= l(:field_summary) %></h2> | |
2 | |
3 <% if @trackers.any? %> | |
4 <%= form_tag({}) do %> | |
5 <div class="autoscroll"> | |
6 <table class="list"> | |
7 <thead> | |
8 <tr> | |
9 <th></th> | |
10 <% @trackers.each do |tracker| %> | |
11 <th> | |
12 <%= tracker.name %> | |
13 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.tracker-#{tracker.id}')", | |
14 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
15 </th> | |
16 <% end %> | |
17 </tr> | |
18 </thead> | |
19 <tbody> | |
20 <tr class="group open"> | |
21 <td colspan="<%= @trackers.size + 1 %>"> | |
22 <span class="expander" onclick="toggleRowGroup(this);"> </span> | |
23 <%= l(:field_core_fields) %> | |
24 </td> | |
25 </tr> | |
26 <% Tracker::CORE_FIELDS.each do |field| %> | |
27 <tr class="<%= cycle("odd", "even") %>"> | |
28 <td> | |
29 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.core-field-#{field}')", | |
30 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
31 <%= l("field_#{field}".sub(/_id$/, '')) %> | |
32 </td> | |
33 <% @trackers.each do |tracker| %> | |
34 <td align="center"> | |
35 <%= check_box_tag "trackers[#{tracker.id}][core_fields][]", field, tracker.core_fields.include?(field), | |
36 :class => "tracker-#{tracker.id} core-field-#{field}" %> | |
37 </td> | |
38 <% end %> | |
39 </tr> | |
40 <% end %> | |
41 <% if @custom_fields.any? %> | |
42 <tr class="group open"> | |
43 <td colspan="<%= @trackers.size + 1 %>"> | |
44 <span class="expander" onclick="toggleRowGroup(this);"> </span> | |
45 <%= l(:label_custom_field_plural) %> | |
46 </td> | |
47 </tr> | |
48 <% @custom_fields.each do |field| %> | |
49 <tr class="<%= cycle("odd", "even") %>"> | |
50 <td> | |
51 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.custom-field-#{field.id}')", | |
52 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
53 <%= field.name %> | |
54 </td> | |
55 <% @trackers.each do |tracker| %> | |
56 <td align="center"> | |
57 <%= check_box_tag "trackers[#{tracker.id}][custom_field_ids][]", field.id, tracker.custom_fields.include?(field), | |
58 :class => "tracker-#{tracker.id} custom-field-#{field.id}" %> | |
59 </td> | |
60 <% end %> | |
61 </tr> | |
62 <% end %> | |
63 <% end %> | |
64 </tbody> | |
65 </table> | |
66 </div> | |
67 <p><%= submit_tag l(:button_save) %></p> | |
68 <% @trackers.each do |tracker| %> | |
69 <%= hidden_field_tag "trackers[#{tracker.id}][core_fields][]", '' %> | |
70 <%= hidden_field_tag "trackers[#{tracker.id}][custom_field_ids][]", '' %> | |
71 <% end %> | |
72 <% end %> | |
73 <% else %> | |
74 <p class="nodata"><%= l(:label_no_data) %></p> | |
75 <% end %> | |
76 | |
77 <% html_title l(:field_summary) %> |