split_custom_field_for_bulk_edit.diff

Shingo Hosotani, 2019-11-14 10:20

Download (1.25 KB)

View differences:

app/views/issues/bulk_edit.html.erb
94 94
</p>
95 95
<% end %>
96 96

  
97
<% @custom_fields.each do |custom_field| %>
98
  <p>
99
    <label><%= custom_field.name %></label>
100
    <%= custom_field_tag_for_bulk_edit('issue', custom_field, @issues, @issue_params[:custom_field_values][custom_field.id.to_s]) %>
101
  </p>
102
<% end %>
103

  
104 97
<% if @copy && Setting.link_copied_issue == 'ask' %>
105 98
<p>
106 99
  <label for='link_copy'><%= l(:label_link_copied_issue) %></label>
......
190 183
<% end %>
191 184
</div>
192 185
</div>
186

  
187
<% if @custom_fields.present? %>
188
<div class="splitcontent">
189
  <div class="splitcontentleft">
190
   <% i = 0 %>
191
   <% split_on = (@custom_fields.size / 2.0).ceil - 1 %>
192
   <% @custom_fields.each do |custom_field| %>
193
     <p>
194
       <label><%= custom_field.name %></label>
195
       <%= custom_field_tag_for_bulk_edit('issue', custom_field, @issues, @issue_params[:custom_field_values][custom_field.id.to_s]) %>
196
     </p>
197
     <% if i == split_on %>
198
       </div><div class="splitcontentright">
199
     <% end %>
200
     <% i += 1 %>
201
   <% end %>
202
  </div>
203
</div>
204
<% end %>
205

  
193 206
</fieldset>
194 207

  
195 208
<fieldset>