Class: Marty::Notifications::ConfigView
- Includes:
- Extras::Layout
- Defined in:
- app/components/marty/notifications/config_view.rb
Constant Summary
Constants included from Extras::Layout
Extras::Layout::BOOL_MAP, Extras::Layout::MAP_BOOL
Constants included from Permissions
Instance Method Summary collapse
Methods included from Extras::Layout
#bool_getter, #bool_setter, #dispfield, #enum_array, #enum_column, #enum_setter, #fieldset, #get_sorter, #hbox, #hspacer, #jsonb_field, #nullable_bool_column, #range_column, #range_field, #range_getter, #range_setter, #textarea_field, #tooltip, #vbox, #vspacer
Methods inherited from Grid
#child_components, #class_can?, #configure_form_window, #get_json_sorter, #has_search_action?, #initialize, #linked_components
Methods included from Permissions
#can_call_endpoint?, #can_perform_action?, #can_perform_actions, #current_user_roles, extended, #has_any_perm?, #has_marty_permissions, #has_perm?
Constructor Details
This class inherits a constructor from Marty::Grid
Instance Method Details
#configure(c) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/components/marty/notifications/config_view.rb', line 11 def configure(c) super c.attributes = [:event_type, :recipient__name, :delivery_type, :state, :text] c.title ||= I18n.t('notifications_config', default: 'Notifications Configuration') c.model = 'Marty::Notifications::Config' c.editing = :in_form c.paging = :pagination c.store_config.merge!( sorters: [{ property: :id, direction: 'DESC', }] ) end |