diff options
| author | jpl | 2017-03-01 17:16:15 +0100 |
|---|---|---|
| committer | jpl | 2017-03-01 17:16:28 +0100 |
| commit | 49a472835bf5bfe57c711dfd20b8e1a44afd6264 (patch) | |
| tree | 28dfa684f901160a37781ecd4f952e4218a5b4a9 /app/helpers/newapplication_helper.rb | |
| parent | a31a230a8e019fdf0d3fe948803eff73cccfd333 (diff) | |
| download | chouette-core-49a472835bf5bfe57c711dfd20b8e1a44afd6264.tar.bz2 | |
Refs #2623: updating selectable_table component, with js params injection to url
Diffstat (limited to 'app/helpers/newapplication_helper.rb')
| -rw-r--r-- | app/helpers/newapplication_helper.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb index 49b717beb..fcb5d26a3 100644 --- a/app/helpers/newapplication_helper.rb +++ b/app/helpers/newapplication_helper.rb @@ -175,11 +175,12 @@ module NewapplicationHelper def select_toolbox(actions) tools = content_tag :ul do actions.collect do |action| - - actitem = link_to '#', title: t("actions.#{action}") do - if action == :edit + if action == :edit + actitem = link_to('#', title: t("actions.#{action}")) do content_tag :span, '', class: 'fa fa-pencil' - elsif action == :delete + 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 content_tag :span, '', class: 'fa fa-trash' end end |
