.widget - unless @bem_patrimonial.desafetacao_do_bem.present? || !@bem_patrimonial.baixa_do_bem.nil? div style="margin-bottom: 30px;" = link_to new_patrimonio_desafetacao_do_bem_path(bem_patrimonial: @bem_patrimonial.id), class: "btn btn-default btn-sm" do i.icone-cadastrar ' Cadastrar header h5 ' Lista de span.fw-semi-bold Desafetações do Bem .widget-body - if desafetacao_do_bem.nil? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th Data da Desafetação th Para venda? th Status th Observação tbody tr td = desafetacao_do_bem.try(:data_da_desafetacao) td =< label_sim_nao(desafetacao_do_bem.para_venda) td = desafetacao_do_bem.localizar(:status) td = desafetacao_do_bem.observacao