Class: Ez::Settings::GroupCell

Inherits:
BaseCell
  • Object
show all
Defined in:
app/cells/ez/settings/group_cell.rb

Constant Summary

Constants inherited from BaseCell

BaseCell::ACTIONS, BaseCell::CANCEL, BaseCell::GROUPS, BaseCell::INTERFACES, BaseCell::KEYS, BaseCell::LABEL, BaseCell::SAVE, BaseCell::SCOPE

Instance Method Summary collapse

Methods inherited from BaseCell

#controller, #css_for, #css_map, form, #group_link, #group_path, #i18n_group_label, #i18n_key_label, option

Methods included from RequestDispatcher

#group, #interface

Instance Method Details



19
20
21
22
23
24
# File 'app/cells/ez/settings/group_cell.rb', line 19

def cancel_link
  link_to t(LABEL, scope:   [SCOPE, INTERFACES, model.interface, ACTIONS,CANCEL],
                   default: 'Cancel'),
    interface.config.default_path,
    class: css_for(:group_page_actions_cancel_link)
end

#form_urlObject



8
9
10
# File 'app/cells/ez/settings/group_cell.rb', line 8

def form_url
  "#{interface.config.default_path}/#{model.name}"
end

#save_button(form) ⇒ Object



12
13
14
15
16
17
# File 'app/cells/ez/settings/group_cell.rb', line 12

def save_button(form)
  form.button :submit,
    t(LABEL, scope:   [SCOPE, INTERFACES, model.interface, ACTIONS, SAVE],
             default: 'Save'),
    class: css_for(:group_page_actions_save_button)
end