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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user