2020-11-28 19:12:19 +01:00
|
|
|
<form class="{{cssClass}}" autocomplete="off">
|
|
|
|
<div class="header">
|
|
|
|
<div class="avatar flex-group-center" style="grid-row: 1/3;">
|
|
|
|
<img class="item-avatar-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
|
|
|
|
</div>
|
|
|
|
<div class="container flex-group-center item-name">
|
|
|
|
<h1><input name="name" type="text" value="{{item.name}}" placeholder="{{localize "ITEM.WEAPON"}}" /></h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="grid-container" style="grid-template-columns: 1fr 1fr;">
|
|
|
|
<!--
|
|
|
|
<div class="supply">
|
2021-07-28 13:08:19 +02:00
|
|
|
<label>{{localize data.data.quantity.label}}</label>
|
|
|
|
<input name="data.quantity.value" type="number" value="{{data.data.quantity.value}}" />
|
2020-11-28 19:12:19 +01:00
|
|
|
</div>
|
|
|
|
-->
|
|
|
|
<div class="cost">
|
2021-07-28 13:08:19 +02:00
|
|
|
<label>{{localize data.data.price.label}}</label>
|
|
|
|
<input name="data.price.value" type="text" value="{{data.data.price.value}}" />
|
2020-11-28 19:12:19 +01:00
|
|
|
</div>
|
|
|
|
<div class="rating">
|
2021-07-28 13:08:19 +02:00
|
|
|
<label>{{localize data.data.damage.label}}</label>
|
|
|
|
<input name="data.damage.value" type="text" value="{{data.data.damage.value}}" />
|
2020-11-28 19:12:19 +01:00
|
|
|
</div>
|
|
|
|
<div>
|
2021-07-28 13:08:19 +02:00
|
|
|
<label>{{localize data.data.category.label}}</label>
|
2020-11-28 19:12:19 +01:00
|
|
|
<select class="item-weapon-cat-select" name="data.category.value">
|
2021-07-28 13:08:19 +02:00
|
|
|
{{#select data.data.category.value}}
|
2020-11-28 19:12:19 +01:00
|
|
|
<option value="melee">{{localize "WEAPON.MELEE"}}</option>
|
|
|
|
<option value="ranged">{{localize "WEAPON.RANGED"}}</option>
|
|
|
|
{{/select}}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label>{{localize "ITEM.SKILL"}}</label>
|
|
|
|
<select class="item-weapon-skill-select" name="data.skill.value">
|
2021-07-28 13:08:19 +02:00
|
|
|
{{#select data.data.skill.value}}
|
2020-11-28 19:12:19 +01:00
|
|
|
{{#each this.khskills as |t|}}
|
|
|
|
<option value="{{t.name}}">{{t.name}}</option>
|
|
|
|
{{/each}}
|
|
|
|
{{/select}}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<!--
|
|
|
|
<div class="grid-container" style="grid-template-columns: 1fr auto;">
|
2021-07-28 13:08:19 +02:00
|
|
|
<label>{{localize data.data.equipable.label}}</label>
|
|
|
|
<a class="item-bool-click {{#if data.data.equipable.value}}active{{/if}}" data-name="equipable" title="equipable">
|
|
|
|
<i class="far {{#if data.data.equipable.value}}fa-times-circle{{else}}fa-circle{{/if}}"></i>
|
2020-11-28 19:12:19 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
-->
|
|
|
|
</div>
|
|
|
|
<div class="item">
|
|
|
|
<div class="description">
|
2021-07-28 13:08:19 +02:00
|
|
|
<h2>{{localize data.data.description.label}}</h2>
|
2020-11-28 19:12:19 +01:00
|
|
|
<div class="info">
|
|
|
|
<div class="description">
|
2021-07-28 13:08:19 +02:00
|
|
|
{{editor content=data.data.description.value target="data.description.value" button=true owner=owner editable=editable}}
|
2020-11-28 19:12:19 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|