0006-replace-check_all_links-in-new-custom-field-form-wit.patch

Marius BALTEANU, 2017-12-16 11:04

Download (2.06 KB)

View differences:

app/views/custom_fields/_form.html.erb
100 100
    <%= hidden_field_tag 'custom_field[role_ids][]', '' %>
101 101
  </fieldset>
102 102

  
103
  <fieldset class="box" id="custom_field_tracker_ids"><legend><%=l(:label_tracker_plural)%></legend>
103
  <fieldset class="box" id="custom_field_tracker_ids"><legend><%= toggle_checkboxes_link("#custom_field_tracker_ids input[type=checkbox]") %><%=l(:label_tracker_plural)%></legend>
104 104
  <% tracker_ids = @custom_field.tracker_ids %>
105 105
  <% Tracker.sorted.each do |tracker| %>
106 106
    <%= check_box_tag "custom_field[tracker_ids][]",
......
112 112
    </label>
113 113
  <% end %>
114 114
  <%= hidden_field_tag "custom_field[tracker_ids][]", '' %>
115
  <p><%= check_all_links 'custom_field_tracker_ids' %></p>
116 115
  </fieldset>
117 116

  
118
  <fieldset class="box"><legend><%= l(:label_project_plural) %></legend>
117
  <fieldset class="box"><legend><%= toggle_checkboxes_link("#custom_field_project_ids input[type=checkbox]:enabled") %><%= l(:label_project_plural) %></legend>
119 118
    <p><%= f.check_box :is_for_all, :data => {:disables => '#custom_field_project_ids input'} %></p>
120 119

  
121 120
    <div id="custom_field_project_ids">
......
124 123
        content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, project_ids.include?(p.id), :id => nil) + ' ' + p)
125 124
      end %>
126 125
      <%= hidden_field_tag('custom_field[project_ids][]', '', :id => nil) %>
127
      <p><%= check_all_links 'custom_field_project_ids' %></p>
128 126
    </div>
129 127
  </fieldset>
130 128
<% end %>
131
-