Class: Releaf::Content::Nodes::ToolboxBuilder
- Inherits:
-
Builders::ToolboxBuilder
- Object
- Builders::ToolboxBuilder
- Releaf::Content::Nodes::ToolboxBuilder
- Defined in:
- app/builders/releaf/content/nodes/toolbox_builder.rb
Instance Method Summary collapse
Instance Method Details
#add_child_button ⇒ Object
15 16 17 |
# File 'app/builders/releaf/content/nodes/toolbox_builder.rb', line 15 def (t('Add child'), nil, class: "ajaxbox", href: url_for(action: "content_type_dialog", parent_id: resource.id)) end |
#copy_button ⇒ Object
19 20 21 |
# File 'app/builders/releaf/content/nodes/toolbox_builder.rb', line 19 def (t('Copy'), nil, class: "ajaxbox", href: url_for(action: "copy_dialog", id: resource.id)) end |
#items ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/builders/releaf/content/nodes/toolbox_builder.rb', line 3 def items list = [] unless resource.new_record? list << list << list << end list + super end |
#move_button ⇒ Object
23 24 25 |
# File 'app/builders/releaf/content/nodes/toolbox_builder.rb', line 23 def (t('Move'), nil, class: "ajaxbox", href: url_for(action: "move_dialog", id: resource.id)) end |