<%= title [l(:label_tracker_plural), trackers_path], l(:field_summary) %> <% if @trackers.any? %> <%= form_tag fields_trackers_path do %>
<% @trackers.each do |tracker| %> <% end %> <% Tracker::CORE_FIELDS.each do |field| %> <% field_name = l("field_#{field}".sub(/_id$/, '')) %> <% @trackers.each do |tracker| %> <% end %> <% end %> <% if @custom_fields.any? %> <% @custom_fields.each do |field| %> <% @trackers.each do |tracker| %> <% end %> <% end %> <% end %>
<%= link_to_function('', "toggleCheckboxesBySelector('input.tracker-#{tracker.id}')", :title => "#{l(:button_check_all)} / #{l(:button_uncheck_all)}", :class => 'icon-only icon-checked') %> <%= tracker.name %>
  <%= l(:field_core_fields) %>
<%= link_to_function('', "toggleCheckboxesBySelector('input.core-field-#{field}')", :title => "#{l(:button_check_all)} / #{l(:button_uncheck_all)}", :class => 'icon-only icon-checked') %> <%= field_name %> "> <%= check_box_tag "trackers[#{tracker.id}][core_fields][]", field, tracker.core_fields.include?(field), :class => "tracker-#{tracker.id} core-field-#{field}", :id => nil %>
  <%= l(:label_custom_field_plural) %>
<%= link_to_function('', "toggleCheckboxesBySelector('input.custom-field-#{field.id}')", :title => "#{l(:button_check_all)} / #{l(:button_uncheck_all)}", :class => 'icon-only icon-checked') %> <%= field.name %> "> <%= check_box_tag "trackers[#{tracker.id}][custom_field_ids][]", field.id, tracker.custom_fields.include?(field), :class => "tracker-#{tracker.id} custom-field-#{field.id}", :id => nil %>

<%= submit_tag l(:button_save) %>

<% @trackers.each do |tracker| %> <%= hidden_field_tag "trackers[#{tracker.id}][core_fields][]", '' %> <%= hidden_field_tag "trackers[#{tracker.id}][custom_field_ids][]", '' %> <% end %> <% end %> <% else %>

<%= l(:label_no_data) %>

<% end %>