Class: Katalyst::Content::Editor::Container

Inherits:
Base
  • Object
show all
Defined in:
app/helpers/katalyst/content/editor/container.rb

Constant Summary collapse

ACTIONS =
"submit->\#{CONTAINER_CONTROLLER}#reindex\ncontent:reindex->\#{CONTAINER_CONTROLLER}#reindex\ncontent:reset->\#{CONTAINER_CONTROLLER}#reset\n".gsub(/\s+/, " ").freeze

Constants inherited from Base

Base::CONTAINER_CONTROLLER, Base::ITEM_CONTROLLER, Base::LIST_CONTROLLER, Base::NEW_ITEM_CONTROLLER, Base::STATUS_BAR_CONTROLLER, Base::TURBO_FRAME

Instance Attribute Summary

Attributes inherited from Base

#container, #template

Instance Method Summary collapse

Methods inherited from Base

#attributes_scope, #container_form_id, #initialize

Constructor Details

This class inherits a constructor from Katalyst::Content::Editor::Base

Instance Method Details

#build(options) ⇒ Object



13
14
15
16
17
18
# File 'app/helpers/katalyst/content/editor/container.rb', line 13

def build(options)
  form_with(model: container, **default_options(id: container_form_id, **options)) do |form|
    concat hidden_input
    concat(capture { yield form })
  end
end