-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathresource-icon-config.hbs
102 lines (92 loc) · 4.04 KB
/
resource-icon-config.hbs
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<form class="flexcol">
<div class="form-group">
<label>Display Icons</label>
<div class="form-fields">
<select name="flags.resource-icons.displayIcons" data-dtype="Number">
{{selectOptions displayModes selected=displayIcons}}
</select>
</div>
</div>
<nav class="sheet-tabs tabs" data-group="main">
<a class="item" data-tab="icon1"> Icon 1</a>
<a class="item" data-tab="icon2"> Icon 2</a>
<a class="item" data-tab="icon3"> Icon 3</a>
</nav>
{{#each iconData as |icon key|}}
<div class="tab" data-group="main" data-tab="{{key}}">
<div class="form-group">
<label>Resource</label>
<div class="form-fields">
{{#if ../expertMode}}
<input type="text" name="flags.resource-icons.iconData.{{key}}.resource" value="{{icon.resource}}"
placeholder="resource data path" />
{{else}}
<select class="bar-attribute" name="flags.resource-icons.iconData.{{key}}.resource">
{{#select icon.resource}}
<option value="">{{ localize "None" }}</option>
{{#each ../resourceChoices as |attrs label|}}
<optgroup label="{{ label }}">
{{#each attrs}}
<option value="{{this}}">{{this}}</option>
{{/each}}
</optgroup>
{{/each}}
{{/select}}
</select>
{{/if}}
</div>
</div>
<div class="form-group">
<label>Icon</label>
<div class="form-fields">
<button type="button" class="file-picker" data-type="imagevideo"
data-target="flags.resource-icons.iconData.{{key}}.img" title="Browse Files" tabindex="-1">
<i class="fas fa-file-import fa-fw"></i>
</button>
<input class="image" type="text" name="flags.resource-icons.iconData.{{key}}.img"
placeholder="path/image.png" value="{{icon.img}}">
</div>
</div>
<div class="form-group">
<label>Tint Color</label>
<div class="form-fields">
<input class="color" type="text" name="flags.resource-icons.iconData.{{key}}.tint"
value="{{icon.tint}}">
<input type="color" value="{{icon.tint}}" data-edit="flags.resource-icons.iconData.{{key}}.tint">
</div>
</div>
<div class="form-group">
<label>Background Color</label>
<div class="form-fields">
<input class="color" type="text" name="flags.resource-icons.iconData.{{key}}.background"
value="{{icon.background}}">
<input type="color" value="{{icon.background}}"
data-edit="flags.resource-icons.iconData.{{key}}.background">
</div>
</div>
<div class="form-group">
<label>Border Color</label>
<div class="form-fields">
<input class="color" type="text" name="flags.resource-icons.iconData.{{key}}.border"
value="{{icon.border}}">
<input type="color" value="{{icon.border}}" data-edit="flags.resource-icons.iconData.{{key}}.border">
</div>
</div>
<div class="form-group">
<label>Shape</label>
<div class="form-fields">
<select class="bar-attribute" name="flags.resource-icons.iconData.{{key}}.shape">
{{#select icon.shape}}
<option value="circle">Circle</option>
<option value="square">Square</option>
{{/select}}
</select>
</div>
</div>
</div>
</div>
{{/each}}
<footer class="sheet-footer flexrow">
<button type="submit" name="submit" value="1"><i class="far fa-save"></i>Save</button>
</footer>
</form>