Class: Alchemy::Ingredients::PageEditor
- Inherits:
-
BaseEditor
- Object
- ViewComponent::Base
- BaseEditor
- Alchemy::Ingredients::PageEditor
- Defined in:
- app/components/alchemy/ingredients/page_editor.rb
Instance Attribute Summary
Attributes inherited from BaseEditor
Instance Method Summary collapse
Methods inherited from BaseEditor
#call, #form_field_id, #form_field_name, #initialize
Constructor Details
This class inherits a constructor from Alchemy::Ingredients::BaseEditor
Instance Method Details
#input_field ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/components/alchemy/ingredients/page_editor.rb', line 8 def input_field render Alchemy::Admin::PageSelect.new(page, allow_clear: true, query_params: settings[:query_params]) do text_field_tag form_field_name(:page_id), page&.id, id: form_field_id(:page_id), class: "full_width", disabled: !editable? end end |