= javascript_include_tag "base/pessoas/pesquisa" - if @pessoas.empty? h6 Nenhum registro encontrado. - else .table-responsive style="font-size: 90%" table.table.table-hover thead tr th width="70" th Código th Nome th CPF / CNPJ th Cidade th Telefone tbody - @pessoas.each do |pessoa| tr.seleciona_pessoa data-id="#{pessoa.id}" data-nome="#{pessoa.try(:cpf_ou_cnpj_e_nome)}" data-field="pessoa_id" td button class="btn btn-default btn-sm mb-xs seleciona_pessoa" title="Seleciona" type="button" data-id="#{pessoa.id}" data-nome="#{pessoa.try(:nome)}" span class="glyphicon glyphicon-ok-sign" td = pessoa.id td = pessoa.nome td = pessoa.cpf_ou_cnpj td = pessoa.cidade.nome_e_uf if pessoa.cidade td = pessoa.telefone = will_paginate @pessoas, previous_label: "<", next_label: ">", remote: true