diff options
| author | Michel Etienne | 2014-08-22 16:13:50 +0200 |
|---|---|---|
| committer | Michel Etienne | 2014-08-22 16:13:50 +0200 |
| commit | a1dcead1b2194bd643c29b3e9996b9dd522d80c5 (patch) | |
| tree | 9c81c2607c59c1eec9d98e6f9d0475c403ce8bfd /app/controllers | |
| parent | 95aa3519c249639c7072c05dd7fc141fe53b2621 (diff) | |
| download | chouette-core-a1dcead1b2194bd643c29b3e9996b9dd522d80c5.tar.bz2 | |
show exchange states and notice for refresh on creation
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/compliance_check_tasks_controller.rb | 6 | ||||
| -rw-r--r-- | app/controllers/exports_controller.rb | 2 | ||||
| -rw-r--r-- | app/controllers/import_tasks_controller.rb | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/app/controllers/compliance_check_tasks_controller.rb b/app/controllers/compliance_check_tasks_controller.rb index 45794199a..9acce4510 100644 --- a/app/controllers/compliance_check_tasks_controller.rb +++ b/app/controllers/compliance_check_tasks_controller.rb @@ -16,6 +16,12 @@ class ComplianceCheckTasksController < ChouetteController render "rule_parameter_sets/show" end + def create + create! do |success, failure| + success.html { flash[:notice] = I18n.t('compliance_check_tasks.new.flash'); redirect_to referential_compliance_check_tasks_path(@referential) } + end + end + protected alias_method :compliance_check_task, :resource diff --git a/app/controllers/exports_controller.rb b/app/controllers/exports_controller.rb index 2f14ab359..8805c8078 100644 --- a/app/controllers/exports_controller.rb +++ b/app/controllers/exports_controller.rb @@ -14,7 +14,7 @@ class ExportsController < ChouetteController def create create! do |success, failure| available_exports - success.html { redirect_to referential_exports_path(@referential) } + success.html { flash[:notice] = I18n.t('exports.new.flash'); redirect_to referential_exports_path(@referential) } end end diff --git a/app/controllers/import_tasks_controller.rb b/app/controllers/import_tasks_controller.rb index 36710bb69..37de83f4d 100644 --- a/app/controllers/import_tasks_controller.rb +++ b/app/controllers/import_tasks_controller.rb @@ -25,9 +25,9 @@ class ImportTasksController < ChouetteController end def create - create! do |success, failure| + create! do |success, failure| available_imports - success.html { redirect_to referential_import_tasks_path(@referential) } + success.html { flash[:notice] = I18n.t('import_tasks.new.flash'); redirect_to referential_import_tasks_path(@referential) } end end |
