Portraits et corrections sur valeurs des PNJ
Some checks failed
Release Creation / build (release) Failing after 1m24s
Some checks failed
Release Creation / build (release) Failing after 1m24s
This commit is contained in:
@@ -1,48 +1,72 @@
|
||||
<div class="tab biographie {{tab.cssClass}}" data-group="sheet" data-tab="biographie">
|
||||
<div class="biography-layout">
|
||||
<div class="biography-main">
|
||||
{{!-- Faction --}}
|
||||
<div class="bio-section faction-section">
|
||||
<div class="section-header">
|
||||
<i class="fas fa-flag"></i>
|
||||
<span>{{localize "CELESTOPOL.NPC.faction"}}</span>
|
||||
</div>
|
||||
{{#if isEditMode}}
|
||||
<div class="form-row-line faction-select-row">
|
||||
<label for="system.faction">{{localize "CELESTOPOL.NPC.factionLabel"}}</label>
|
||||
<select name="system.faction" id="faction-select">
|
||||
<option value="" {{#unless system.faction}}selected{{/unless}}>— {{localize "CELESTOPOL.NPC.factionNone"}} —</option>
|
||||
{{#each factions as |faction key|}}
|
||||
<option value="{{key}}" {{#if (eq key ../system.faction)}}selected{{/if}}>{{localize faction.label}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="faction-display">
|
||||
{{#if system.faction}}
|
||||
<span class="faction-name">{{localize (lookup (lookup factions system.faction) 'label')}}</span>
|
||||
{{else}}
|
||||
<span class="faction-none">{{localize "CELESTOPOL.NPC.factionNone"}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{!-- Faction --}}
|
||||
<div class="bio-section faction-section">
|
||||
<div class="section-header">
|
||||
<i class="fas fa-flag"></i>
|
||||
<span>{{localize "CELESTOPOL.NPC.faction"}}</span>
|
||||
{{!-- Histoire --}}
|
||||
<div class="bio-section">
|
||||
<div class="section-header">
|
||||
<i class="fas fa-scroll"></i>
|
||||
<span>{{localize "CELESTOPOL.NPC.histoire"}}</span>
|
||||
</div>
|
||||
{{formInput systemFields.histoire enriched=enrichedHistoire value=system.histoire name="system.histoire" toggled=true}}
|
||||
</div>
|
||||
|
||||
{{!-- Description Physique --}}
|
||||
<div class="bio-section">
|
||||
<div class="section-header">
|
||||
<i class="fas fa-user"></i>
|
||||
<span>{{localize "CELESTOPOL.NPC.descriptionPhysique"}}</span>
|
||||
</div>
|
||||
{{formInput systemFields.descriptionPhysique enriched=enrichedDescriptionPhysique value=system.descriptionPhysique name="system.descriptionPhysique" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
{{#if isEditMode}}
|
||||
<div class="form-row-line faction-select-row">
|
||||
<label for="system.faction">{{localize "CELESTOPOL.NPC.factionLabel"}}</label>
|
||||
<select name="system.faction" id="faction-select">
|
||||
<option value="" {{#unless system.faction}}selected{{/unless}}>— {{localize "CELESTOPOL.NPC.factionNone"}} —</option>
|
||||
{{#each factions as |faction key|}}
|
||||
<option value="{{key}}" {{#if (eq key ../system.faction)}}selected{{/if}}>{{localize faction.label}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="faction-display">
|
||||
{{#if system.faction}}
|
||||
<span class="faction-name">{{localize (lookup (lookup factions system.faction) 'label')}}</span>
|
||||
{{else}}
|
||||
<span class="faction-none">{{localize "CELESTOPOL.NPC.factionNone"}}</span>
|
||||
|
||||
<aside class="biography-portrait-panel">
|
||||
<div class="section-header">{{localize "CELESTOPOL.Actor.portraitImage"}}</div>
|
||||
<div class="biography-portrait-preview">
|
||||
{{#if hasBiographyPortrait}}
|
||||
<img src="{{biographyPortrait}}" alt="{{actor.name}}" class="biography-portrait-image">
|
||||
{{else}}
|
||||
<div class="biography-portrait-empty">{{localize "CELESTOPOL.Actor.portraitImageEmpty"}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="biography-portrait-actions">
|
||||
<button type="button" class="biography-portrait-send" data-action="sendBiographyPortrait" {{#unless hasBiographyPortrait}}disabled{{/unless}}>
|
||||
<i class="fa-solid fa-image"></i> {{localize "CELESTOPOL.Actor.sendPortraitToChat"}}
|
||||
</button>
|
||||
</div>
|
||||
{{#if isEditMode}}
|
||||
<div class="biography-portrait-field">
|
||||
<file-picker type="image" name="system.portraitImage" value="{{system.portraitImage}}"></file-picker>
|
||||
</div>
|
||||
<p class="biography-portrait-hint">{{localize "CELESTOPOL.Actor.portraitImageHint"}}</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
{{!-- Histoire --}}
|
||||
<div class="bio-section">
|
||||
<div class="section-header">
|
||||
<i class="fas fa-scroll"></i>
|
||||
<span>{{localize "CELESTOPOL.NPC.histoire"}}</span>
|
||||
</div>
|
||||
{{formInput systemFields.histoire enriched=enrichedHistoire value=system.histoire name="system.histoire" toggled=true}}
|
||||
</div>
|
||||
|
||||
{{!-- Description Physique --}}
|
||||
<div class="bio-section">
|
||||
<div class="section-header">
|
||||
<i class="fas fa-user"></i>
|
||||
<span>{{localize "CELESTOPOL.NPC.descriptionPhysique"}}</span>
|
||||
</div>
|
||||
{{formInput systemFields.descriptionPhysique enriched=enrichedDescriptionPhysique value=system.descriptionPhysique name="system.descriptionPhysique" toggled=true}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user