[#4177] Update the cancel link to redirect to the list or show page.

This commit is contained in:
Eric Davis
2010-06-21 14:29:23 -07:00
parent c6783f98fd
commit fbc7d8f592
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
<% end %>
<% form.buttons do %>
<%= form.commit_button %>
<%= link_to(l(:button_cancel), contracts_path) %>
<%= link_to(l(:button_cancel), cancel_path) %>
<% end %>
<%= wikitoolbar_for 'contract_discount_note' %>
+1 -1
View File
@@ -1,7 +1,7 @@
<%= content_tag(:h2, h(resource.name)) %>
<% semantic_form_for resource, :url => contract_path(@project, resource), :html => {:class => 'tabular'} do |form| %>
<%= render :partial => 'form', :object => form %>
<%= render :partial => 'form', :object => form, :locals => {:cancel_path => contract_path(@project, resource)} %>
<% end %>
<% content_for(:header_tags) do %>
+1 -1
View File
@@ -1,7 +1,7 @@
<%= content_tag(:h2, l(:text_new_contract)) %>
<% semantic_form_for resource, :html => {:class => 'tabular'} do |form| %>
<%= render :partial => 'form', :object => form %>
<%= render :partial => 'form', :object => form, :locals => {:cancel_path => contracts_path} %>
<% end %>
<% content_for(:header_tags) do %>