- DataModels (character, npc, anomaly, aspect, attribute, equipment) - ApplicationV2 sheets (character 5 tabs, npc 3 tabs, 4 item sheets) - DialogV2 pour les jets de dés avec phase de lune - Templates Handlebars complets (fiches PJ/PNJ, items, jet, chat) - Styles LESS → CSS compilé (thème vert foncé / orange CopaseticNF) - i18n fr.json complet (clés CELESTOPOL.*) - Point d'entrée fvtt-celestopol.mjs avec hooks init/ready - Assets : polices CopaseticNF, images UI, icônes items - Mise à jour copilot-instructions.md avec l'architecture réelle Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
47 lines
1.8 KiB
Handlebars
47 lines
1.8 KiB
Handlebars
<div class="npc-main sheet-part">
|
|
<header class="sheet-header">
|
|
<div class="portrait" data-action="editImage" data-edit="img">
|
|
<img src="{{actor.img}}" alt="{{actor.name}}" class="actor-portrait">
|
|
</div>
|
|
<div class="header-fields">
|
|
<div class="charname">
|
|
{{#if isEditMode}}
|
|
<input type="text" name="name" value="{{actor.name}}">
|
|
{{else}}
|
|
<h1 class="actor-name">{{actor.name}}</h1>
|
|
{{/if}}
|
|
</div>
|
|
<div class="concept-row">
|
|
{{#if isEditMode}}
|
|
<input type="text" name="system.concept" value="{{system.concept}}"
|
|
placeholder="{{localize 'CELESTOPOL.Actor.concept'}}">
|
|
{{else}}
|
|
<span class="concept-display">{{system.concept}}</span>
|
|
{{/if}}
|
|
</div>
|
|
<div class="header-stats-row">
|
|
<div class="header-stat">
|
|
<label>{{localize "CELESTOPOL.Actor.initiative"}}</label>
|
|
<span>{{system.initiative}}</span>
|
|
</div>
|
|
<div class="header-stat">
|
|
<label>{{localize "CELESTOPOL.Actor.anomaly"}}</label>
|
|
{{#if isEditMode}}
|
|
<select name="system.anomaly.type">
|
|
{{selectOptions systemFields.anomaly.fields.type.choices selected=system.anomaly.type localize=true}}
|
|
</select>
|
|
<input type="number" name="system.anomaly.value" value="{{system.anomaly.value}}" min="0" max="8" class="small-input">
|
|
{{else}}
|
|
<span>{{localize system.anomaly.type}} {{#if system.anomaly.value}}({{system.anomaly.value}}){{/if}}</span>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="header-buttons">
|
|
<a data-action="toggleSheet">
|
|
<i class="fas {{#if isEditMode}}fa-eye{{else}}fa-edit{{/if}}"></i>
|
|
</a>
|
|
</div>
|
|
</header>
|
|
</div>
|