daggerheart/templates/sheets/weapon.hbs
2025-05-22 16:53:39 +02:00

86 lines
No EOL
4.7 KiB
Handlebars

<div>
<header class="flexcol">
{{!-- <div class="flexrow">
<img class="flex0" src="{{item.img}}" data-edit="img" title="{{item.name}}" height="64" width="64"/>
<div class="title-name">
<h2><input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'Name' }}"/></h2>
</div>
</div> --}}
<div class="title-container">
<img class="flex0" src="{{document.img}}" data-edit="img" data-action="onEditImage" title="{{document.name}}" height="64" width="64"/>
<div class="title-name">
{{formInput fields.name value=source.name rootId=partId}}
</div>
</div>
</header>
<section class="sheet-body">
{{formField systemFields.secondary value=source.system.secondary label=(localize "DAGGERHEART.Sheets.Weapon.SecondaryWeapon") }}
{{formField systemFields.trait value=source.system.trait label=(localize "DAGGERHEART.Sheets.Weapon.Trait") localize=true }}
{{formField systemFields.range value=source.system.range label=(localize "DAGGERHEART.Sheets.Weapon.Range") localize=true }}
<div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Title"}}</label>
<div class="form-fields">
{{formGroup systemFields.damage.fields.value value=source.system.damage.value label=(localize "DAGGERHEART.Sheets.Weapon.Damage.Value") }}
{{formGroup systemFields.damage.fields.type value=source.system.damage.type label=(localize "DAGGERHEART.Sheets.Weapon.Damage.Type") localize=true }}
</div>
</div>
{{formField systemFields.burden value=source.system.burden label=(localize "DAGGERHEART.Sheets.Weapon.Burden") localize=true }}
{{formField systemFields.feature value=source.system.feature label=(localize "DAGGERHEART.Sheets.Weapon.Feature") localize=true }}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.SecondaryWeapon"}}</label>
<div class="form-fields">
<input type="checkbox" name="system.secondary" {{checked item.system.secondary}} />
</div>
</div> --}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Trait"}}</label>
<div class="form-fields">
<select name="system.trait">
{{selectOptions config.ACTOR.abilities selected=item.system.trait labelAttr="name" localize=true }}
</select>
</div>
</div> --}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Range"}}</label>
<div class="form-fields">
<select name="system.range">
{{selectOptions config.GENERAL.range selected=item.system.range labelAttr="name" localize=true }}
</select>
</div>
</div> --}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Title"}}</label>
<div class="form-fields">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Value"}}</label>
<input type="text" name="system.damage.value" value="{{item.system.damage.value}}" />
<label>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Type"}}</label>
<select name="system.damage.type">
{{selectOptions config.GENERAL.damageTypes selected=item.system.damage.type labelAttr="name" localize=true }}
</select>
</div>
</div> --}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Burden"}}</label>
<div class="form-fields">
<select name="system.burden">
{{selectOptions config.GENERAL.burden selected=item.system.burden localize=true }}
</select>
</div>
</div> --}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Feature"}}</label>
<div class="form-fields">
<select name="system.feature">
{{selectOptions config.ITEM.weaponFeatures selected=item.system.feature labelAttr="name" localize=true blank="" }}
</select>
</div>
</div> --}}
<div class="feature-description">
<h2>{{localize "DAGGERHEART.Sheets.Weapon.Description"}}</h2>
{{formInput systemFields.description value=source.system.description enriched=source.system.description localize=true toggled=true}}
{{!-- {{editor item.system.description target="system.description" button=true}} --}}
</div>
</section>
</div>