|
1 | 1 | <form class="{{cssClass}} flexcol script-config" autocomplete="off"> |
2 | 2 | <header class="sheet-header"> |
3 | | - <img |
4 | | - src="{{data.img}}" |
5 | | - data-edit="img" |
6 | | - title="{{data.name}}" |
7 | | - height="64" |
8 | | - width="64" |
9 | | - /> |
10 | | - <h1><input |
11 | | - name="name" |
12 | | - type="text" |
13 | | - value="{{data.name}}" |
14 | | - placeholder="{{localize 'Name'}}" |
15 | | - /></h1> |
| 3 | + <img src="{{data.img}}" data-edit="img" title="{{data.name}}" height="64" width="64" /> |
| 4 | + <h1><input name="name" type="text" value="{{data.name}}" placeholder="{{localize 'Name'}}" /></h1> |
16 | 5 | </header> |
17 | 6 |
|
18 | 7 | <div class="form-group"> |
19 | 8 | <label>Triggers</label> |
20 | 9 | <multi-select name="triggers"> |
21 | 10 | {{#each triggers}} |
22 | | - <option value={{@key}} {{selected}}>{{label}}</option> |
| 11 | + <option value={{@key}} {{selected}}>{{label}}</option> |
23 | 12 | {{/each}} |
24 | 13 | </multi-select> |
25 | 14 | </div> |
26 | 15 |
|
27 | 16 | <details> |
28 | 17 | <summary>Button Configuration</summary> |
29 | 18 | <fieldset> |
| 19 | + <div class="form-group"> |
| 20 | + <label>Required Permissions</label> |
| 21 | + <select name="buttonPermission"> |
| 22 | + {{selectOptions buttonPermissionChoices selected=data.buttonPermission inverted=true}} |
| 23 | + </select> |
| 24 | + </div> |
30 | 25 | <div class="form-group"> |
31 | 26 | <label>Icon</label> |
32 | | - <input |
33 | | - name="buttonIconClasses" |
34 | | - type="text" |
35 | | - value="{{data.buttonIconClasses}}" |
36 | | - placeholder="fa-solid fa-code" |
37 | | - /> |
| 27 | + <input name="buttonIconClasses" type="text" value="{{data.buttonIconClasses}}" |
| 28 | + placeholder="fa-solid fa-code" /> |
38 | 29 | <p class="hint">CSS classes used for the icon of the button. If |
39 | 30 | empty, no icon will be shown.</p> |
40 | 31 | </div> |
41 | 32 | <div class="form-group"> |
42 | 33 | <label>Text</label> |
43 | | - <input |
44 | | - name="buttonText" |
45 | | - type="text" |
46 | | - value="{{data.buttonText}}" |
47 | | - placeholder="{{data.name}}" |
48 | | - /> |
| 34 | + <input name="buttonText" type="text" value="{{data.buttonText}}" placeholder="{{data.name}}" /> |
49 | 35 | <p class="hint">Text displayed on the button. Is always right of |
50 | 36 | the icon and defaults to the scripts name if left empty.</p> |
51 | 37 | </div> |
|
0 commit comments