diff options
| author | Teddy Wing | 2017-07-07 16:52:47 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-07-12 11:06:03 +0200 |
| commit | 4797bfbfec8f97ef09f62d6b170b8f749be4a0bf (patch) | |
| tree | b138d64a68faba3b9fe50648cd3b38309c7cffb6 /app/views/companies | |
| parent | 9ab672a31cd3a1aeea59e6ae3dab96e4057ee997 (diff) | |
| download | chouette-core-4797bfbfec8f97ef09f62d6b170b8f749be4a0bf.tar.bz2 | |
Companies#index: Use new table builder helper
Refs #3479
Diffstat (limited to 'app/views/companies')
| -rw-r--r-- | app/views/companies/index.html.slim | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/app/views/companies/index.html.slim b/app/views/companies/index.html.slim index 8605a213b..ceea385b3 100644 --- a/app/views/companies/index.html.slim +++ b/app/views/companies/index.html.slim @@ -22,11 +22,20 @@ - if @companies.any? .row .col-lg-12 - = table_builder @companies, - { 'Oid' => Proc.new { |n| n.try(:objectid).try(:local_id) }, :name => 'name' }, - [:show, :edit, :delete], - [], - 'table has-search' + = table_builder_2 @companies, + [ \ + TableBuilderHelper::Column.new( \ + name: 'Oid', \ + attribute: Proc.new { |n| n.try(:objectid).try(:local_id) }, \ + sortable: false \ + ), \ + TableBuilderHelper::Column.new( \ + key: :name, \ + attribute: 'name' \ + ) \ + ], + links: [:show, :edit], + cls: 'table has-search' = new_pagination @companies, 'pull-right' |
