cleanup: simplify the definition and calls to labelled_tabular_form_for. some of the :as and :url params that i left out might not be needed either.
parent
da88773fdf
commit
c9597204aa
@ -1,6 +1,6 @@ |
||||
<h2><%= l(:label_board) %></h2> |
||||
|
||||
<%= labelled_tabular_form_for :board, [@project, @board] do |f| %> |
||||
<%= labelled_tabular_form_for [@project, @board] do |f| %> |
||||
<%= render :partial => 'form', :locals => {:f => f} %> |
||||
<%= submit_tag l(:button_save) %> |
||||
<% end %> |
||||
|
@ -1,6 +1,6 @@ |
||||
<h2><%= l(:label_board_new) %></h2> |
||||
|
||||
<%= labelled_tabular_form_for :board, [@project, Board.new] do |f| %> |
||||
<%= labelled_tabular_form_for [@project, Board.new] do |f| %> |
||||
<%= render :partial => 'form', :locals => {:f => f} %> |
||||
<%= submit_tag l(:button_create) %> |
||||
<% end %> |
||||
|
@ -1,6 +1,6 @@ |
||||
<h2><%= link_to l(@enumeration.option_name), enumerations_path %> » <%=l(:label_enumeration_new)%></h2> |
||||
|
||||
<%= labelled_tabular_form_for(@enumeration) do %> |
||||
<%= labelled_tabular_form_for @enumeration do %> |
||||
<%= render :partial => 'form' %> |
||||
<%= submit_tag l(:button_create) %> |
||||
<% end %> |
||||
|
@ -1,4 +1,4 @@ |
||||
<%= labelled_tabular_form_for :group, @group, :url => group_path(@group), :html => {:method => :put} do |f| %> |
||||
<%= labelled_tabular_form_for @group, :url => group_path(@group), :html => {:method => :put}, :as => :group do |f| %> |
||||
<%= render :partial => 'form', :locals => { :f => f } %> |
||||
<%= submit_tag l(:button_save) %> |
||||
<% end %> |
||||
|
@ -1,6 +1,6 @@ |
||||
<h2><%=l(:label_issue_category_new)%></h2> |
||||
|
||||
<%= labelled_tabular_form_for :category, [@project, @category] do |f| %> |
||||
<%= labelled_tabular_form_for [@project, @category], :as => :category do |f| %> |
||||
<%= render :partial => 'issue_categories/form', :locals => { :f => f } %> |
||||
<%= submit_tag l(:button_create) %> |
||||
<% end %> |
||||
|
@ -1,4 +1,4 @@ |
||||
<%= labelled_tabular_form_for :project, @project, :url => project_path(@project), :html => {:method => (@project.new_record? ? :post : :put) } do |f| %> |
||||
<%= labelled_tabular_form_for @project do |f| %> |
||||
<%= render :partial => 'form', :locals => { :f => f } %> |
||||
<%= submit_tag l(:button_save) %> |
||||
<% end %> |
||||
|
@ -1,6 +1,6 @@ |
||||
<h2><%= link_to l(:label_role_plural), roles_path %> » <%=h @role.name %></h2> |
||||
|
||||
<%= labelled_tabular_form_for(:role, @role, :html => { :id => 'role_form' }) do |f| %> |
||||
<%= labelled_tabular_form_for @role, :html => { :id => 'role_form' }, :as => :role do |f| %> |
||||
<%= render :partial => 'form', :locals => { :f => f } %> |
||||
<%= submit_tag l(:button_save) %> |
||||
<% end %> |
||||
|
@ -1,6 +1,6 @@ |
||||
<h2><%= link_to l(:label_role_plural), roles_path %> » <%=l(:label_role_new)%></h2> |
||||
|
||||
<%= labelled_tabular_form_for(:role, @role, :html => {:id => 'role_form'}) do |f| %> |
||||
<%= labelled_tabular_form_for @role, :html => {:id => 'role_form'}, :as => :role do |f| %> |
||||
<%= render :partial => 'form', :locals => { :f => f } %> |
||||
<%= submit_tag l(:button_create) %> |
||||
<% end %> |
||||
|
@ -1,6 +1,6 @@ |
||||
<h2><%=l(:label_version_new)%></h2> |
||||
|
||||
<%= labelled_tabular_form_for :version, @version, :url => project_versions_path(@project) do |f| %> |
||||
<%= labelled_tabular_form_for [@project, @version] do |f| %> |
||||
<%= render :partial => 'versions/form', :locals => { :f => f } %> |
||||
<%= submit_tag l(:button_create) %> |
||||
<% end %> |
||||
|
Loading…
Reference in new issue