aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Etienne2012-08-27 08:45:01 +0200
committerMichel Etienne2012-08-27 08:45:01 +0200
commit553810c8fc20d0650e5540393c13a762ebd08bb7 (patch)
tree541f256bbf07db330348c8ee219fc9870e8bcaf6
parent12bc9121ed81545fae10c9f5c23359fc64b78f2b (diff)
downloadchouette-core-553810c8fc20d0650e5540393c13a762ebd08bb7.tar.bz2
good Cancel link with multiple Submit with failure
-rw-r--r--app/views/time_table_dates/_form.html.erb2
-rw-r--r--app/views/time_table_periods/_form.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/time_table_dates/_form.html.erb b/app/views/time_table_dates/_form.html.erb
index e3d07e128..8d2231be4 100644
--- a/app/views/time_table_dates/_form.html.erb
+++ b/app/views/time_table_dates/_form.html.erb
@@ -5,7 +5,7 @@
<% end %>
<%= form.actions do %>
<%= form.action :submit, :as => :button %>
- <%= form.action :cancel, :as => :link %>
+ <%= form.action :cancel, :as => :link , :url => referential_time_table_path(@referential, @time_table) %>
<% end %>
<% end %>
diff --git a/app/views/time_table_periods/_form.html.erb b/app/views/time_table_periods/_form.html.erb
index cd7681df6..9bfda0aa4 100644
--- a/app/views/time_table_periods/_form.html.erb
+++ b/app/views/time_table_periods/_form.html.erb
@@ -5,7 +5,7 @@
<% end %>
<%= form.actions do %>
<%= form.action :submit, :as => :button %>
- <%= form.action :cancel, :as => :link %>
+ <%= form.action :cancel, :as => :link , :url => referential_time_table_path(@referential, @time_table) %>
<% end %>
<% end %>