2022-10-22 11:09:48 +02: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>
|
|
|
|
|
|
|
|
{{!-- Sheet Body --}}
|
|
|
|
<section class="sheet-body">
|
|
|
|
|
2022-10-23 09:55:02 +02:00
|
|
|
<ul class="item-list alternate-list">
|
|
|
|
<li class="flexrow item">
|
|
|
|
<label class="generic-label item-field-label-long">Niveau </label>
|
|
|
|
<input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
|
|
|
|
name="system.niveau" value="{{system.niveau}}" data-dtype="Number" />
|
|
|
|
</li>
|
|
|
|
<li class="flexrow item">
|
|
|
|
<label class="generic-label item-field-label-long">Attribut 1 </label>
|
|
|
|
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.attribut1"
|
2022-10-22 23:15:55 +02:00
|
|
|
value="{{system.attribut1}}" data-dtype="string">
|
|
|
|
{{#select system.attribut1}}
|
2022-10-22 11:09:48 +02:00
|
|
|
{{#each attributs as |attrLabel attrKey|}}
|
|
|
|
<option value="{{attrKey}}">{{attrLabel}}</option>
|
|
|
|
{{/each}}
|
|
|
|
{{/select}}
|
|
|
|
</select>
|
2022-10-23 09:55:02 +02:00
|
|
|
</li>
|
|
|
|
<li class="flexrow item">
|
|
|
|
<label class="generic-label item-field-label-long">Attribut 2 </label>
|
|
|
|
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.attribut2"
|
2022-10-22 23:15:55 +02:00
|
|
|
value="{{system.attribut2}}" data-dtype="string">
|
2022-10-22 11:09:48 +02:00
|
|
|
<option value="none">Aucun</option>
|
2022-10-22 23:15:55 +02:00
|
|
|
{{#select system.attribut2}}
|
2022-10-22 11:09:48 +02:00
|
|
|
{{#each attributs as |attrLabel attrKey|}}
|
|
|
|
<option value="{{attrKey}}">{{attrLabel}}</option>
|
|
|
|
{{/each}}
|
|
|
|
{{/select}}
|
|
|
|
</select>
|
2022-10-23 09:55:02 +02:00
|
|
|
</li>
|
|
|
|
<li class="flexrow item">
|
|
|
|
<label class="generic-label item-field-label-long">Attribut 3 </label>
|
|
|
|
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.attribut3"
|
2022-10-22 23:15:55 +02:00
|
|
|
value="{{system.attribut3}}" data-dtype="string">
|
2022-10-22 11:09:48 +02:00
|
|
|
<option value="none">Aucun</option>
|
2022-10-22 23:15:55 +02:00
|
|
|
{{#select system.attribut3}}
|
2022-10-22 11:09:48 +02:00
|
|
|
{{#each attributs as |attrLabel attrKey|}}
|
|
|
|
<option value="{{attrKey}}">{{attrLabel}}</option>
|
|
|
|
{{/each}}
|
|
|
|
{{/select}}
|
|
|
|
</select>
|
2022-10-23 09:55:02 +02:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="flexrow item">
|
2022-10-22 11:09:48 +02:00
|
|
|
<h3>Prédilections</h3>
|
2022-10-23 09:55:02 +02:00
|
|
|
</li>
|
|
|
|
<li class="flexrow item">
|
|
|
|
<ul>
|
2022-10-22 23:15:55 +02:00
|
|
|
{{#each system.predilections as |predilection key|}}
|
2022-10-22 11:09:48 +02:00
|
|
|
<li class="prediction-item item flexrow" data-prediction-index="{{key}}">
|
2022-10-23 09:55:02 +02:00
|
|
|
<input type="text" class="padd-right color-class-common edit-predilection"
|
|
|
|
name="system.predilections[{{key}}]" value="{{predilection.name}}" data-dtype="String" />
|
|
|
|
</li>
|
|
|
|
<li class="prediction-item item flexrow" data-prediction-index="{{key}}">
|
|
|
|
<textarea row="4" type="text" class="padd-right color-class-common edit-predilection-description"
|
|
|
|
name="system.predilections[{{key}}]" value="{{predilection.description}}" data-dtype="String"></textarea>
|
|
|
|
</li>
|
|
|
|
<li class="prediction-item item flexrow" data-prediction-index="{{key}}">
|
|
|
|
<label class="generic-label">Maitrise ? <input class="predilection-maitrise" type="checkbox"
|
|
|
|
name="predilection.maitrise" {{checked predilection.maitrise}} /></label>
|
|
|
|
<label class="generic-label">Utilisée ? <input class="use-predilection" type="checkbox"
|
|
|
|
name="predilection.used" {{checked predilection.used}} /></label>
|
|
|
|
<a class="item-control delete-prediction" title="Supprimer une predilection"><i
|
|
|
|
class="fas fa-trash"></i></a>
|
2022-10-22 11:09:48 +02:00
|
|
|
</li>
|
2022-10-23 09:55:02 +02:00
|
|
|
<hr>
|
2022-10-22 11:09:48 +02:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2022-10-23 09:55:02 +02:00
|
|
|
<li class="flexrow item">
|
2022-10-22 11:09:48 +02:00
|
|
|
<button id="add-predilection" class="chat-card-button">Ajouter une prédilection</button>
|
2022-10-23 09:55:02 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}}
|
2022-10-22 11:09:48 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
</form>
|