git-svn-id: https://dev.finn.de/svn/cockpit/trunk@75 7926756e-e54e-46e6-9721-ed318f58905epull/6827/head
parent
bdff1ca6af
commit
5028cc3f1f
@ -0,0 +1,8 @@ |
||||
<% if not @project.nil? and @project.module_enabled? :costs_module %> |
||||
<% myselect = select_tag('deliverable_id', |
||||
content_tag('option', l(:label_no_change_option), :value => '') + |
||||
content_tag('option', l(:label_none), :value => 'none') + |
||||
options_from_collection_for_select(Deliverable.find_all_by_project_id(@project.id, :order => 'subject ASC'), :id, :subject)) |
||||
%> |
||||
<%= content_tag(:p, "<label>#{l(:field_deliverable)}: " + myselect + "</label>")%> |
||||
<% end %> |
@ -0,0 +1,5 @@ |
||||
<% if not @project.nil? and @project.module_enabled? :costs_module %> |
||||
<p> |
||||
<%= form.select :deliverable_id, Deliverable.find_all_by_project_id(@project, :order => 'subject ASC').collect { |d| [d.subject, d.id] }, :include_blank => true%> |
||||
</p> |
||||
<% end %> |
Loading…
Reference in new issue