ProjectsController#add_issue moved to IssuesController#new.
Tracker can now be changed/selected on the new issue form. This action can be invoked without the tracker_id parameter (the first enabled tracker will be used by default). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1080 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
<%= error_messages_for 'issue' %>
|
||||
<div class="box">
|
||||
|
||||
<% if @issue.new_record? %>
|
||||
<p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p>
|
||||
<%= observe_field :issue_tracker_id, :url => { :action => :new },
|
||||
:update => :content,
|
||||
:with => "Form.serialize('issue-form')" %>
|
||||
<% end %>
|
||||
|
||||
<div class="splitcontentleft">
|
||||
<% if @issue.new_record? %>
|
||||
<p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %></p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% if authorize_for('projects', 'add_issue') && @project.trackers.any? %>
|
||||
<% if authorize_for('issues', 'new') && @project.trackers.any? %>
|
||||
<h3><%= l(:label_issue_new) %></h3>
|
||||
<%= l(:label_tracker) %>: <%= new_issue_selector %>
|
||||
<% end %>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
:selected => @issue.assigned_to.nil?, :disabled => !@can[:assign] %></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><%= context_menu_link l(:button_copy), {:controller => 'projects', :action => 'add_issue', :id => @project, :copy_from => @issue},
|
||||
<li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue},
|
||||
:class => 'icon-copy', :disabled => !@can[:copy] %></li>
|
||||
<li><%= context_menu_link l(:button_move), {:controller => 'projects', :action => 'move_issues', :id => @project, "issue_ids[]" => @issue.id },
|
||||
:class => 'icon-move', :disabled => !@can[:move] %>
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
<h2><%=l(:label_issue_new)%>: <%= @issue.tracker %></h2>
|
||||
|
||||
<% labelled_tabular_form_for :issue, @issue,
|
||||
:url => {:action => 'add_issue'},
|
||||
:html => {:multipart => true, :id => 'issue-form'} do |f| %>
|
||||
<%= f.hidden_field :tracker_id %>
|
||||
<%= render :partial => 'issues/form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<%= link_to_remote l(:label_preview),
|
||||
@@ -3,7 +3,7 @@
|
||||
<%= link_to_if_authorized l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue}, :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
|
||||
<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time' %>
|
||||
<%= watcher_tag(@issue, User.current) %>
|
||||
<%= link_to_if_authorized l(:button_copy), {:controller => 'projects', :action => 'add_issue', :id => @project, :copy_from => @issue }, :class => 'icon icon-copy' %>
|
||||
<%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-copy' %>
|
||||
<%= link_to_if_authorized l(:button_move), {:controller => 'projects', :action => 'move_issues', :id => @project, "issue_ids[]" => @issue.id }, :class => 'icon icon-move' %>
|
||||
<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
|
||||
</div>
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
</div>
|
||||
|
||||
<% content_for :sidebar do %>
|
||||
<% if authorize_for('projects', 'add_issue') && @project.trackers.any? %>
|
||||
<% if authorize_for('issues', 'new') && @project.trackers.any? %>
|
||||
<h3><%= l(:label_issue_new) %></h3>
|
||||
<%= l(:label_tracker) %>: <%= new_issue_selector %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user