.widget .clearfix - if !logado_na_alteracao_orcamentaria? && @empenho.definir_valor_do_empenho > 0 div style="margin-bottom: 30px;" - if esta_autorizado?(:create) && @empenho.confirmado? && !@empenho.totalmente_anulado? && (logado_na_contabilidade? || logado_no_administrativo? ) .btn-group.dropdown data-dropdown="" style="" button type="button" class="btn btn-default btn-sm dropdown-toggle icone-anular" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" =<> "Anular Empenho" span class="caret" ul class="dropdown-menu" li = link_to "Anular Parcialmente", new_contabilidade_anulacao_do_empenho_path(@empenho, "parcial") li = link_to "Anular Totalmente", new_contabilidade_anulacao_do_empenho_path(@empenho, "total") if !@empenho.liquidacoes.any? || (@empenho.liquidacoes.any? && @empenho.liquidacoes.confirmadas.any?) .pull-right b Total Anulado: =< @empenho.valor_anulado.try(:real_contabil) header style="margin-bottom: 15px;" h5 ' Lista de span.fw-semi-bold Anulações do Empenho .widget-body - if @empenho.anulacoes_do_empenho.empty? h6 Nenhum registro encontrado. - else table.table.table-hover.table-responsive style="font-size: 14px;" thead tr th width="130" Número th width="200" Data da Anulacão th Tipo th Valor th Status th width="80" th width="17%" tbody - @empenho.anulacoes_do_empenho.each do |anulacao_do_empenho| tr td = anulacao_do_empenho.numero td = anulacao_do_empenho.data_da_anulacao td = anulacao_do_empenho.tipo_de_anulacao.try(:humanize).try(:upcase) td = anulacao_do_empenho.valor.try(:real_contabil) td span class="label label-#{anulacao_do_empenho.confirmado? ? "success" : "primary"}" = anulacao_do_empenho.status.try(:humanize).try(:upcase) td - unless anulacao_do_empenho.confirmado? i class="fa fa-exclamation-circle text-danger" data-toggle="tooltip" data-placement="top" title="A anulação ainda não foi confirmada." td = link_to contabilidade_anulacao_do_empenho_path(anulacao_do_empenho), class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - if !logado_na_alteracao_orcamentaria? && !anulacao_do_empenho.confirmado? - if (anulacao_do_empenho.solicitado? || anulacao_do_empenho.confirmado?) && anulacao_do_empenho.arquivo_id.blank? = botao_com_permissao edit_contabilidade_anulacao_do_empenho_path(anulacao_do_empenho), {acao: :update}, { \ params: { \ class: "icone-editar btn btn-default btn-sm mb-xs", title: "Editar", }, } = botao_com_permissao contabilidade_anulacao_do_empenho_path(anulacao_do_empenho, empenho_id: @empenho.id), {acao: :destroy}, { \ params: { \ method: :delete, data: { confirm: 'Tem certeza?' }, class: "icone-excluir btn btn-default btn-sm mb-xs", title: "Apagar", }, }