.widget - if referencia.contem_bens_para_devolver? div style="margin-bottom: 30px" = botao_com_permissao new_patrimonio_devolucao_de_bem_patrimonial_path(origem_id: referencia.id, origem_type: referencia.class.name), {acao: :create}, { \ texto: ' Adicionar Devolução', class_icone:'icone-cadastrar', class_texto: 'text-primary', } header> h5 ' Lista de span.fw-semi-bold Devoluções .widget-body - devolucoes = Patrimonio::DevolucaoDeBemPatrimonial.where(origem_id: referencia, origem_type: referencia.class.name) - if devolucoes.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th Data da devolução th Numero da devolucao th Responsável th width="150" tbody - devolucoes.each do |devolucao| tr td = devolucao.data_da_devolucao td = devolucao.numero_da_devolucao td = devolucao.responsavel td = link_to devolucao, class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar