2020-06-24 14:31:52 -04:00
|
|
|
<form class="{{cssClass}}" autocomplete="off">
|
2020-11-12 17:30:07 -05:00
|
|
|
<section class="form-body">
|
|
|
|
<p class="notes">{{localize 'SW5E.FlagsInstructions'}}</p>
|
|
|
|
|
|
|
|
{{#each flags as |fs section|}}
|
|
|
|
<h3 class="form-header">{{localize section}}</h3>
|
|
|
|
{{#each fs as |flag key|}}
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>{{localize flag.name}}</label>
|
|
|
|
|
|
|
|
{{#if flag.isCheckbox}}
|
|
|
|
<input type="checkbox" name="{{key}}" data-dtype="Boolean" {{checked flag.value}}/>
|
|
|
|
|
|
|
|
{{else if flag.isSelect}}
|
|
|
|
<select name="{{key}}" data-dtype="{{flag.type}}">
|
|
|
|
{{#select flag.value}}
|
|
|
|
{{#each flag.choices as |v k|}}
|
|
|
|
<option value="{{k}}">{{localize v}}</option>
|
|
|
|
{{/each}}
|
|
|
|
{{/select}}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
<input type="text" name="{{key}}" value="{{flag.value}}" placeholder="{{flag.placeholder}}" data-dtype="{{flag.type}}"/>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<p class="notes">{{localize flag.hint}}</p>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
<h3 class="form-header">{{localize "SW5E.Bonuses"}}</h3>
|
|
|
|
<p class="notes">{{localize "SW5E.BonusesHint"}}</p>
|
|
|
|
{{#each bonuses as |b|}}
|
|
|
|
<div class="form-group">
|
|
|
|
<label>{{localize b.label}}</label>
|
|
|
|
<input type="text" name="{{b.name}}" value="{{b.value}}"/>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<footer class="form-footer">
|
|
|
|
<button type="submit" name="submit">
|
|
|
|
<i class="far fa-save"></i> {{localize 'SW5E.FlagsSave'}}
|
|
|
|
</button>
|
|
|
|
</footer>
|
2020-06-24 14:31:52 -04:00
|
|
|
</form>
|