.widget header> h5 ' Lista de span.fw-semi-bold Agências .widget-body - if @agencias.empty? h6 ' Nenhum registro encontrado. Cadastre uma agência =< link_to 'aqui.', new_base_agencia_path - else .table-responsive table.table.table-hover thead tr th Agência th Numero da Agência th Banco th Cidade th width="150" tbody - @agencias.each do |agencia| tr td = agencia.nome td.agencia = agencia.numero_da_agencia td = agencia.banco.try(:nome) td = agencia.cidade.try(:nome_e_uf) td = link_to agencia, class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar = botao_com_permissao edit_base_agencia_path(agencia, contexto_atual.exercicio), {acao: :update}, { \ class_icone:'icone-editar', params: {class: 'btn btn-default btn-sm mb-xs', title: "Editar"}, } = botao_com_permissao agencia, {acao: :destroy}, { \ class_icone:'icone-excluir', params: { \ method: :delete, data: { confirm: 'Tem certeza?' }, class: 'btn btn-default btn-sm mb-xs', title: "Apagar", }, } = will_paginate@agencias, previous_label: "<", next_label: ">"