fvtt-dark-stars/templates/items/item-weapon-sheet.hbs

108 lines
4.7 KiB
Handlebars
Raw Normal View History

2022-11-27 08:58:19 +01:00
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
2022-12-04 12:16:25 +01:00
{{> systems/fvtt-dark-stars/templates/partials/partial-item-nav.hbs}}
2022-11-27 08:58:19 +01:00
{{!-- Sheet Body --}}
<section class="sheet-body">
2022-12-04 12:16:25 +01:00
{{> systems/fvtt-dark-stars/templates/partials/partial-item-description.hbs}}
2022-11-27 08:58:19 +01:00
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
2022-11-27 11:53:37 +01:00
<li class="flexrow"><label class="generic-label">Weapon Type</label>
<select class="competence-base flexrow" type="text" name="system.weapontype" value="{{system.weapontype}}" data-dtype="String">
{{#select system.weapontype}}
{{#each config.weapontypes as |type key|}}
<option value="{{key.name}}">{{type}}</option>
{{/each}}
2022-11-27 08:58:19 +01:00
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Associated skill</label>
2022-11-27 11:53:37 +01:00
<select class="competence-base flexrow" type="text" name="system.skill" value="{{system.skill}}" data-dtype="String">
{{#select system.skill}}
2022-11-27 08:58:19 +01:00
{{#each weaponSkills as |skill idx|}}
<option value="{{skill.name}}">{{skill.name}}</option>
{{/each}}
{{/select}}
</select>
</li>
2022-11-27 11:53:37 +01:00
<li class="flexrow"><label class="generic-label">Penetration</label>
<input type="text" class="right" name="system.penetration" value="{{system.penetration}}" data-dtype="String"/>
</li>
2022-11-27 08:58:19 +01:00
2022-11-27 11:53:37 +01:00
<li class="flexrow"><label class="generic-label">Damage</label>
<input type="text" class="right" name="system.damage" value="{{system.damage}}" data-dtype="String"/>
2022-11-27 08:58:19 +01:00
</li>
2022-11-27 11:53:37 +01:00
<li class="flexrow"><label class="generic-label">Bulk</label>
<input type="text" class="input-numeric-short padd-right" name="system.bulk" value="{{data.bulk}}" data-dtype="Number"/>
2022-11-27 08:58:19 +01:00
</li>
2022-11-27 11:53:37 +01:00
<li class="flexrow"><label class="generic-label">BR</label>
<input type="text" class="input-numeric-short padd-right" name="system.br" value="{{data.br}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">RoF</label>
<input type="text" class="input-numeric-short padd-right" name="system.rof" value="{{data.rof}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Ammo</label>
<input type="text" class="input-numeric-short padd-right" name="system.ammo" value="{{data.ammo}}" data-dtype="Number"/>
2022-11-27 08:58:19 +01:00
</li>
2022-11-27 11:53:37 +01:00
<li class="flexrow"><label class="generic-label">Effective Range</label>
<select class="competence-base flexrow" type="text" name="system.effectiverange" value="{{system.effectiverange}}" data-dtype="Number">
{{#select system.effectiverange}}
{{#each config.range as |type key|}}
<option value="{{key.name}}">{{type}}</option>
{{/each}}
{{/select}}
</select>
2022-11-27 08:58:19 +01:00
</li>
2022-11-27 11:53:37 +01:00
<li class="flexrow"><label class="generic-label">Maximum Range</label>
<select class="competence-base flexrow" type="text" name="system.maxrange" value="{{system.maxrange}}" data-dtype="Number">
{{#select system.maxrange}}
{{#each config.range as |type key|}}
<option value="{{key.name}}">{{type}}</option>
{{/each}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">SP</label>
<input type="text" class="input-numeric-short padd-right" name="system.sp" value="{{data.sp}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Size (-1 for non applicable)</label>
<input type="text" class="input-numeric-short padd-right" name="system.size" value="{{data.size}}" data-dtype="Number"/>
2022-11-27 08:58:19 +01:00
</li>
<li class="flexrow"><label class="generic-label">Equipped ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="system.equipped" {{checked data.equipped}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Cost</label>
<input type="text" class="input-numeric-short padd-right" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
</li>
</ul>
</div>
</div>
</section>
</form>