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::DESCRIPTION, 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_description, #i18n_group_label, #i18n_key_label, option

Methods included from RequestDispatcher

#group, #interface

Instance Method Details



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

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



10
11
12
# File 'app/cells/ez/settings/group_cell.rb', line 10

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

#save_button(form) ⇒ Object



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

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