Tous les champs HTMLField utilisaient le vieux helper {{editor}} (v10/v11)
incompatible avec AppV2. Remplacement par {{formInput systemFields.xxx
enriched=enrichedXxx value=... name=... toggled=true}} dans :
- templates/anomaly.hbs (technique, narratif, exemples)
- templates/aspect.hbs (description, technique, narratif)
- templates/attribute.hbs (description, technique, narratif)
- templates/equipment.hbs (description)
- templates/character-biography.hbs (description, notes)
- templates/npc-blessures.hbs (description)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
31 lines
1.3 KiB
Handlebars
31 lines
1.3 KiB
Handlebars
<div class="tab blessures {{tab.cssClass}}" data-group="sheet" data-tab="blessures">
|
|
<section class="track-section">
|
|
<div class="track-header">
|
|
<span class="track-title">{{localize "CELESTOPOL.Track.blessures"}}</span>
|
|
</div>
|
|
<div class="track-boxes">
|
|
{{#each (array "b1" "b2" "b3" "b4" "b5" "b6" "b7" "b8") as |key|}}
|
|
<div class="track-box {{#if (lookup ../system.blessures key 'checked')}}checked{{/if}}">
|
|
<input type="checkbox" name="system.blessures.{{key}}.checked"
|
|
{{#if (lookup ../system.blessures key 'checked')}}checked{{/if}}
|
|
{{#unless ../isEditable}}disabled{{/unless}}>
|
|
<label class="box-label">{{lookup ../system.blessures key 'malus'}}</label>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
<div class="track-level">
|
|
<label>{{localize "CELESTOPOL.Track.level"}}</label>
|
|
{{#if isEditMode}}
|
|
<input type="number" name="system.blessures.lvl" value="{{system.blessures.lvl}}" min="0" max="8">
|
|
{{else}}
|
|
<span>{{system.blessures.lvl}}</span>
|
|
{{/if}}
|
|
</div>
|
|
</section>
|
|
|
|
{{!-- Description --}}
|
|
<div class="description-section">
|
|
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
|
</div>
|
|
</div>
|