table.table.table-hover.table-responsive thead tr th width="20%" Data do Estorno th width="70%" Justificativa th width="10%" tr td = @pagamento.try(:estorno_de_pagamento).try(:data_do_estorno) td = @pagamento.try(:estorno_de_pagamento).try(:justificativa) td - unless @pagamento.estornado? i class="fa fa-exclamation-circle text-danger" data-toggle="tooltip" data-placement="top" title="O Estorno ainda não foi confirmado." = link_to contabilidade_estorno_de_pagamento_path(@pagamento.estorno_de_pagamento), class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar = link_to administrativo_relatorios_pagamentos_imprimir_path(relatorio: 'nota_de_estorno_de_pagamento', format: :pdf, pagamento_id: @pagamento.id), target: "_blank", class: "btn btn-default btn-sm mb-xs", title: "Imprimir" do i.icone-imprimir - if !@pagamento.estorno_de_pagamento.enviado_ao_sim? && @pagamento.liquidacao_tem_valor_disponivel? = botao_com_permissao contabilidade_estorno_de_pagamento_path(@pagamento.estorno_de_pagamento, pagamento_id: @pagamento.id), {acao: :destroy}, { \ class_icone:'icone-excluir', params: { \ method: :delete, data: { confirm: 'Tem certeza?' }, class: 'btn btn-default btn-sm mb-xs', title: 'Excluir', pagamento_id: @pagamento.id, }, }