111 lines
5.3 KiB
Handlebars
111 lines
5.3 KiB
Handlebars
<form class="{{cssClass}}" autocomplete="off">
|
|
<header class="sheet-header">
|
|
<img class="profile-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>
|
|
|
|
{{!-- Sheet Tab Navigation --}}
|
|
<nav class="sheet-tabs tabs" data-group="primary">
|
|
<a class="item" data-tab="description">{{localize "Description"}}</a>
|
|
<a class="item" data-tab="properties">{{localize "Properties"}}</a>
|
|
</nav>
|
|
|
|
{{!-- Sheet Body --}}
|
|
<section class="sheet-body">
|
|
|
|
{{!-- Description Tab --}}
|
|
<div class="tab" data-group="primary" data-tab="description">
|
|
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "subtype"}}</label>
|
|
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
|
|
{{#select data.subtype}}
|
|
<option value="melee">{{localize "Melee"}}</option>
|
|
<option value="ranged">{{localize "Ranged"}}</option>
|
|
{{/select}}
|
|
</select>
|
|
</div>
|
|
|
|
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
|
</div>
|
|
|
|
{{!-- Attributes Tab --}}
|
|
<div class="tab properties" data-group="primary" data-tab="properties">
|
|
{{!-- As you add new fields, add them in here! --}}
|
|
<!-- <div class="grid grid-2col">-->
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Quantity"}}</label>
|
|
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number" />
|
|
</div>
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Weight"}}</label>
|
|
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number" />
|
|
</div>
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Damage"}}</label>
|
|
<select name="data.damage" value="{{data.damage}}" data-dtype="String">
|
|
{{#select data.damage}}
|
|
<option value="1d3">d3</option>
|
|
<option value="1d6">d6</option>
|
|
<option value="1d6M">d6M</option>
|
|
<option value="1d6B">d6B</option>
|
|
{{/select}}
|
|
</select>
|
|
</div>
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Improvised"}}</label>
|
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.improvised" value="{{data.improvised}}" data-dtype="checkbox" {{checked
|
|
data.improvised}}/></label>
|
|
</div>
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Range"}}</label>
|
|
<input type="text" name="data.range" value="{{data.range}}" data-dtype="Number" />
|
|
</div>
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Thrown"}}</label>
|
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.thrown" value="{{data.thrown}}" data-dtype="checkbox" {{checked
|
|
data.thrown}}/></label>
|
|
</div>
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Two Hands"}}</label>
|
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.twohands" value="{{data.twohands}}" data-dtype="checkbox" {{checked
|
|
data.twohands}}/></label>
|
|
</div>
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Reload"}}</label>
|
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.reload" value="{{data.reload}}" data-dtype="checkbox" {{checked
|
|
data.reload}}/></label>
|
|
</div>
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Reload Duration"}}</label>
|
|
<input type="text" name="data.reloadduration" value="{{data.reloadduration}}" data-dtype="Number"/>
|
|
</div>
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Can be hidden"}}</label>
|
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.canbehidden" value="{{data.canbehidden}}" data-dtype="checkbox" {{checked
|
|
data.canbehidden}}/></label>
|
|
</div>
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Ignore Shield"}}</label>
|
|
<label class="attribute-value checkbox"><input type="checkbox" class="checkbox" name="data.ignoreshield" value="{{data.ignoreshield}}" data-dtype="checkbox" {{checked
|
|
data.ignoreshield}}/></label>
|
|
</div>
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize "Equipped ?"}}</label>
|
|
<label class="attribute-value checkbox"><input type="checkbox" class="checkbox" name="data.equipped" value="{{data.equipped}}" data-dtype="checkbox" {{checked
|
|
data.equipped}}/></label>
|
|
</div>
|
|
|
|
<!-- </div>-->
|
|
{{#each data.properties as |property key|}}
|
|
<div class="property flexrow">
|
|
<label class="property-label">{{localize key}}</label>
|
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked
|
|
property}} /></label>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</section>
|
|
</form> |