Module: Card::Set::Abstract::Permission::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
card/tmpsets/set/mod010-card-mod-permissions/abstract/permission.rb,
card/tmpsets/set/mod009-card-mod-permissions/abstract/permission.rb

Instance Method Summary collapse

Instance Method Details

#view: coreObject



22
23
24
25
26
27
28
# File 'card/tmpsets/set/mod010-card-mod-permissions/abstract/permission.rb', line 22

view :core, cache: :never do
  if card.content == "_left"
    core_inherit_content
  else
    render! :pointer_core
  end
end

#view: inputObject



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'card/tmpsets/set/mod010-card-mod-permissions/abstract/permission.rb', line 34

view :input do
  item_names = inheriting? ? [] : card.item_names
  %(
    #{_render_hidden_content_field}
    <div class="perm-editor">
      #{inheritance_checkbox}
      <div class="perm-group perm-vals perm-section">
        <h5 class="text-muted">Groups</h5>
        #{groups item_names}
      </div>

      <div class="perm-indiv perm-vals perm-section">
        <h5 class="text-muted">Individuals</h5>
        #{list_input item_list: item_names, extra_css_class: 'perm-indiv-ul'}
      </div>
    </div>
  )
end

#view: one_line_contentObject



30
31
32
# File 'card/tmpsets/set/mod010-card-mod-permissions/abstract/permission.rb', line 30

view :one_line_content, cache: :never do
  render_core items: { view: :link }
end

#view: pointer_coreObject



18
19
20
# File 'card/tmpsets/set/mod010-card-mod-permissions/abstract/permission.rb', line 18

view :pointer_core do
  wrap_with :div, pointer_items, class: "pointer-list"
end