From 85400616f13e89ecc347e0b6593d4549a24159a9 Mon Sep 17 00:00:00 2001 From: whimlex Date: Thu, 9 Apr 2015 18:37:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E7=BC=BA=E9=99=B7=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/issues/_form.html.erb | 99 ++++++++++++++++++++------------- app/views/issues/new.html.erb | 4 +- 2 files changed, 62 insertions(+), 41 deletions(-) diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb index 0f86f466e..185b45444 100644 --- a/app/views/issues/_form.html.erb +++ b/app/views/issues/_form.html.erb @@ -9,54 +9,76 @@ <%= labelled_fields_for :issue, @issue do |f| %> <%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> + \ No newline at end of file diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index a2facd5ab..a12d6d335 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -7,10 +7,8 @@ :html => {:id => 'issue-form', :multipart => true} do |f| %> <%= error_messages_for 'issue' %> <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %> -
-
+
<%= render :partial => 'issues/form', :locals => {:f => f} %> -
<% if @copy_from && @copy_from.attachments.any? %>