.widget header> h5 ' Lista de span.fw-semi-bold Controle De Pagamentos .widget-body - if @controle_de_pagamentos.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th Data th Unidade Orçamentária th Fonte de Recurso th Elemento de Despesa - if params[:sem_folha].present? th Fornecedor th Status th width="120px" tbody - @controle_de_pagamentos.each do |controle_de_pagamento| tr td = controle_de_pagamento.data td = (controle_de_pagamento.unidade_orcamentaria.present? ? controle_de_pagamento.unidade_orcamentaria.try(:codigo_completo_e_nome) : "Todas") td = (controle_de_pagamento.fonte_de_recurso.present? ? controle_de_pagamento.fonte_de_recurso.try(:codigo_completo) : "Todas") td = (controle_de_pagamento.elemento_de_despesa.present? ? controle_de_pagamento.elemento_de_despesa.try(:codigo_e_descricao) : "Todos") - if params[:sem_folha].present? td = controle_de_pagamento.pessoa.try(:nome_e_cpf_ou_cnpj) td align="center" =< status_label controle_de_pagamento.status_i18n, controle_de_pagamento.status td = link_to controle_de_pagamento, class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - if exercicio_em_vigor? - unless controle_de_pagamento.pagamentos.any? = botao_com_permissao edit_contabilidade_controle_de_pagamento_path(controle_de_pagamento), {acao: :update}, { \ class_icone:'icone-editar', params: {class: 'btn btn-default btn-sm mb-xs', title: "Editar"}, } = botao_com_permissao controle_de_pagamento, {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@controle_de_pagamentos, previous_label: "<", next_label: ">"