- if !logado_na_alteracao_orcamentaria? - if esta_autorizado?(:edit) = link_to editar_contas_bancarias_da_unidade_empenho_path(@empenho), class: "btn btn-default btn-sm" do i.icone-cadastrar ' Editar Contas Bancárias .widget header> h5 ' Lista de span.fw-semi-bold Contas Bancárias da Unidade .widget-body - if contas.empty? h6 Nenhum registro encontrado. - else table.table.table-hover.table-responsive style="font-size: 14px;" thead tr th Banco th Agência th Conta th width="200" Data de Abertura th width="200" Tipo de Conta tbody - contas.each do |conta| tr td = conta.conta_unidade.try(:agencia).try(:banco).try(:numero_do_banco_e_nome) td = conta.conta_unidade.try(:agencia).try(:numero_da_agencia) td = link_to conta.conta_unidade.try(:numero_da_conta), registro_bancario_path(@empenho.retorna_conta_bancaria_por_unidade(conta.conta_unidade.id)), target: '_blank' if @empenho.retorna_conta_bancaria_por_unidade(conta.conta_unidade.id).present? td = conta.conta_unidade.try(:data_de_abertura) td = conta.conta_unidade.localizar(:tipo_de_conta)