- Onglets item (Anomalie/Aspect/Attribut): correction tabGroups + data-group sur chaque <a> et <section> - Onglets acteur (PJ/PNJ): tab.cssClass dans les templates pour l'état actif initial - Message de tchat: alignement des noms de variables _getChatCardData <-> chat-message.hbs - actorName, actorImg, success/failure, diceResults, statLabel/skillLabel localisés - difficultyLabel et moonPhaseLabel localisés depuis SYSTEM - Dialogue de jet (roll-dialog.hbs): correction noms variables + min/max modificateur - lang/fr.json: ajout Roll.title, Roll.roll, clés Moon (minuscules), Difficulty (unknown/ardu) - character.mjs: passage statLabel à CelestopolRoll.prompt() - global.less: padding + overflow-y sur .tab pour contenu visible - item-scores.hbs: passage system=system au partial + suppression garde isEditable - Templates anomaly/aspect/attribute: passage system=system au partial item-scores - chat-message.mjs: getHTML() → renderHTML() (dépréciation FVTT v13) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
37 lines
1.6 KiB
Handlebars
37 lines
1.6 KiB
Handlebars
<div class="tab competences {{tab.cssClass}}" data-group="sheet" data-tab="competences">
|
|
<div class="stats-grid">
|
|
{{#each stats as |stat statId|}}
|
|
<div class="stat-block">
|
|
<div class="stat-header">
|
|
<span class="stat-name">{{localize stat.label}}</span>
|
|
<div class="stat-res">
|
|
<label>{{localize "CELESTOPOL.Stat.res"}}</label>
|
|
{{#if ../isEditMode}}
|
|
<input type="number" name="system.stats.{{statId}}.res"
|
|
value="{{lookup ../system.stats statId 'res'}}" min="0" max="8">
|
|
{{else}}
|
|
<span class="stat-res-value">{{lookup ../system.stats statId 'res'}}</span>
|
|
<span class="stat-actuel">({{lookup ../system.stats statId 'actuel'}})</span>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
<div class="skills-list">
|
|
{{#each (lookup ../skills statId) as |skill skillId|}}
|
|
<div class="skill-row {{#unless ../isEditMode}}rollable{{/unless}}"
|
|
data-stat-id="{{statId}}" data-skill-id="{{skillId}}">
|
|
<span class="skill-name">{{localize skill.label}}</span>
|
|
{{#if ../isEditMode}}
|
|
<input type="number" name="system.stats.{{statId}}.{{skillId}}.value"
|
|
value="{{lookup (lookup ../system.stats statId) skillId 'value'}}"
|
|
min="0" max="8" class="skill-value-input">
|
|
{{else}}
|
|
<span class="skill-value">{{lookup (lookup ../system.stats statId) skillId 'value'}}</span>
|
|
{{/if}}
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|