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

72 lines
3.3 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>
<li class="flexrow"><label class="generic-label">Type</label>
2022-12-04 12:16:25 +01:00
<input type="text" class="padd-right" name="system.armortype" value="{{system.armortype}}" data-dtype="String"/>
2022-11-27 08:58:19 +01:00
</li>
2022-11-27 11:53:37 +01:00
{{#each system.locations as |location key|}}
2022-12-04 12:16:25 +01:00
<li class="flexrow">
<label class="generic-label">{{locationLabel key}}</label>
<label class="generic-label">Protected ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="system.locations.{{key}}.protected" {{checked location.protected}}/></label>
2022-11-27 11:53:37 +01:00
{{#if location.protected}}
2022-12-04 12:16:25 +01:00
<li>
<ul class="ul-level1">
<li class="flexrow"><label class="generic-label">Protection (max)</label>
<input type="text" class="input-numeric-short padd-right" name="system.locations.{{key}}.max" value="{{location.max}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Protection (current)</label>
<input type="text" class="input-numeric-short padd-right" name="system.locations.{{key}}.value" value="{{location.value}}" data-dtype="Number"/>
</li>
</ul>
2022-11-27 11:53:37 +01:00
</li>
2022-12-04 12:16:25 +01:00
{{/if}}
2022-11-27 11:53:37 +01:00
{{/each}}
<li class="flexrow"><label class="generic-label">SI</label>
<input type="text" class="input-numeric-short padd-right" name="system.si" value="{{system.si}}" 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">Availability</label>
<select class="competence-base flexrow" type="text" name="system.availability" value="{{system.availability}}" data-dtype="String">
{{#select system.availability}}
{{#each config.availability as |name key|}}
<option value="{{key}}">{{name}}</option>
{{/each}}
2022-11-27 08:58:19 +01:00
{{/select}}
</select>
</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>