-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add font size option * move opening crawl inputs to a dedicated window #24
- Loading branch information
Wrycu
committed
May 27, 2021
1 parent
2e391ac
commit 4edea77
Showing
5 changed files
with
221 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{{#*inline "settingPartial"}} | ||
<div class="form-group"> | ||
<label> | ||
{{#iff this.type '==' 'setting_image'}} | ||
<i class="fas fa-video"></i> | ||
{{/iff}} | ||
{{#iff this.type '==' 'setting_audio'}} | ||
<i class="fas fa-volume-up"></i> | ||
{{/iff}} | ||
{{this.name}} | ||
</label> | ||
<div class="form-fields"> | ||
{{#if this.isCheckbox}} | ||
<input data-dtype="Boolean" name="{{this.module}}.{{this.key}}" this.value}} type="checkbox" {{checked/> | ||
|
||
{{else if this.isSelect}} | ||
<select name="{{this.module}}.{{this.key}}"> | ||
{{#select this.value}} {{#each this.choices as |name k|}} | ||
<option value="{{k}}">{{localize name}}</option> | ||
{{/each}} {{/select}} | ||
</select> | ||
|
||
{{else if this.isRange}} | ||
<input data-dtype="Number" max="{{ this.range.max }}" min="{{ this.range.min }}" name="{{this.module}}.{{this.key}}" | ||
step="{{ this.range.step }}" type="range" value="{{ this.value }}"/> | ||
<span class="range-value">{{this.value}}</span> | ||
|
||
{{else if this.isFilePicker}} | ||
<input data-dtype="{{this.type}}" name="{{this.module}}.{{this.key}}" type="text" value="{{this.value}}"/> | ||
<button class="filepicker" type="button">...</button> | ||
{{else}} | ||
<input data-dtype="{{this.type}}" name="{{this.module}}.{{this.key}}" type="text" value="{{this.value}}"/> | ||
{{#iff this.type '==' 'setting_image'}} | ||
<button class="file-picker" data-target="{{this.module}}.{{this.key}}" data-type="image" type="button"> | ||
<i class="fas fa-file-import"></i> | ||
</button> | ||
{{/iff}} | ||
{{#iff this.type '==' 'setting_audio'}} | ||
<button class="file-picker" data-target="{{this.module}}.{{this.key}}" data-type="audio" type="button"> | ||
<i class="fas fa-file-import"></i> | ||
</button> | ||
{{/iff}} | ||
{{/if}} | ||
</div> | ||
|
||
<p class="notes">{{this.hint}}</p> | ||
</div> | ||
{{/inline}} | ||
|
||
<form autocomplete="off" class="flexcol"> | ||
<section class="content" id="config-tabs"> | ||
<div class="settings-list"> | ||
<h2 class="module-header">{{ localize data.system.title }}</h2> | ||
{{#each data.system.menus}} {{> menuPartial}} {{/each}} {{#each data.system.settings}} {{> settingPartial}} | ||
{{else}} | ||
<p class="notes">{{localize 'SETTINGS.None'}}</p> | ||
{{/each}} | ||
</div> | ||
</section> | ||
<footer class="sheet-footer flexrow"> | ||
<button name="submit" type="submit"><i class="far fa-save"></i> {{localize 'SETTINGS.Save'}}</button> | ||
<button name="reset" type="button"><i class="fas fa-undo"></i> {{localize 'SETTINGS.Reset'}}</button> | ||
</footer> | ||
</form> |