Ajout pour la magie

This commit is contained in:
2025-09-13 00:24:08 +02:00
parent 44a641a0ca
commit d04731f475
67 changed files with 260 additions and 217 deletions

View File

@@ -11,7 +11,7 @@
<div class="tab details" data-group="primary" data-tab="details">
<ul class="item-list alternate-list">
<li class="flexrow item">
<label class="generic-label item-field-label-long2">Catégorie </label>
<select class="status-small-label color-class-common item-field-label-long" type="text"
@@ -22,8 +22,8 @@
<li class="flexrow item">
<label class="generic-label item-field-label-long2">Profil </label>
<select class="status-small-label color-class-common item-field-label-long" type="text"
name="system.profil" value="{{system.profil}}" data-dtype="string">
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.profil"
value="{{system.profil}}" data-dtype="string">
{{selectOptions config.competenceProfil selected=system.profil labelAttr="name"}}
</select>
</li>
@@ -31,7 +31,7 @@
<li class="flexrow item">
<label class="generic-label item-field-label-long2">Compétence de Prédilection ? </label>
<input type="checkbox" class="padd-right status-small-label color-class-common item-field-label-short"
name="system.predilection" {{checked system.predilection}}/>
name="system.predilection" {{checked system.predilection}} />
</li>
<li class="flexrow item">
@@ -40,6 +40,16 @@
name="system.niveau" value="{{system.niveau}}" data-dtype="Number" />
</li>
{{#if (eq system.profil "magie")}}
{{#each system.nomniveau as |niveau key|}}
<li class="flexrow item">
<label class="generic-label item-field-label-long2">Nom du Niveau {{key}}</label>
<input type="text" class="padd-right status-small-label color-class-common item-field-label-long"
name="system.nomniveau.{{key}}" value="{{niveau}}" data-dtype="String" />
</li>
{{/each}}
{{/if}}
<li class="flexrow item">
<h3>Spécialités</h3>
</li>