Class: Engine2::LogoutFormAction

Inherits:
Action show all
Includes:
ActionMenuSupport, ActionPanelSupport
Defined in:
lib/engine2/action/infra.rb

Instance Attribute Summary

Attributes inherited from Action

#assets, #invokable, #meta, #node, #static

Instance Method Summary collapse

Methods included from ActionPanelSupport

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

Methods included from ActionMenuSupport

#menu, #menu?, #post_process

Methods inherited from Action

action_type, #action_type, #arguments, #check_anonymous_action_class, #check_static_action, #define_invoke, #define_method, #dynamic?, #execute, #freeze_action, #http_method, http_method, inherit, inherited, #initialize, #invoke!, #join_keys, #lookup, #merge, #node_defined, #post_process, #post_run, #repeat, #request, #request_action_proc_params, #split_keys

Constructor Details

This class inherits a constructor from Engine2::Action

Instance Method Details

#pre_runObject



302
303
304
305
306
307
308
309
310
311
312
313
# File 'lib/engine2/action/infra.rb', line 302

def pre_run
    super
    panel_template 'scaffold/message'
    panel_title LOCS[:logout_title]
    panel_class 'modal-default'
    @meta[:message] = LOCS[:logout_message]
    node.parent.*.menu(:menu).option :logout_form, icon: :"log-out" # , show: "action.logged_on"
    menu :panel_menu do
        option :logout, icon: "ok", loc: LOCS[:ok]
        option :cancel, icon: "remove"
    end
end