.widget header> h5 ' Lista de span.fw-semi-bold Gestores .widget-body - if gestores.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th width="60%" Agente Público th Inicio da gestão th Fim da gestão th Número da Portaria th Data da Portaria th width="100" tbody - gestores.each do |gestor| tr td = gestor.agente_publico_municipal.try(&:cpf_e_nome) =< bs_label "ATIVO" if (gestor.gestor_ativo?) =< bs_label "ENVIADO PARA O SIM" if (gestor.enviado_ao_sim?) td = gestor.inicio_da_gestao td = gestor.fim_da_gestao td = gestor.numero_da_portaria td = gestor.data_da_portaria td - unless gestor.enviado_ao_sim? || logado_na_contabilidade? = botao_com_permissao edit_loa_gestor_path(gestor), {acao: :update}, { \ class_icone:'icone-editar', params: {class: 'btn btn-default btn-sm mb-xs', title: "Editar"}, } = botao_com_permissao gestor, {acao: :destroy}, { \ class_icone:'icone-excluir', params: { \ method: :delete, data: { confirm: 'Tem certeza?' }, class: 'btn btn-default btn-sm mb-xs', title: "Apagar", }, }