Class: Engine2::LogoutFormMeta

Inherits:
Meta show all
Includes:
MetaMenuSupport, MetaPanelSupport
Defined in:
lib/engine2/meta/infra_meta.rb

Instance Attribute Summary

Attributes inherited from Meta

#action, #assets, #invokable, #static

Instance Method Summary collapse

Methods included from MetaPanelSupport

#modal_action, #panel, #panel_class, #panel_footer, #panel_panel_template, #panel_template, #panel_title, #post_run

Methods included from MetaMenuSupport

#menu, #menu?, #post_process

Methods inherited from Meta

#action_defined, #check_static_meta, #dynamic?, #freeze_meta, #get, http_method, #http_method, inherited, #initialize, #invoke!, #lookup, #merge, #meta_type, meta_type, #post_process, #post_run, #request, #request_meta_proc_params, #split_keys

Constructor Details

This class inherits a constructor from Engine2::Meta

Instance Method Details

#pre_runObject



274
275
276
277
278
279
280
281
282
283
284
# File 'lib/engine2/meta/infra_meta.rb', line 274

def pre_run
    super
    panel_template 'scaffold/message'
    panel_title LOCS[:logout_title]
    panel_class 'modal-default'
    @meta[:message] = LOCS[:logout_message]
    menu :panel_menu do
        option :logout, icon: "ok", loc: LOCS[:ok]
        option :cancel, icon: "remove"
    end
end