Using added hidden field I will check where request coming from and also display the validation messages

pull/1694/head
slawa 10 years ago
parent 4b952ae7bb
commit 844c44601e
  1. 4
      app/views/copy_projects/copy_from_admin.html.erb
  2. 2
      app/views/copy_projects/copy_from_settings.html.erb

@ -27,9 +27,13 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= error_messages_for 'copy_project' %>
<h2><%=l(:label_project_new)%></h2>
<%= labelled_tabular_form_for @copy_project, :url => { :action => "copy" } do |f| %>
<%= hidden_field_tag :coming_from, 'admin' %>
<%= render :partial => 'projects/form', :locals => { :f => f, :project => @copy_project, :renderTypes => true } %>
<%= render :partial => "copy_projects/copy_settings/copy_associations", :locals => { :project => @project } %>

@ -27,6 +27,8 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= error_messages_for 'copy_project' %>
<h2><%=l(:label_project_new)%></h2>
<%= labelled_tabular_form_for @copy_project, :url => { :action => "copy" } do |f| %>

Loading…
Cancel
Save