diff options
| -rw-r--r-- | app/views/referential_companies/index.html.slim | 8 | ||||
| -rw-r--r-- | app/views/referential_lines/_lines.html.slim | 23 |
2 files changed, 7 insertions, 24 deletions
diff --git a/app/views/referential_companies/index.html.slim b/app/views/referential_companies/index.html.slim index a47c5242c..800f46676 100644 --- a/app/views/referential_companies/index.html.slim +++ b/app/views/referential_companies/index.html.slim @@ -16,14 +16,6 @@ / <!-- </a> --> #companies - / = table_builder @companies, - / { 'Oid' => Proc.new { |n| n.objectid.local_id }, Chouette::Company.human_attribute_name(:name) => 'name', Chouette::Company.human_attribute_name(:code) => 'code' }, - / [:show, :edit, :delete], - / 'table table-bordered' - / - / .text-center - / = will_paginate @companies, container: false, renderer: RemoteBootstrapPaginationLinkRenderer - = render partial: 'companies', object: @companies - content_for :sidebar do diff --git a/app/views/referential_lines/_lines.html.slim b/app/views/referential_lines/_lines.html.slim index 8edbbbb82..f765f4a4d 100644 --- a/app/views/referential_lines/_lines.html.slim +++ b/app/views/referential_lines/_lines.html.slim @@ -1,17 +1,8 @@ -.page_info - span.search = t('will_paginate.page_entries_info.search') - = page_entries_info @lines += table_builder @lines, + { 'Oid' => Proc.new { |n| n.objectid.local_id }, @lines.human_attribute_name(:id) => 'id', + @lines.human_attribute_name(:number) => 'number', @lines.human_attribute_name(:name) => 'name', @lines.human_attribute_name(:network) => Proc.new { |n| n.network.name }, @lines.human_attribute_name(:company) => Proc.new { |n| n.company.name }, @lines.human_attribute_name(:group_of_lines) => Proc.new { |n| n.group_of_lines.count } }, + [:show, :edit, :delete], + 'table table-bordered' -.lines.paginated_content - = paginated_content(@lines) - - table.table.table-bordered.table-hover - thead - tr - th = @lines.human_attribute_name(:name) - th = @lines.human_attribute_name(:network) - th = @lines.human_attribute_name(:company) - - - .text-center - = will_paginate @lines, container: false, renderer: RemoteBootstrapPaginationLinkRenderer +.text-center + = will_paginate @lines, container: false, renderer: RemoteBootstrapPaginationLinkRenderer |
