-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigForm.html
44 lines (38 loc) · 2.04 KB
/
configForm.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
<hr>
{{! Image }}
<div class="form-group">
<label>{{ localize "which-way-is-north.sceneSettings.image.label" }}</label>
<div class="form-fields">
<label class="checkbox">
<input type="checkbox" name="{{flagPath}}.enabled" {{checked enabled}}>
</label>
{{filePicker id=(concat moduleID "-filePicker") type="image" target=(concat flagPath ".src")}}
<input class="image" type="text" name="{{flagPath}}.src" placeholder="File Path" value="{{src}}">
</div>
<p class="notes">{{ localize "which-way-is-north.sceneSettings.image.notes" }}</p>
</div>
{{! Dimensions }}
<div class="form-group slim">
<label>{{ localize "which-way-is-north.sceneSettings.dimensions.label" }} <span class="units">({{ localize "which-way-is-north.sceneSettings.dimensions.unit" }})</span></label>
<div class="form-fields">
<label>{{ localize "which-way-is-north.sceneSettings.dimensions.formFields.width.label" }}</label>
<input type="number" step="any" name="{{flagPath}}.width" value="{{width}}">
<label>{{ localize "which-way-is-north.sceneSettings.dimensions.formFields.height.label" }}</label>
<input type="number" step="any" name="{{flagPath}}.height" value="{{height}}">
</div>
</div>
{{! Rotation }}
<div class="form-group slim">
<label>{{ localize "which-way-is-north.sceneSettings.rotation.label" }} <span class="units">({{ localize "which-way-is-north.sceneSettings.rotation.unit" }})</span></label>
<div class="form-fields">
<label>{{ localize "which-way-is-north.sceneSettings.rotation.formFields.rotation.label" }}</label>
<input type="number" step="1" name="{{flagPath}}.rot" value="{{rot}}">
</div>
</div>
{{! Opacity }}
<div class="form-group">
<label>{{ localize "which-way-is-north.sceneSettings.opacity.label" }} <span class="units">({{ localize "which-way-is-north.sceneSettings.opacity.unit" }})</span></label>
<div class="form-fields">
{{rangePicker name=(concat flagPath ".opacity") value=opacity min="0" max="1" step="0.05"}}
</div>
</div>