Module: Releaf::Content::Builders::Dialog

Includes:
Builders::Collection, Builders::ResourceDialog, Tree
Included in:
ActionDialog, ContentTypeDialogBuilder
Defined in:
app/builders/releaf/content/builders/dialog.rb

Instance Method Summary collapse

Methods included from Tree

#body_classes, #build_tree, #empty_body, #root_level, #section_body, #sort_tree, #sorted_tree, #tree, #tree_level, #tree_resource, #tree_resource_blocks, #tree_resource_children, #tree_resource_collapser, #tree_resource_name, #tree_resource_name_button

Instance Method Details

#cancel_buttonObject



11
12
13
# File 'app/builders/releaf/content/builders/dialog.rb', line 11

def cancel_button
  button(t('Cancel'), "ban", class: "secondary", data: {type: 'cancel'}, href: url_for( action: 'index' ))
end


7
8
9
# File 'app/builders/releaf/content/builders/dialog.rb', line 7

def footer_primary_tools
  [cancel_button]
end