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' %>
<% 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 @@

<%=l(:label_issue_new)%>

-<% 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' %> -
+
<%= render :partial => 'issues/form', :locals => {:f => f} %>
<%= submit_tag l(:button_create) %>