##// END OF EJS Templates
Display custom fields in two columns on the issue form....
Jean-Philippe Lang -
r1072:0b4a02f607a1
parent child
Show More
@@ -0,0 +1,9
1 <div class="splitcontentleft">
2 <% values.each_with_index do |value, i| %>
3 <p><%= custom_field_tag_with_label value %></p>
4 <% if i >= values.size / 2 - 1 %>
5 </div><div class="splitcontentright">
6 <% end %>
7 <% end %>
8 </div>
9 <div style="clear:both;"> </div>
@@ -28,7 +28,7 module CustomFieldsHelper
28 text_field('custom_value', 'value', :name => field_name, :id => field_id, :size => 10) +
28 text_field('custom_value', 'value', :name => field_name, :id => field_id, :size => 10) +
29 calendar_for(field_id)
29 calendar_for(field_id)
30 when "text"
30 when "text"
31 text_area 'custom_value', 'value', :name => field_name, :id => field_id, :cols => 60, :rows => 3
31 text_area 'custom_value', 'value', :name => field_name, :id => field_id, :rows => 3, :style => 'width:99%'
32 when "bool"
32 when "bool"
33 check_box 'custom_value', 'value', :name => field_name, :id => field_id
33 check_box 'custom_value', 'value', :name => field_name, :id => field_id
34 when "list"
34 when "list"
@@ -38,9 +38,8
38 :accesskey => accesskey(:edit),
38 :accesskey => accesskey(:edit),
39 :class => 'wiki-edit' %></p>
39 :class => 'wiki-edit' %></p>
40 <p><%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p>
40 <p><%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p>
41 <% for @custom_value in @custom_values %>
41
42 <p><%= custom_field_tag_with_label @custom_value %></p>
42 <%= render :partial => 'form_custom_fields', :locals => {:values => @custom_values} %>
43 <% end %>
44
43
45 <% if @issue.new_record? %>
44 <% if @issue.new_record? %>
46 <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
45 <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
General Comments 0
You need to be logged in to leave comments. Login now