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

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod007-permissions/abstract/permission.rb

Instance Method Summary collapse

Instance Method Details

#view: coreObject



21
22
23
24
25
26
27
# File 'platypus/tmp/set/gem-defaults/mod007-permissions/abstract/permission.rb', line 21

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

#view: inputObject



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'platypus/tmp/set/gem-defaults/mod007-permissions/abstract/permission.rb', line 33

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



29
30
31
# File 'platypus/tmp/set/gem-defaults/mod007-permissions/abstract/permission.rb', line 29

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

#view: pointer_coreObject



17
18
19
# File 'platypus/tmp/set/gem-defaults/mod007-permissions/abstract/permission.rb', line 17

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