refactor: resturcture files so that lincensing info can be bundled properly
This commit is contained in:
parent
699ba74840
commit
1aa284311f
484 changed files with 119 additions and 179 deletions
28
templates/dialogs/simple-select-form.hbs
Normal file
28
templates/dialogs/simple-select-form.hbs
Normal file
|
@ -0,0 +1,28 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
{{!--
|
||||
!-- Render a simple form with select elements. It uses the default form classes of Foundry VTT.
|
||||
!-- @param selects: An array of objects that each contain the following:
|
||||
!---- identifier: The identifier to use as id for the select element. Can be used to query the value later on.
|
||||
!---- label: Text to display as the label for the select element.
|
||||
!---- options: Key-value pairs that describe the options. The keys are used for the value attribute of the
|
||||
options, the values are used as content.
|
||||
--}}
|
||||
<form class="ds4-simple-form">
|
||||
{{#each selects}}
|
||||
<div class="form-group">
|
||||
<label for="{{identifier}}">{{label}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="{{identifier}}" id="{{identifier}}">
|
||||
{{#each options as | value key |}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue