view: labelled_form_for: equals sign mandatory to print blocks and use :as
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9572 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4b2fc90431
commit
f624d01fd8
|
@ -1,6 +1,7 @@
|
||||||
<h2><%=l(:label_issue_category)%></h2>
|
<h2><%=l(:label_issue_category)%></h2>
|
||||||
|
|
||||||
<% labelled_form_for :issue_category, @category, :url => issue_category_path(@category), :html => {:method => :put} do |f| %>
|
<%= labelled_form_for @category, :as => :issue_category,
|
||||||
|
:url => issue_category_path(@category), :html => {:method => :put} do |f| %>
|
||||||
<%= render :partial => 'issue_categories/form', :locals => { :f => f } %>
|
<%= render :partial => 'issue_categories/form', :locals => { :f => f } %>
|
||||||
<%= submit_tag l(:button_save) %>
|
<%= submit_tag l(:button_save) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<h2><%=l(:label_issue_category_new)%></h2>
|
<h2><%=l(:label_issue_category_new)%></h2>
|
||||||
|
|
||||||
<% labelled_form_for :issue_category, @category, :url => project_issue_categories_path(@project) do |f| %>
|
<%= labelled_form_for @category, :as => :issue_category,
|
||||||
|
:url => project_issue_categories_path(@project) do |f| %>
|
||||||
<%= render :partial => 'issue_categories/form', :locals => { :f => f } %>
|
<%= render :partial => 'issue_categories/form', :locals => { :f => f } %>
|
||||||
<%= submit_tag l(:button_create) %>
|
<%= submit_tag l(:button_create) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue