fvtt-te-deum/templates/items/item-arme-sheet.hbs

128 lines
5.1 KiB
Handlebars
Raw Normal View History

2024-02-19 22:02:44 +01:00
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
2024-02-29 22:35:12 +01:00
<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>
2024-02-19 22:02:44 +01:00
</header>
2024-02-29 22:35:12 +01:00
2024-02-19 22:02:44 +01:00
{{> systems/fvtt-te-deum/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-te-deum/templates/items/partial-item-description.hbs}}
2024-02-29 22:35:12 +01:00
2024-02-19 22:02:44 +01:00
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
<li class="flexrow">
<label class="item-name-label-long">Type d'arme</label>
<select name="system.typeArme">
2024-06-04 21:05:54 +02:00
{{selectOptions config.armeTypes selected=system.typeArme labelAttr="label"}}
2024-02-19 22:02:44 +01:00
</select>
</li>
2024-06-04 21:05:54 +02:00
<li class="flexrow">
<label class="item-name-label-long">Compétence</label>
<select name="system.competence">
{{selectOptions config.armeCompetences selected=system.competence labelAttr="label"}}
</select>
</li>
<li class="flexrow">
<label class="item-name-label-long">Compétence secondaire</label>
<select name="system.competence2">
{{selectOptions config.armeCompetences selected=system.competence2 blank="" labelAttr="label"}}
</select>
</li>
<h3>Spécificités</h3>
<li class="flexrow">
<label class="item-name-label-long">Dégâts</label>
<input type="text" class="padd-right numeric-input item-field-label-short"
name="system.degats" value="{{system.degats}}" data-dtype="String" />
</li>
{{#if (eq system.typeArme "melee")}}
<li class="flexrow">
<label class="item-name-label-long">Allonge</label>
<select name="system.allonge">
{{selectOptions config.armeAllonges selected=system.allonge labelAttr="label"}}
</select>
</li>
{{/if}}
2024-02-19 22:02:44 +01:00
2024-07-10 22:59:38 +02:00
{{#if (eq system.typeArme "tir")}}
<li class="flexrow">
<label class="item-name-label-long">Temps de recharge</label>
<input type="text" class="padd-right numeric-input item-field-label-short"
name="system.tempsRecharge" value="{{system.tempsRecharge}}" data-dtype="Number" />
</li>
<li class="flexrow">
<label class="item-name-label-long">Compétence de recharge</label>
<select name="system.competenceRecharge">
{{selectOptions config.competencesRecharge selected=system.competenceRecharge labelAttr="label"}}
</select>
</li>
{{/if}}
2024-02-29 22:35:12 +01:00
{{#each system.specificites as |spec specId|}}
<li class="flexrow">
2024-06-04 21:05:54 +02:00
{{#if (isSpecArmeType specId @root.system.typeArme)}}
2024-02-29 22:35:12 +01:00
<label class="item-name-label-long">{{getConfigLabel "ARME_SPECIFICITE" specId}}</label>
<input type="checkbox" name="system.specificites.{{specId}}.hasSpec" {{checked
spec.hasSpec}} />
2024-06-04 21:05:54 +02:00
{{/if}}
</li>
{{/each}}
{{#if (eq system.typeArme "tir")}}
<h3>Portées</h3>
{{#each system.portees as |portee porteeId|}}
<li class="flexrow">
<label class="item-name-label-long">{{getConfigLabel "ARME_PORTEES" porteeId}}</label>
<input type="text" class="padd-right numeric-input item-field-label-short"
name="system.portees.{{porteeId}}.value" value="{{portee.value}}" data-dtype="Number" />
2024-02-29 22:35:12 +01:00
</li>
{{/each}}
2024-06-04 21:05:54 +02:00
{{/if}}
2024-02-29 22:35:12 +01:00
2024-06-04 21:05:54 +02:00
<h3>Degats sur armures</h3>
2024-02-29 22:35:12 +01:00
{{#each system.degatsArmure as |degat degtId|}}
<li class="flexrow">
<label class="item-name-label-long">{{getConfigLabel "degatsArmure" degtId}}</label>
<input type="text" class="padd-right numeric-input item-field-label-short"
name="system.degatsArmure.{{degtId}}" value="{{degat}}" data-dtype="Number" />
</li>
{{/each}}
2024-06-04 21:05:54 +02:00
<h3>Autres</h3>
<li class="flexrow">
<label class="item-name-label-long">Equipé?</label>
<input type="checkbox" name="system.equipe" {{checked system.equipe}} />
</li>
2024-02-29 22:35:12 +01:00
<li class="flexrow">
<label class="item-name-label-long">Bonus d'Initiative</label>
<input type="text" class="padd-right numeric-input item-field-label-short"
name="system.initiativeBonus" value="{{system.initiativeBonus}}" data-dtype="Number" />
</li>
<li class="flexrow">
<label class="item-name-label-long">Prix</label>
<input type="text" class="padd-right numeric-input item-field-label-short"
name="system.prix" value="{{system.prix}}" data-dtype="Number" />
<select name="system.monnaie">
{{selectOptions config.monnaie selected=system.monnaie labelAttr="label" blank="denier"}}
</select>
</li>
2024-02-19 22:02:44 +01:00
</ul>
2024-02-29 22:35:12 +01:00
</div>
2024-02-19 22:02:44 +01:00
</div>
</section>
2024-02-29 22:35:12 +01:00
</form>