Files
fvtt-prism-rpg/templates/class.hbs
T
2025-11-22 23:11:20 +01:00

92 lines
2.4 KiB
Handlebars

<section>
<div class="header">
<img class="item-img" src="{{item.img}}" data-edit="img" data-action="editImage" data-tooltip="{{item.name}}" />
{{formInput fields.name value=source.name}}
</div>
<div class="flexrow">
<div class="align-top">
{{! Class Type and Archetype }}
{{formField systemFields.archetype value=system.archetype localize=true}}
{{formField systemFields.classType value=system.classType localize=true}}
{{#if (eq system.classType "continental")}}
{{formField systemFields.continent value=system.continent}}
{{/if}}
{{formField systemFields.level value=system.level}}
</div>
<div class="align-top">
{{! Proficiencies }}
{{formField systemFields.weaponProficiencies value=system.weaponProficiencies}}
{{formField systemFields.armorProficiencies value=system.armorProficiencies}}
{{! Spellcasting }}
{{formField systemFields.spellcasting value=system.spellcasting}}
{{#if system.spellcasting}}
{{formField systemFields.spellcastingType value=system.spellcastingType localize=true}}
{{/if}}
</div>
</div>
{{! Attribute Bonuses }}
<fieldset>
<legend>{{localize "PRISMRPG.Label.attributeBonuses"}}</legend>
{{formInput
systemFields.attributeBonuses
enriched=enrichedAttributeBonuses
value=system.attributeBonuses
name="system.attributeBonuses"
toggled=true
}}
</fieldset>
{{! Class Features }}
<fieldset>
<legend>{{localize "PRISMRPG.Label.classFeatures"}}</legend>
{{#each system.features as |feature level|}}
<label>{{localize "PRISMRPG.Label.level"}} {{inc @key}}</label>
{{formInput
(lookup ../systemFields.features.fields @key)
enriched=(lookup ../enrichedFeatures @key)
value=feature
name=(concat "system.features." @key)
toggled=true
}}
{{/each}}
</fieldset>
{{! Notes }}
<fieldset>
<legend>{{localize "PRISMRPG.Label.notes"}}</legend>
{{formInput
systemFields.notes
enriched=enrichedNotes
value=system.notes
name="system.notes"
toggled=true
}}
</fieldset>
{{! Description }}
<fieldset>
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
{{formInput
systemFields.description
enriched=enrichedDescription
value=system.description
name="system.description"
toggled=true
}}
</fieldset>
</section>