##// END OF EJS Templates
Render projects as a tree in the project select field....
Jean-Philippe Lang -
r8414:c164211c3f35
parent child
Show More
@@ -8,7 +8,7
8 <% end %>
8 <% end %>
9
9
10 <% if !@issue.new_record? && @issue.safe_attribute?('project_id') %>
10 <% if !@issue.new_record? && @issue.safe_attribute?('project_id') %>
11 <p><%= f.select :project_id, Issue.allowed_target_projects_on_move.collect {|t| [t.name, t.id]}, :required => true %></p>
11 <p><%= f.select :project_id, project_tree_options_for_select(Issue.allowed_target_projects_on_move, :selected => @issue.project), :required => true %></p>
12 <%= observe_field :issue_project_id, :url => project_issue_form_path(@project, :id => @issue, :project_change => '1'),
12 <%= observe_field :issue_project_id, :url => project_issue_form_path(@project, :id => @issue, :project_change => '1'),
13 :with => "Form.serialize('issue-form')" %>
13 :with => "Form.serialize('issue-form')" %>
14 <% end %>
14 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now