Module: Card::Set::Type::Role::HtmlFormat
- Extended by:
- AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod014-account/type/role.rb
Instance Method Summary collapse
Instance Method Details
#related_by_content_items ⇒ Object
27 28 29 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/type/role.rb', line 27 def super.unshift ["members", :members] end |
#role_checkbox ⇒ Object
19 20 21 22 23 24 25 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/type/role.rb', line 19 def role_checkbox name = card.disabled? ? "add_item" : "drop_item" subformat(Auth.current.field(:disabled_roles)).card_form :update do [check_box_tag(name, card.id, !card.disabled?, class: "_edit-item"), render_link] end end |
#view: link_with_checkbox ⇒ Object
15 16 17 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/type/role.rb', line 15 view :link_with_checkbox, cache: :never do role_checkbox end |