diff options
| author | jpl | 2017-03-01 17:47:39 +0100 | 
|---|---|---|
| committer | jpl | 2017-03-01 17:47:51 +0100 | 
| commit | eafa377e1340ec7d60df463942c774e0f1addf27 (patch) | |
| tree | 7cea5ed307758e99cb3e18ce580b6f8c5a79ce95 /app/helpers/newapplication_helper.rb | |
| parent | 5e350204ba6da50c78cf82e652b76698a852fde2 (diff) | |
| download | chouette-core-eafa377e1340ec7d60df463942c774e0f1addf27.tar.bz2 | |
Fix tests
Diffstat (limited to 'app/helpers/newapplication_helper.rb')
| -rw-r--r-- | app/helpers/newapplication_helper.rb | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb index fcb5d26a3..2151f47b2 100644 --- a/app/helpers/newapplication_helper.rb +++ b/app/helpers/newapplication_helper.rb @@ -174,13 +174,16 @@ module NewapplicationHelper    # Actions on select toolbox (for selectables tables)    def select_toolbox(actions)      tools = content_tag :ul do +      dPath = nil +      dPath = referentials_workbench_path if params[:controller] = 'workbenches' +        actions.collect do |action|          if action == :edit            actitem = link_to('#', title: t("actions.#{action}")) do              content_tag :span, '', class: 'fa fa-pencil'            end          elsif action == :delete -          actitem = link_to('#', method: :delete, data: { path: referentials_workbench_path, confirm: 'Etes-vous sûr(e) de vouloir effectuer cette action ?' }, title: t("actions.#{action}")) do +          actitem = link_to('#', method: :delete, data: { path: dPath, confirm: 'Etes-vous sûr(e) de vouloir effectuer cette action ?' }, title: t("actions.#{action}")) do              content_tag :span, '', class: 'fa fa-trash'            end          end | 
