diff options
| author | Michel Etienne | 2012-08-27 08:45:01 +0200 |
|---|---|---|
| committer | Michel Etienne | 2012-08-27 08:45:01 +0200 |
| commit | 553810c8fc20d0650e5540393c13a762ebd08bb7 (patch) | |
| tree | 541f256bbf07db330348c8ee219fc9870e8bcaf6 | |
| parent | 12bc9121ed81545fae10c9f5c23359fc64b78f2b (diff) | |
| download | chouette-core-553810c8fc20d0650e5540393c13a762ebd08bb7.tar.bz2 | |
good Cancel link with multiple Submit with failure
| -rw-r--r-- | app/views/time_table_dates/_form.html.erb | 2 | ||||
| -rw-r--r-- | app/views/time_table_periods/_form.html.erb | 2 |
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 %> |
