Display custom fields in two columns on the issue form.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1086 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b6549d763a
commit
0b4a02f607
|
@ -28,7 +28,7 @@ module CustomFieldsHelper
|
||||||
text_field('custom_value', 'value', :name => field_name, :id => field_id, :size => 10) +
|
text_field('custom_value', 'value', :name => field_name, :id => field_id, :size => 10) +
|
||||||
calendar_for(field_id)
|
calendar_for(field_id)
|
||||||
when "text"
|
when "text"
|
||||||
text_area 'custom_value', 'value', :name => field_name, :id => field_id, :cols => 60, :rows => 3
|
text_area 'custom_value', 'value', :name => field_name, :id => field_id, :rows => 3, :style => 'width:99%'
|
||||||
when "bool"
|
when "bool"
|
||||||
check_box 'custom_value', 'value', :name => field_name, :id => field_id
|
check_box 'custom_value', 'value', :name => field_name, :id => field_id
|
||||||
when "list"
|
when "list"
|
||||||
|
|
|
@ -38,9 +38,8 @@
|
||||||
:accesskey => accesskey(:edit),
|
:accesskey => accesskey(:edit),
|
||||||
:class => 'wiki-edit' %></p>
|
:class => 'wiki-edit' %></p>
|
||||||
<p><%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p>
|
<p><%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p>
|
||||||
<% for @custom_value in @custom_values %>
|
|
||||||
<p><%= custom_field_tag_with_label @custom_value %></p>
|
<%= render :partial => 'form_custom_fields', :locals => {:values => @custom_values} %>
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<% if @issue.new_record? %>
|
<% if @issue.new_record? %>
|
||||||
<p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
|
<p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
<div class="splitcontentleft">
|
||||||
|
<% values.each_with_index do |value, i| %>
|
||||||
|
<p><%= custom_field_tag_with_label value %></p>
|
||||||
|
<% if i >= values.size / 2 - 1 %>
|
||||||
|
</div><div class="splitcontentright">
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div style="clear:both;"> </div>
|
Loading…
Reference in New Issue