aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/companies/_companies.html.slim
blob: a397bf06f764f1062a1d18c7f246a94217406504 (plain)
1
2
3
4
5
6
7
8
9
10
11
- if @companies.any?
  = table_builder @companies,
    { 'Oid' => Proc.new { |n| n.try(:objectid).try(:local_id) }, @companies.human_attribute_name(:name) => 'name', @companies.human_attribute_name(:code) => 'code' },
    [:show, :edit, :delete],
    'table table-bordered'

  .text-center
    = will_paginate @companies, container: false, renderer: RemoteBootstrapPaginationLinkRenderer

- else
  = replacement_msg t('companies.search_no_results')