|
15 | 15 | /></h1> |
16 | 16 | </header> |
17 | 17 |
|
18 | | - {{!-- <div class="form-group"> |
19 | | - <label>Triggers</label> |
20 | | - <div class="form-fields trigger-controls"> |
21 | | - <select> |
22 | | - {{selectOptions availableTriggers}} |
23 | | - </select> |
24 | | - <button class="trigger-control" type="button" data-action="addTrigger"> |
25 | | - <i class="fas fa-plus"></i> |
26 | | - Add |
27 | | - </button> |
28 | | - </div> |
29 | | - </div> |
30 | | -
|
31 | | - <ol class="form-group stacked triggers"> |
32 | | - {{#each data.triggers}} |
33 | | - <li class="flexrow" data-trigger-id="{{this}}"> |
34 | | - <span>{{localize (concat "SCRIPTABLE-ITEMS.Trigger." this)}}</span> |
35 | | - <a class="trigger-control" data-action="removeTrigger"> |
36 | | - <i class="fas fa-trash"></i> |
37 | | - </a> |
38 | | - </li> |
39 | | - {{/each}} |
40 | | - </ol> --}} |
41 | | - |
42 | 18 | <div class="form-group"> |
43 | 19 | <label>Triggers</label> |
44 | 20 | <multi-select name="triggers"> |
|
48 | 24 | </multi-select> |
49 | 25 | </div> |
50 | 26 |
|
| 27 | + <details> |
| 28 | + <summary>Button Configuration</summary> |
| 29 | + <fieldset> |
| 30 | + <div class="form-group"> |
| 31 | + <label>Icon</label> |
| 32 | + <input |
| 33 | + name="buttonIconClasses" |
| 34 | + type="text" |
| 35 | + value="{{data.buttonIconClasses}}" |
| 36 | + placeholder="fa-solid fa-code" |
| 37 | + /> |
| 38 | + <p class="hint">CSS classes used for the icon of the button. If |
| 39 | + empty, no icon will be shown.</p> |
| 40 | + </div> |
| 41 | + <div class="form-group"> |
| 42 | + <label>Text</label> |
| 43 | + <input |
| 44 | + name="buttonText" |
| 45 | + type="text" |
| 46 | + value="{{data.buttonText}}" |
| 47 | + placeholder="{{data.name}}" |
| 48 | + /> |
| 49 | + <p class="hint">Text displayed on the button. Is always right of |
| 50 | + the icon and defaults to the scripts name if left empty.</p> |
| 51 | + </div> |
| 52 | + </fieldset> |
| 53 | + </details> |
| 54 | + |
51 | 55 | <div class="form-group stacked command"> |
52 | 56 | <label>{{localize "Command"}}</label> |
53 | 57 | <textarea name="command">{{data.command}}</textarea> |
|
0 commit comments