tr.nested-fields.refer = f.hidden_field :recebimento_de_bem_id, value: f.object.recebimento_de_bem_id td = f.select :item_id, options_from_collection_for_select( \ @itens, :id, :codigo_e_descricao, f.object.try(:item_id) \ ), { include_blank: "Selecione" }, class: "form-control s2 item", data: { value: f.object.item_id } = error_for f.object, :item_id td = f.text_field :marca, label: false, class: "form-control marca" = error_for f.object, :marca td = f.text_field :quantidade, label: false, class: "form-control quantidade" = error_for f.object, :quantidade td = f.monetary_field :valor_unitario, label: false, class: "form-control valor-unitario" = error_for f.object, :valor_unitario td = f.monetary_field :valor_total, label: false, readonly: true, class: "form-control valor-total" = error_for f.object, :valor_total td.text-center = link_to_remove_association " Remover", f, class: "btn btn-sm btn-danger icone-anular"