diff options
| author | Michel Etienne | 2014-07-11 16:35:14 +0200 |
|---|---|---|
| committer | Michel Etienne | 2014-07-11 16:35:14 +0200 |
| commit | 101b9c237485ea6ec26bb583735c5d26f0d2efb2 (patch) | |
| tree | 7852dbce1e6def3db0aab910ad790ba716db759b /config | |
| parent | a7939d2991770328163723951edca6cf23148570 (diff) | |
| download | chouette-core-101b9c237485ea6ec26bb583735c5d26f0d2efb2.tar.bz2 | |
duplicate timetable, Mantis 25466
Diffstat (limited to 'config')
| -rw-r--r-- | config/locales/time_tables.yml | 4 | ||||
| -rw-r--r-- | config/routes.rb | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/config/locales/time_tables.yml b/config/locales/time_tables.yml index 3f7baa6ae..e19eaaf57 100644 --- a/config/locales/time_tables.yml +++ b/config/locales/time_tables.yml @@ -1,5 +1,6 @@ en: time_tables: + duplicate_success: "duplication succeded" time_table: empty: "empty" bounding: "from %{start} to %{end}" @@ -10,6 +11,7 @@ en: new: "Add a new timetable" edit: "Edit this timetable" destroy: "Remove this timetable" + duplicate: "Duplicate this timetable" destroy_confirm: "Are you sure you want destroy this timetable ?" destroy_date_confirm: "Are you sure you want destroy this date ?" destroy_period_confirm: "Are you sure you want destroy this period ?" @@ -78,6 +80,7 @@ en: fr: time_tables: + duplicate_success: "duplication terminée" time_table: empty: "vide" bounding: "du %{start} au %{end}" @@ -88,6 +91,7 @@ fr: new: "Ajouter un calendrier" edit: "Modifier ce calendrier" destroy: "Supprimer ce calendrier" + duplicate: "Dupliquer ce calendrier" destroy_confirm: "Etes vous sûr de supprimer ce calendrier ?" destroy_date_confirm: "Etes vous sûr de supprimer cette date ?" destroy_period_confirm: "Etes vous sûr de supprimer cette période ?" diff --git a/config/routes.rb b/config/routes.rb index 7f4a6193a..e4241a62d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -127,6 +127,9 @@ ChouetteIhm::Application.routes.draw do collection do get :comment_filter end + member do + get 'duplicate' + end resources :time_table_dates resources :time_table_periods resources :time_table_combinations |
