Browse Source

Issue forms cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8101 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.4.0
Jean-Philippe Lang 12 years ago
parent
commit
9cc1cb5281
2 changed files with 4 additions and 9 deletions
  1. 1
    6
      app/views/issues/_edit.html.erb
  2. 3
    3
      app/views/issues/new.html.erb

+ 1
- 6
app/views/issues/_edit.html.erb View File

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

+ 3
- 3
app/views/issues/new.html.erb View File

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

Loading…
Cancel
Save