Redmine-Jobs/app/views/time_entries/_edit_form_bottom.html.erb

9 lines
277 B
Plaintext

<p>
<%= form.label :job_id %>
<% if @project.nil? %>
<%= form.collection_select :job_id, Job.active, :id, :name, include_blank: true %>
<% else %>
<%= form.collection_select :job_id, Job.active.project_or_parent(@project), :id, :name, include_blank: true %>
<% end %>
</p>