-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdirectory.html
More file actions
80 lines (73 loc) · 3.33 KB
/
directory.html
File metadata and controls
80 lines (73 loc) · 3.33 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<div class="scrollable flexcol" style="flex: 1; padding-right: 0;">
<main style="flex: 1;">
<h4 style="border-bottom: 1px solid var(--color-underline-active);">Selected Token</h4>
{{#if hasTokens}}
<select id="tokenAuraRingDirectoryTokenSelector" name="token">
<option
disabled
{{#if noTokenSelected}}selected{{/if}}
value=""
>Select a token...</option>
{{#each tokens as |token|}}
<option
data-action="changeToken"
{{#if token.selected}}selected{{/if}}
value="{{token.id}}"
>{{token.name}}</option>
{{/each}}
</select>
<p class="hint">Select the token to add Aura Rings to.</p>
{{else}}
<p>You do not control any Tokens in the current scene.</p>
<p>Add an owned Token to the scene to add Aura Rings.</p>
{{/if}}
<h4 style="border-bottom: 1px solid var(--color-underline-active);">Saved Aura Rings</h4>
<ul style="display:flex; flex-direction: column; list-style-type: none; padding-left: 0; margin: 0;">
{{#each auraRings as |auraRing|}}
<li style="display: flex; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-light-3)">
<span>{{auraRing.name}}</span>
<div style="display: flex; flex: 0; align-items: center; margin-left: 1rem;">
<button
data-action="add"
data-aura="{{auraRing.name}}"
style="flex: 0; padding: 3px; margin-left: 3px;"
type="button"
title="Add to selected token"
>
<i class="fas fa-plus"></i>
</button>
<button
data-action="rename"
data-aura="{{auraRing.name}}"
style="flex: 0; padding: 3px; margin-left: 3px;"
type="button"
title="Rename..."
>
<i class="fas fa-pencil"></i>
</button>
<button
data-action="remove"
data-aura="{{auraRing.name}}"
style="flex: 0; padding: 3px; margin-left: 3px;"
type="button"
title="Remove from directory"
>
<i class="fas fa-trash"></i>
</button>
</div>
</li>
{{else}}
<p>No Aura Rings have been saved to the directory.</p>
<p>You can save an Aura Ring to the directory from the token's Aura Ring Configuration menu.</p>
{{/each}}
</ul>
</main>
<footer>
<button
data-action="close"
style="width: 100%;"
>
<i class="fas fa-times"></i> Close Directory
</button>
</footer>
</div>