ol.breadcrumb li = link_to "Registro dos Bens", patrimonio_recebimentos_de_bens_path, class: "link_breadcrumb" li = link_to "#{@recebimento_de_bem.codigo}", patrimonio_recebimentos_de_bens_path(@recebimento_de_material), class: "link_breadcrumb" li.active Bens Patrimoniais .widget .widget-body = simple_form_for(@recebimento_de_bem, method: :patch, url: patrimonio_atualiza_bens_patrimoniais_do_recebimento_de_bem_path(@recebimento_de_bem)) do |f| = f.error_notification = f.error_notification message: f.object.errors.full_messages.join(', ') if f.object.errors.present? fieldset legend strong = 'Editar Dados do Bem' = f.fields_for :itens_dos_recebimentos_de_bens, @recebimento_de_bem.itens_dos_recebimentos_de_bens do |item_do_recebimento_de_bem| .nested-fields .panel.panel-default .panel-heading #{item_do_recebimento_de_bem.object.item.try(:codigo_e_descricao)} .panel-body = item_do_recebimento_de_bem.fields_for :dados_extras_do_bem, item_do_recebimento_de_bem.object.dados_extras_do_bem do |dados| .nested-fields div style="margin-top: 10px;" table.table.table-bordered.table-hover.table-responsive thead tr th.text-center style="width: 3%" th.text-center style="width: 12%" Data do Tombamento th.text-center style="width: 12%" Número do Tombamento th.text-center style="width: 12%" Estado do Bem th.text-center style="width: 12%" Início da Depreciação th Observação tbody#bens_patrimoniais = dados.fields_for :bens_patrimoniais, dados.object.bens_patrimoniais.order(numero_do_tombamento: :asc) do |bem_patrimonial| = render 'bem_patrimonial_edicao_fields', f: bem_patrimonial .form-actions .row .col-sm-12 = f.submit "Salvar", class: "btn btn-primary" - if @recebimento_de_bem.present? = link_to "Cancelar", patrimonio_recebimento_de_bem_path(@recebimento_de_bem), class: "btn btn-default" - else = link_to "Cancelar", patrimonio_recebimentos_de_bens_path, class: "btn btn-default"