.widget header> h5 ' Lista de span.fw-semi-bold Agentes Públicos Municipais .widget-body - if @agentes_publicos_municipais.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th Nome th Tipo de cargo th Unidade orçamentária th Matrícula municipal th width="130" tbody - @agentes_publicos_municipais.each do |agente_publico_municipal| tr td = agente_publico_municipal.nome td = agente_publico_municipal.try(:tipo_de_cargo).try(:humanize) td = agente_publico_municipal.unidade_orcamentaria.try(:nome) td = agente_publico_municipal.matricula_municipal td = link_to agente_publico_municipal, class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar = botao_com_permissao edit_base_agente_publico_municipal_path(agente_publico_municipal), {acao: :update}, { \ class_icone:'icone-editar', params: {class: 'btn btn-default btn-sm mb-xs', title: "Editar"}, } = botao_com_permissao agente_publico_municipal, {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@agentes_publicos_municipais, previous_label: "<", next_label: ">"