% custom_field_values = @issue.editable_custom_field_values %> <% custom_field_values_full_width = custom_field_values.select { |value| value.custom_field.full_width_layout? } %> <% custom_field_values -= custom_field_values_full_width %> <% if custom_field_values.present? %>
<%= custom_field_tag_with_label :issue, value, :required => @issue.required_attribute?(value.custom_field_id) %>
<% if i == split_on -%><%= custom_field_tag_with_label :issue, value, :required => @issue.required_attribute?(value.custom_field_id) %>
<% end %>