Class: Ez::Settings::GroupCell
- Inherits:
-
BaseCell
- Object
- Cell::ViewModel
- BaseCell
- Ez::Settings::GroupCell
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
#group, #interface
Instance Method Details
#cancel_link ⇒ Object
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
|
10
11
12
|
# File 'app/cells/ez/settings/group_cell.rb', line 10
def form_url
"#{interface.config.default_path}/#{model.name}"
end
|
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
|