53 lines
2.1 KiB
Handlebars
53 lines
2.1 KiB
Handlebars
<div class="item-sheet weapon">
|
|
<header class="item-header">
|
|
<div class="item-portrait" data-action="editImage">
|
|
<img src="{{item.img}}" alt="{{item.name}}">
|
|
</div>
|
|
<div class="item-header-fields">
|
|
<input type="text" name="name" value="{{item.name}}" {{#unless isEditable}}disabled{{/unless}}>
|
|
<div class="item-meta weapon-meta">
|
|
<div class="form-group">
|
|
<label>{{localize "CELESTOPOL.Weapon.type"}}</label>
|
|
<select name="system.type" {{#unless isEditable}}disabled{{/unless}}>
|
|
{{#each combatTypes as |ctype key|}}
|
|
<option value="{{key}}" {{#if (eq key ../system.type)}}selected{{/if}}>
|
|
{{localize ctype.label}}
|
|
</option>
|
|
{{/each}}
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>{{localize "CELESTOPOL.Weapon.degats"}}</label>
|
|
<select name="system.degats" {{#unless isEditable}}disabled{{/unless}}>
|
|
{{#each damageTypes as |dtype key|}}
|
|
<option value="{{key}}" {{#if (eq key ../system.degats)}}selected{{/if}}>
|
|
{{localize dtype.label}}
|
|
</option>
|
|
{{/each}}
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>{{localize "CELESTOPOL.Weapon.portee"}}</label>
|
|
<select name="system.portee" {{#unless isEditable}}disabled{{/unless}}>
|
|
{{#each rangeTypes as |rtype key|}}
|
|
<option value="{{key}}" {{#if (eq key ../system.portee)}}selected{{/if}}>
|
|
{{localize rtype.label}}
|
|
</option>
|
|
{{/each}}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="weapon-damage-badge">
|
|
<span class="damage-label">{{localize "CELESTOPOL.Weapon.degats"}}</span>
|
|
<span class="damage-value">{{system.degats}}</span>
|
|
<span class="damage-hint">{{localize (lookup (lookup damageTypes system.degats) "hint")}}</span>
|
|
</div>
|
|
|
|
<div class="form-group description-group">
|
|
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
|
</div>
|
|
</div>
|