deliverable select for issues

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@75 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent bdff1ca6af
commit 5028cc3f1f
  1. 8
      app/views/hooks/_view_issues_bulk_edit_details_bottom.rhtml
  2. 5
      app/views/hooks/_view_issues_form_details_bottom.rhtml

@ -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…
Cancel
Save