build label for cost objects inside issue bulk edit form using rails' helpers instead of string concat

pull/6827/head
jwollert 13 years ago
parent 6def2e627e
commit 3f1d9c2cf5
  1. 2
      app/views/hooks/_view_issues_bulk_edit_details_bottom.rhtml

@ -4,5 +4,5 @@
content_tag('option', l(:label_none), :value => 'none') +
options_from_collection_for_select(CostObject.find_all_by_project_id(@project.id, :order => 'subject ASC'), :id, :subject))
%>
<%= content_tag(:p, "<label>#{l(:field_cost_object)}</label>" + myselect)%>
<%= content_tag :p, (content_tag "label", l(:field_cost_object), :for => 'cost_object_id') + myselect %>
<% end %>
Loading…
Cancel
Save