-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsortable-files.html
44 lines (43 loc) · 1.46 KB
/
sortable-files.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{%- if include.data -%}
{%- unless include.data == 'none' -%}
{%- assign this_source = include.data -%}
{%- endunless -%}
{%- else -%}
{%- assign this_source = page.attachments -%}
{%- endif -%}
{% unless include.data == 'none' %}
<ol
id="{{ include.id }}"
class="
pat-sortable
pat-clone
pat-sortable-blocks
title-summary"
data-pat-clone="
trigger-element: #{{ include.id }} .add-clone"
data-pat-sortable="
selector: #{{ include.id }} .sortable-item">
{% for attachment in this_source %}
<li
class="
clone
sortable-item">
{% include patterns/sortable-blocks-item-fields.html
type=attachment.type
size=attachment.size
kind=attachment.kind
data=attachment.data
renders=attachment.renders %}
{% include patterns/sortable-blocks-button-cluster.html %}
<div
class="sortable-item-functions">
{% include patterns/open-modal.html
class="edit pat-button no-label"
label=patterns.label_edit_imp
href=include.edit-panel
%}
</div>
</li>
{% endfor %}
</ol>
{% endunless %}