diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb index b5274c289..d8dd91ee6 100644 --- a/app/views/issues/_form.html.erb +++ b/app/views/issues/_form.html.erb @@ -29,18 +29,6 @@ <%= render :partial => 'issues/attributes' %> -<% if @issue.new_record? %> -

<%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %>

-<% end %> - -<% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> -

-<% @issue.project.users.sort.each do |user| -%> - -<% end -%> -

-<% end %> - <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> <%= wikitoolbar_for 'issue_description' %> diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index a6334391a..48d786879 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -4,10 +4,21 @@ <% labelled_form_for @issue, :url => project_issues_path(@project), :html => {:id => 'issue-form', :multipart => true} do |f| %> - <%= error_messages_for 'issue' %> -
+ <%= error_messages_for 'issue' %> +
<%= render :partial => 'issues/form', :locals => {:f => f} %> -
+ +

<%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %>

+ + <% if User.current.allowed_to?(:add_issue_watchers, @project) -%> +

+ <% @issue.project.users.sort.each do |user| -%> + + <% end -%> +

+ <% end %> +
+ <%= submit_tag l(:button_create) %> <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> <%= link_to_remote l(:label_preview),