diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-06 18:02:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-06 18:02:10 +0000 |
commit | 9cc1cb52810ad70f6f99bfd8b95f77e34a9f2de9 (patch) | |
tree | fd4229d87d53b608702b9cadb6126d0d94399bda | |
parent | 62fb6e0f4b6ac8590d21483cb08b55ab551cb6b0 (diff) | |
download | redmine-9cc1cb52810ad70f6f99bfd8b95f77e34a9f2de9.tar.gz redmine-9cc1cb52810ad70f6f99bfd8b95f77e34a9f2de9.zip |
Issue forms cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8101 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/issues/_edit.html.erb | 7 | ||||
-rw-r--r-- | app/views/issues/new.html.erb | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/app/views/issues/_edit.html.erb b/app/views/issues/_edit.html.erb index 07090c98b..9c99b234d 100644 --- a/app/views/issues/_edit.html.erb +++ b/app/views/issues/_edit.html.erb @@ -1,9 +1,4 @@ -<% labelled_tabular_form_for :issue, @issue, - :url => {:action => 'update', :id => @issue}, - :html => {:id => 'issue-form', - :class => nil, - :method => :put, - :multipart => true} do |f| %> +<% labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %> <%= error_messages_for 'issue', 'time_entry' %> <div class="box"> <% if @edit_allowed || !@allowed_statuses.empty? %> diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index ab5ffda79..bfea3fb61 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -1,9 +1,9 @@ <h2><%=l(:label_issue_new)%></h2> -<% labelled_tabular_form_for :issue, @issue, :url => {:controller => 'issues', :action => 'create', :project_id => @project}, - :html => {:multipart => true, :id => 'issue-form', :class => 'tabular new-issue-form'} do |f| %> +<% labelled_form_for @issue, :url => project_issues_path(@project), + :html => {:id => 'issue-form', :multipart => true} do |f| %> <%= error_messages_for 'issue' %> - <div class="box"> + <div class="box tabular"> <%= render :partial => 'issues/form', :locals => {:f => f} %> </div> <%= submit_tag l(:button_create) %> |