aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referential_networks
diff options
context:
space:
mode:
authorTeddy Wing2017-07-11 17:28:19 +0200
committerTeddy Wing2017-07-12 11:11:14 +0200
commitdc155d36bdf0dc1c056888794586fca10c1f11b0 (patch)
tree311951d2cd0986e04415c8c9b3964e03a07f660e /app/views/referential_networks
parentccbd1cfa43662933991dd85bef072e5ca0ae77c7 (diff)
downloadchouette-core-dc155d36bdf0dc1c056888794586fca10c1f11b0.tar.bz2
Networks#index: Use new table builder helper on both networks tables
Refs #3479
Diffstat (limited to 'app/views/referential_networks')
-rw-r--r--app/views/referential_networks/index.html.slim19
1 files changed, 14 insertions, 5 deletions
diff --git a/app/views/referential_networks/index.html.slim b/app/views/referential_networks/index.html.slim
index d6c52d352..c58a91321 100644
--- a/app/views/referential_networks/index.html.slim
+++ b/app/views/referential_networks/index.html.slim
@@ -22,11 +22,20 @@
- if @networks.any?
.row
.col-lg-12
- = table_builder @networks,
- { 'ID Codifligne' => Proc.new { |n| n.try(:objectid).try(:local_id) }, :name => 'name' },
- [:show, :edit, :delete],
- [],
- 'table has-search'
+ = table_builder_2 @networks,
+ [ \
+ TableBuilderHelper::Column.new( \
+ name: 'ID Codifligne', \
+ attribute: Proc.new { |n| n.try(:objectid).try(:local_id) }, \
+ sortable: false \
+ ),
+ TableBuilderHelper::Column.new( \
+ key: :name, \
+ attribute: 'name' \
+ ) \
+ ],
+ links: [:show],
+ cls: 'table has-search'
= new_pagination @networks, 'pull-right'