Personnage : ajout métier, origine, âge et faction dans le header

DataModel : metier (StringField), faction (StringField) ajoutés au top-level
Template : identity-row sous le concept avec les 4 champs
CSS : .identity-row avec label orange + valeur crème italique

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-29 17:35:11 +02:00
parent 8f6f3823c6
commit 0e0d8920b7
4 changed files with 76 additions and 3 deletions

View File

@@ -18,6 +18,40 @@
<span class="concept-display">{{system.concept}}</span>
{{/if}}
</div>
<div class="identity-row">
<div class="identity-field">
<label>{{localize "CELESTOPOL.Actor.metier"}}</label>
{{#if isEditMode}}
<input type="text" name="system.metier" value="{{system.metier}}" placeholder="{{localize 'CELESTOPOL.Actor.metier'}}">
{{else}}
<span>{{system.metier}}</span>
{{/if}}
</div>
<div class="identity-field">
<label>{{localize "CELESTOPOL.Actor.origine"}}</label>
{{#if isEditMode}}
<input type="text" name="system.biodata.origine" value="{{system.biodata.origine}}" placeholder="{{localize 'CELESTOPOL.Actor.origine'}}">
{{else}}
<span>{{system.biodata.origine}}</span>
{{/if}}
</div>
<div class="identity-field">
<label>{{localize "CELESTOPOL.Actor.age"}}</label>
{{#if isEditMode}}
<input type="text" name="system.biodata.age" value="{{system.biodata.age}}" placeholder="{{localize 'CELESTOPOL.Actor.age'}}">
{{else}}
<span>{{system.biodata.age}}</span>
{{/if}}
</div>
<div class="identity-field">
<label>{{localize "CELESTOPOL.Actor.faction"}}</label>
{{#if isEditMode}}
<input type="text" name="system.faction" value="{{system.faction}}" placeholder="{{localize 'CELESTOPOL.Actor.faction'}}">
{{else}}
<span>{{system.faction}}</span>
{{/if}}
</div>
</div>
<div class="header-stats-row">
<div class="header-stat initiative">
<label>{{localize "CELESTOPOL.Actor.initiative"}}</label>