-
Notifications
You must be signed in to change notification settings - Fork 0
/
attachment-list-upload-legacy.html
63 lines (61 loc) · 2.27 KB
/
attachment-list-upload-legacy.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<ul
class="attachment-list attachments"
id="attachment-list">
{% unless include.source == 'new' %}
{% for item in page.attachments %}
<li
class="attached-file">
<span
class="label pat-gallery">
{% for render in item.renders %}
<a
{% unless forloop.first %}hidden{% endunless %}
title="{{ item.title }}"
href="{{ render.url }}"
class="icon-document">{{ item.title }}</a>
{% endfor %}
</span>
<a
href="/feedback/panel-delete-attachment.html#document-content"
data-pat-modal="class: panel"
class="icon-trash iconified pat-modal"
title="Delete '{{ item.title }}'">Delete</a>
<a
href=""
class="icon-download iconified"
title="Download this file">Download</a>
</li>
{% endfor %}
{% endunless %}
{% if include.modal %}
<li
class="upload-area">
<a
href="{{ include.modal }}"
data-pat-inject="source: #document-content::element; target: #upload-modal"
class="pat-button pat-inject">Upload files</a>
</li>
{% else %}
<li
class="upload-area">
<fieldset
class="pat-inject pat-subform pat-autosubmit"
action="contracts-detail.html">
<fieldset
class="pat-upload group"
data-pat-upload="label: Drop files here or click to attach more files…; trigger: auto;">
<label
class="accessibility-options">
<input
type="file"
name="file"
multiple> Upload files
</label>
</fieldset>
<button
type="submit"
hidden>Upload</button>
</fieldset>
</li>
{% endif %}
</ul>