Class: Releaf::Builders::ConfirmDestroyDialogBuilder

Inherits:
ConfirmDialogBuilder show all
Defined in:
app/builders/releaf/builders/confirm_destroy_dialog_builder.rb

Instance Attribute Summary

Attributes inherited from ConfirmDialogBuilder

#form

Attributes included from Resource

#resource

Attributes included from Template

#template

Instance Method Summary collapse

Methods inherited from ConfirmDialogBuilder

#cancel_button, #cancel_path, #confirm_button, #confirm_form_options, #footer_primary_tools, #output, #section_attributes, #section_body, #section_body_blocks

Methods included from ResourceDialog

#dialog?

Methods included from Resource

#initialize

Methods included from View

#breadcrumb_item, #breadcrumbs, #dialog?, #dialog_name, #flash_item, #flash_notices, #footer_blocks, #footer_primary_block, #footer_primary_tools, #footer_secondary_block, #footer_secondary_tools, #footer_tools, #header, #header_extras, #output, #section, #section_attributes, #section_blocks, #section_body, #section_footer, #section_footer_class, #section_header, #section_header_extras

Methods included from Template

#initialize

Methods included from Base

#default_translation_scope, #html_escape, #icon, #layout_settings, #locale_options, #resource_title, #safe_join, #t, #tag, #template_variable, #translate_locale, #wrapper

Instance Method Details

#confirm_methodObject


14
15
16
# File 'app/builders/releaf/builders/confirm_destroy_dialog_builder.rb', line 14

def confirm_method
  :delete
end

#confirm_urlObject


22
23
24
# File 'app/builders/releaf/builders/confirm_destroy_dialog_builder.rb', line 22

def confirm_url
  url_for( action: 'destroy', id: resource.id, index_path: index_path)
end

#description_contentObject


6
7
8
# File 'app/builders/releaf/builders/confirm_destroy_dialog_builder.rb', line 6

def description_content
  resource_title(resource)
end

#icon_nameObject


18
19
20
# File 'app/builders/releaf/builders/confirm_destroy_dialog_builder.rb', line 18

def icon_name
  "trash-o"
end

#question_contentObject


2
3
4
# File 'app/builders/releaf/builders/confirm_destroy_dialog_builder.rb', line 2

def question_content
  t("Do you want to delete the following object?")
end

#section_header_textObject


10
11
12
# File 'app/builders/releaf/builders/confirm_destroy_dialog_builder.rb', line 10

def section_header_text
  t("Confirm deletion")
end