- breadcrumb :referential_companies, @referential .page_content .container-fluid - if params[:q].present? or @companies.any? .row .col-lg-12 = search_form_for @q, url: referential_companies_path(@referential), html: {method: :get}, class: 'form form-filter' do |f| .input-group.search_bar = f.text_field :name_or_objectid_cont, placeholder: t('.name_or_objectid'), class: 'form-control' span.input-group-btn button.btn.btn-default#search-btn type="submit" span.fa.fa-search - if @companies.any? .row .col-lg-12 = table_builder_2 @companies, [ \ TableBuilderHelper::Column.new( \ name: t('id_codif'), \ attribute: Proc.new { |n| n.try(:objectid).try(:local_id) }, \ sortable: false \ ), \ TableBuilderHelper::Column.new( \ key: :name, \ attribute: 'name', \ link_to: lambda do |company| \ referential_company_path(@referential, company) \ end \ ), \ TableBuilderHelper::Column.new( \ key: :phone, \ attribute: 'phone' \ ), \ TableBuilderHelper::Column.new( \ key: :email, \ attribute: 'email' \ ), \ TableBuilderHelper::Column.new( \ key: :url, \ attribute: 'url' \ ) \ ], cls: 'table has-search' = new_pagination @companies, 'pull-right' - unless @companies.any? .row .col-lg-12 = replacement_msg t('companies.search_no_results')