Revision 1086
Added by Jean-Philippe Lang over 17 years ago
trunk/app/helpers/custom_fields_helper.rb | ||
---|---|---|
28 | 28 |
text_field('custom_value', 'value', :name => field_name, :id => field_id, :size => 10) + |
29 | 29 |
calendar_for(field_id) |
30 | 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 | 32 |
when "bool" |
33 | 33 |
check_box 'custom_value', 'value', :name => field_name, :id => field_id |
34 | 34 |
when "list" |
trunk/app/views/issues/_form.rhtml | ||
---|---|---|
38 | 38 |
:accesskey => accesskey(:edit), |
39 | 39 |
:class => 'wiki-edit' %></p> |
40 | 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 %> |
|
42 |
<p><%= custom_field_tag_with_label @custom_value %></p> |
|
43 |
<% end %> |
|
44 | 41 |
|
42 |
<%= render :partial => 'form_custom_fields', :locals => {:values => @custom_values} %> |
|
43 |
|
|
45 | 44 |
<% if @issue.new_record? %> |
46 | 45 |
<p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%> |
47 | 46 |
<%= image_to_function "add.png", "addFileField();return false" %></label> |
trunk/app/views/issues/_form_custom_fields.rhtml | ||
---|---|---|
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> |
|
0 | 10 |
Also available in: Unified diff
Display custom fields in two columns on the issue form.