diff options
| author | jpl | 2016-11-28 15:29:38 +0100 |
|---|---|---|
| committer | jpl | 2016-11-28 15:29:38 +0100 |
| commit | 68e04db39b435b41754c87fbe2b4e7d97dbd12bf (patch) | |
| tree | 72f03e4bced5d8ebb6dfbda13f9cd1a1c6956ff9 /app/views/companies | |
| parent | f450594fe8fcf8972012eae665f568546f2d290a (diff) | |
| download | chouette-core-68e04db39b435b41754c87fbe2b4e7d97dbd12bf.tar.bz2 | |
Fix companies tests
Diffstat (limited to 'app/views/companies')
| -rw-r--r-- | app/views/companies/_companies.html.slim | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/app/views/companies/_companies.html.slim b/app/views/companies/_companies.html.slim index 4f89e8ede..8e83d29a0 100644 --- a/app/views/companies/_companies.html.slim +++ b/app/views/companies/_companies.html.slim @@ -2,11 +2,18 @@ / span.search = t('will_paginate.page_entries_info.search') / = page_entries_info @companies -.companies.paginated_content style="margin-top:20px;" - = table_builder @decoratedcompanies, - [:name, :edited_at, :published_at, :validity_period, :linecount, :transporter, :status], - ["show", "delete"], - 'table table-bordered' +.companies.paginated_content + = paginated_content(@companies) .pagination - = will_paginate @companies, container: false, renderer: RemoteBootstrapPaginationLinkRenderer + = will_paginate @companies, :container => false, renderer: RemoteBootstrapPaginationLinkRenderer + + +/ .companies.paginated_content style="margin-top:20px;" +/ = table_builder @decoratedcompanies, +/ { Chouette::Company.human_attribute_name(:name) => 'name', Chouette::Company.human_attribute_name(:edited_at) => 'edited_at', Chouette::Company.human_attribute_name(:published_at) => 'published_at', Chouette::Company.human_attribute_name(:validity_period) => 'validity_period', Chouette::Company.human_attribute_name(:linecount) => 'linecount', Chouette::Company.human_attribute_name(:transporter) => 'transporter', Chouette::Company.human_attribute_name(:status) => 'status' }, +/ [:show, :delete], +/ 'table table-bordered' +/ +/ .pagination +/ = will_paginate @companies, container: false, renderer: RemoteBootstrapPaginationLinkRenderer |
