Sha256: 765e8e39f3af58ffb49169b5a982209cd40a5f4b8a193cadf8f39334467f69ed

Contents?: true

Size: 609 Bytes

Versions: 5

Compression:

Stored size: 609 Bytes

Contents

<%= 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) %>
    <%= render Alchemy::Admin::PageSelect.new(page_editor.page, allow_clear: true, query_params: page_editor.settings[:query_params]) do %>
      <%= f.text_field :page_id,
        value: page_editor.page&.id,
        id: page_editor.form_field_id(:page_id),
        required: page_editor.presence_validation?,
        class: 'full_width' %>
      <% end %>
    <% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alchemy_cms-7.3.4 app/views/alchemy/ingredients/_page_editor.html.erb
alchemy_cms-7.3.3 app/views/alchemy/ingredients/_page_editor.html.erb
alchemy_cms-7.3.2 app/views/alchemy/ingredients/_page_editor.html.erb
alchemy_cms-7.3.1 app/views/alchemy/ingredients/_page_editor.html.erb
alchemy_cms-7.3.0 app/views/alchemy/ingredients/_page_editor.html.erb