Add a custom DocumentSheetConfig that supports tab-based configuration for my system-specific stuff

This commit is contained in:
Eldritch-Oliver 2025-10-04 19:40:37 -06:00
parent c7c0deaec7
commit 6081b8f9e8
7 changed files with 289 additions and 1 deletions

View file

@ -0,0 +1,48 @@
<div class="system tab {{tabs.system.cssClass}}" data-group="main" data-tab="system">
<fieldset>
<legend>
{{ localize "taf.Apps.TAFDocumentSheetConfig.Sizing" }}
</legend>
<div class="form-group">
<label for="{{meta.idp}}-width">
{{ localize "taf.Apps.TAFDocumentSheetConfig.Width.label" }}
</label>
<div class="form-fields">
<input
type="number"
name="FLAGS.taf.PlayerSheet.size.width"
id="{{meta.idp}}-width"
value="{{values.width}}"
placeholder="{{placeholders.width}}"
>
</div>
</div>
<div class="form-group">
<label for="{{meta.idp}}-height">
{{ localize "taf.Apps.TAFDocumentSheetConfig.Height.label" }}
</label>
<div class="form-fields">
<input
type="number"
name="FLAGS.taf.PlayerSheet.size.height"
id="{{meta.idp}}-height"
value="{{values.height}}"
placeholder="{{placeholders.height}}"
>
</div>
</div>
<div class="form-group">
<label for="{{meta.idp}}-resize">
{{ localize "taf.Apps.TAFDocumentSheetConfig.Resizable.label" }}
</label>
<div class="form-fields">
<select
name="FLAGS.taf.PlayerSheet.size.resizable"
id="{{meta.idp}}-resize"
>
{{ taf-options values.resizable resizeOptions }}
</select>
</div>
</div>
</fieldset>
</div>