To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / issues / _form_custom_fields.html.erb @ 1298:4f746d8966dd
History | View | Annotate | Download (428 Bytes)
| 1 |
<div class="splitcontent"> |
|---|---|
| 2 |
<div class="splitcontentleft"> |
| 3 |
<% i = 0 %>
|
| 4 |
<% split_on = (@issue.custom_field_values.size / 2.0).ceil - 1 %>
|
| 5 |
<% @issue.editable_custom_field_values.each do |value| %>
|
| 6 |
<p><%= custom_field_tag_with_label :issue, value, :required => @issue.required_attribute?(value.custom_field_id) %></p> |
| 7 |
<% if i == split_on -%>
|
| 8 |
</div><div class="splitcontentright"> |
| 9 |
<% end -%>
|
| 10 |
<% i += 1 -%>
|
| 11 |
<% end -%>
|
| 12 |
</div>
|
| 13 |
</div>
|