- templates : anomaly.hbs, aspect.hbs, attribute.hbs, equipment.hbs Suppression du form-group 'reference' dans l'onglet description - module/models/items.mjs : suppression du StringField 'reference' dans CelestopolAnomaly, CelestopolAspect, CelestopolAttribute, CelestopolEquipment - lang/fr.json : suppression de la clé CELESTOPOL.Item.reference Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
78 lines
3.1 KiB
Handlebars
78 lines
3.1 KiB
Handlebars
<div class="item-sheet anomaly">
|
|
<header class="item-header">
|
|
<div class="item-portrait" data-action="editImage">
|
|
<img src="{{item.img}}" alt="{{item.name}}">
|
|
</div>
|
|
<div class="item-header-fields">
|
|
<input type="text" name="name" value="{{item.name}}" {{#unless isEditable}}disabled{{/unless}}>
|
|
<div class="item-meta">
|
|
<select name="system.subtype" {{#unless isEditable}}disabled{{/unless}}>
|
|
{{#each anomalyTypes as |atype key|}}
|
|
<option value="{{key}}" {{#if (eq key ../system.subtype)}}selected{{/if}}>{{localize atype.label}}</option>
|
|
{{/each}}
|
|
</select>
|
|
<div class="anomaly-level-field">
|
|
<label>{{localize "CELESTOPOL.Anomaly.level"}}</label>
|
|
{{#if isEditable}}
|
|
<input type="number" name="system.level" value="{{system.level}}" min="1" max="4" class="level-input">
|
|
{{else}}
|
|
<span class="anomaly-level-value">{{system.level}}</span>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{!-- Usages restants : dots visuels --}}
|
|
<div class="anomaly-uses-row">
|
|
<span class="anomaly-uses-label">{{localize "CELESTOPOL.Anomaly.usesRemaining"}} :</span>
|
|
<div class="anomaly-uses-dots">
|
|
{{#each (array 1 2 3 4) as |n|}}
|
|
{{#if (lte n ../system.usesRemaining)}}
|
|
<span class="anomaly-dot available"></span>
|
|
{{else}}
|
|
{{#if (lte n ../system.level)}}
|
|
<span class="anomaly-dot spent"></span>
|
|
{{else}}
|
|
<span class="anomaly-dot inactive"></span>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/each}}
|
|
</div>
|
|
{{#if isEditable}}
|
|
<input type="number" name="system.usesRemaining" value="{{system.usesRemaining}}" min="0" max="4" class="uses-number-input">
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
{{!-- Domaines applicables --}}
|
|
{{#if applicableSkillLabels.length}}
|
|
<div class="anomaly-skills-bar">
|
|
<span class="anomaly-skills-label">{{localize "CELESTOPOL.Anomaly.applicableSkills"}} :</span>
|
|
{{#each applicableSkillLabels as |label|}}
|
|
<span class="anomaly-skill-chip">{{label}}</span>
|
|
{{/each}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
<nav class="item-tabs sheet-tabs tabs" data-group="item-tabs">
|
|
<a class="item active" data-group="item-tabs" data-tab="description">{{localize "CELESTOPOL.Tab.description"}}</a>
|
|
<a class="item" data-group="item-tabs" data-tab="technique">{{localize "CELESTOPOL.Tab.technique"}}</a>
|
|
</nav>
|
|
|
|
<section class="tab active" data-group="item-tabs" data-tab="description">
|
|
<div class="form-group">
|
|
{{editor system.description target="system.description" button=true editable=isEditable}}
|
|
</div>
|
|
</section>
|
|
|
|
<section class="tab" data-group="item-tabs" data-tab="technique">
|
|
<div class="form-group">
|
|
<label>{{localize "CELESTOPOL.Item.technique"}}</label>
|
|
{{editor system.technique target="system.technique" button=true editable=isEditable}}
|
|
</div>
|
|
<div class="form-group">
|
|
<label>{{localize "CELESTOPOL.Item.narratif"}}</label>
|
|
{{editor system.narratif target="system.narratif" button=true editable=isEditable}}
|
|
</div>
|
|
</section>
|
|
</div>
|