##// END OF EJS Templates
tagged version 3.0.0...
tagged version 3.0.0 git-svn-id: http://svn.redmine.org/redmine/tags/3.0.0@14042 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12381:d302450731e8
r13660:0ab75f945d74 3.0.0
Show More
fields.html.erb
75 lines | 3.0 KiB | text/plain | TextLexer
Jean-Philippe Lang
Adds missing html titles (#14517)....
r11820 <%= title [l(:label_tracker_plural), trackers_path], l(:field_summary) %>
Jean-Philippe Lang
Adds a view for editing all trackers fields....
r10100
<% if @trackers.any? %>
Jean-Philippe Lang
Code cleanup, use named routes....
r10848 <%= form_tag fields_trackers_path do %>
Jean-Philippe Lang
Adds a view for editing all trackers fields....
r10100 <div class="autoscroll">
<table class="list">
<thead>
<tr>
<th></th>
<% @trackers.each do |tracker| %>
<th>
<%= tracker.name %>
<%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.tracker-#{tracker.id}')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
</th>
<% end %>
</tr>
</thead>
<tbody>
<tr class="group open">
<td colspan="<%= @trackers.size + 1 %>">
<span class="expander" onclick="toggleRowGroup(this);">&nbsp;</span>
<%= l(:field_core_fields) %>
</td>
</tr>
<% Tracker::CORE_FIELDS.each do |field| %>
<tr class="<%= cycle("odd", "even") %>">
Jean-Philippe Lang
Removed deprecated align and width html attributes (#15307)....
r12038 <td class="name">
Jean-Philippe Lang
Adds a view for editing all trackers fields....
r10100 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.core-field-#{field}')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
<%= l("field_#{field}".sub(/_id$/, '')) %>
</td>
<% @trackers.each do |tracker| %>
Jean-Philippe Lang
Removed deprecated align and width html attributes (#15307)....
r12038 <td>
Jean-Philippe Lang
Adds a view for editing all trackers fields....
r10100 <%= check_box_tag "trackers[#{tracker.id}][core_fields][]", field, tracker.core_fields.include?(field),
Jean-Philippe Lang
Removes duplicate ids (#15485)....
r12381 :class => "tracker-#{tracker.id} core-field-#{field}", :id => nil %>
Jean-Philippe Lang
Adds a view for editing all trackers fields....
r10100 </td>
<% end %>
</tr>
<% end %>
<% if @custom_fields.any? %>
<tr class="group open">
<td colspan="<%= @trackers.size + 1 %>">
<span class="expander" onclick="toggleRowGroup(this);">&nbsp;</span>
<%= l(:label_custom_field_plural) %>
</td>
</tr>
<% @custom_fields.each do |field| %>
<tr class="<%= cycle("odd", "even") %>">
Jean-Philippe Lang
Removed deprecated align and width html attributes (#15307)....
r12038 <td class="name">
Jean-Philippe Lang
Adds a view for editing all trackers fields....
r10100 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.custom-field-#{field.id}')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
<%= field.name %>
</td>
<% @trackers.each do |tracker| %>
Jean-Philippe Lang
Removed deprecated align and width html attributes (#15307)....
r12038 <td>
Jean-Philippe Lang
Adds a view for editing all trackers fields....
r10100 <%= check_box_tag "trackers[#{tracker.id}][custom_field_ids][]", field.id, tracker.custom_fields.include?(field),
Jean-Philippe Lang
Removes duplicate ids (#15485)....
r12381 :class => "tracker-#{tracker.id} custom-field-#{field.id}", :id => nil %>
Jean-Philippe Lang
Adds a view for editing all trackers fields....
r10100 </td>
<% end %>
</tr>
<% end %>
<% end %>
</tbody>
</table>
</div>
<p><%= submit_tag l(:button_save) %></p>
<% @trackers.each do |tracker| %>
<%= hidden_field_tag "trackers[#{tracker.id}][core_fields][]", '' %>
<%= hidden_field_tag "trackers[#{tracker.id}][custom_field_ids][]", '' %>
<% end %>
<% end %>
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>