<%= content_tag :div, class: page_editor.css_classes, data: page_editor.data_attributes do %> <%= element_form.fields_for(:ingredients, page_editor.ingredient) do |f| %> <%= ingredient_label(page_editor, :page_id) %> <%= f.text_field :page_id, value: page_editor.page&.id, id: page_editor.form_field_id(:page_id), class: 'alchemy_selectbox full_width' %> <% end %> <% end %>