@@ -1,4 +1,4 | |||||
1 | <% labelled_tabular_form_for :project, @project, :url => project_path(@project), :html => {:method => (@project.new_record? ? :post : :put) } do |f| %> |
|
1 | <% labelled_tabular_form_for @project do |f| %> | |
2 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
2 | <%= render :partial => 'form', :locals => { :f => f } %> | |
3 | <%= submit_tag l(:button_save) %> |
|
3 | <%= submit_tag l(:button_save) %> | |
4 | <% end %> |
|
4 | <% end %> |
@@ -1,6 +1,6 | |||||
1 | <h2><%=l(:label_project_new)%></h2> |
|
1 | <h2><%=l(:label_project_new)%></h2> | |
2 |
|
2 | |||
3 |
<% labelled_tabular_form_for |
|
3 | <% labelled_tabular_form_for @project, :url => { :action => "copy" } do |f| %> | |
4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
4 | <%= render :partial => 'form', :locals => { :f => f } %> | |
5 |
|
5 | |||
6 | <fieldset class="box"><legend><%= l(:button_copy) %></legend> |
|
6 | <fieldset class="box"><legend><%= l(:button_copy) %></legend> |
@@ -1,6 +1,6 | |||||
1 | <h2><%=l(:label_project_new)%></h2> |
|
1 | <h2><%=l(:label_project_new)%></h2> | |
2 |
|
2 | |||
3 |
<% labelled_tabular_form_for |
|
3 | <% labelled_tabular_form_for @project do |f| %> | |
4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
4 | <%= render :partial => 'form', :locals => { :f => f } %> | |
5 | <%= submit_tag l(:button_create) %> |
|
5 | <%= submit_tag l(:button_create) %> | |
6 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
6 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
General Comments 0
You need to be logged in to leave comments.
Login now