tr.nested-fields td - if f.object.persisted? p.form-control-static = f.object.fonte_de_recurso.try(:codigo_e_descricao) - else = f.select :fonte_de_recurso_id, options_from_collection_for_select(@fontes_de_recursos, :id, :codigo_e_descricao, f.object.try(:fonte_de_recurso_id)), { include_blank: "Selecione" }, class: "form-control s2", id: "fonte_de_recurso_id" = error_for f.object, :fonte_de_recurso_id, :fonte_de_recurso td = f.monetary_field :valor, class: "form-control valor-unitario", onclick: "this.select();", data: { autonumeric: true, 'a-sep'=>'.', 'a-dec'=>',', 'p-sign'=>'s', 'v-min'=> '0.00', 'v-max'=> '9999999999.99' } = error_for f.object, :valor td = link_to_remove_association " Remover", f, class: "btn btn-sm btn-danger icone-anular"