Cleanup et preparation Foundry v12

This commit is contained in:
2024-05-01 09:33:34 +02:00
parent 8f0bf91464
commit 85e0249822
173 changed files with 659 additions and 341 deletions

View File

@@ -47,11 +47,7 @@
<a class="attribut-roll" data-attr-sub-key="{{index}}">{{value.label}}</a></span>
{{/if}}
<select class="carac-base flexrow" type="text" name="system.attributs.{{key}}.values.{{index}}.value" value="{{value.value}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select value.value}}
{{#each @root.optionsAttr as |option index|}}
<option value="{{index}}">{{index}}</option>
{{/each}}
{{/select}}
{{selectOptions @root.optionsAttr selected=value.value}}
</select>
{{/each}}
@@ -67,11 +63,7 @@
<li class="item flexrow list-item" data-attr-key="etat">
<span class="stat-label flexrow tooltip tooltip-nobottom" name="etat">Etat : </span>
<select class="carac-base flexrow" type="text" name="system.etat.etat" value="{{data.etat.etat}}" data-dtype="String" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select data.etat.etat}}
<option value="fringant">Fringant</option>
<option value="blesse">Blessé</option>
<option value="mort">Mort</option>
{{/select}}
{{selectOptions @root.config.optionsEtat selected=data.etat.etat valueAttr="key" labelAttr="label"}}
</select>
</li>
</ul>
@@ -151,12 +143,12 @@
<article class="flexcol">
<h3>Biographie : </h3>
<div class="form-group editor">
{{editor description target="data.description" button=true owner=owner editable=editable}}
{{editor description target="system.description" button=true owner=owner editable=editable}}
</div>
<hr>
<h3>Notes : </h3>
<div class="form-group editor">
{{editor notes target="data.notes" button=true owner=owner editable=editable}}
{{editor notes target="system.notes" button=true owner=owner editable=editable}}
</div>
</article>
</div>