Items : layout exactement identique à la fiche Anomalie
- Classes .anomaly-body/.anomaly-section/.anomaly-section-title/.anomaly-editor-wrap promues au niveau partagé (.fvtt-celestopol.item) - Templates equipment/weapon/armure/aspect utilisent ces classes exactes - Suppression des anciens mixins item-body-mixin etc. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -10,9 +10,7 @@
|
||||
<label>{{localize "CELESTOPOL.Weapon.type"}}</label>
|
||||
<select name="system.type" {{#unless isEditable}}disabled{{/unless}}>
|
||||
{{#each combatTypes as |ctype key|}}
|
||||
<option value="{{key}}" {{#if (eq key ../system.type)}}selected{{/if}}>
|
||||
{{localize ctype.label}}
|
||||
</option>
|
||||
<option value="{{key}}" {{#if (eq key ../system.type)}}selected{{/if}}>{{localize ctype.label}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
@@ -20,9 +18,7 @@
|
||||
<label>{{localize "CELESTOPOL.Weapon.degats"}}</label>
|
||||
<select name="system.degats" {{#unless isEditable}}disabled{{/unless}}>
|
||||
{{#each damageTypes as |dtype key|}}
|
||||
<option value="{{key}}" {{#if (eq key ../system.degats)}}selected{{/if}}>
|
||||
{{localize dtype.label}}
|
||||
</option>
|
||||
<option value="{{key}}" {{#if (eq key ../system.degats)}}selected{{/if}}>{{localize dtype.label}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
@@ -30,9 +26,7 @@
|
||||
<label>{{localize "CELESTOPOL.Weapon.portee"}}</label>
|
||||
<select name="system.portee" {{#unless isEditable}}disabled{{/unless}}>
|
||||
{{#each rangeTypes as |rtype key|}}
|
||||
<option value="{{key}}" {{#if (eq key ../system.portee)}}selected{{/if}}>
|
||||
{{localize rtype.label}}
|
||||
</option>
|
||||
<option value="{{key}}" {{#if (eq key ../system.portee)}}selected{{/if}}>{{localize rtype.label}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
@@ -40,16 +34,15 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="item-body">
|
||||
<div class="anomaly-body">
|
||||
<div class="weapon-damage-badge">
|
||||
<span class="damage-label">{{localize "CELESTOPOL.Weapon.degats"}}</span>
|
||||
<span class="damage-value">{{system.degats}}</span>
|
||||
<span class="damage-hint">{{localize (lookup (lookup damageTypes system.degats) "hint")}}</span>
|
||||
</div>
|
||||
|
||||
<div class="item-section">
|
||||
<div class="item-section-title">{{localize "CELESTOPOL.Actor.description"}}</div>
|
||||
<div class="item-editor-wrap">
|
||||
<div class="anomaly-section">
|
||||
<div class="anomaly-section-title">{{localize "CELESTOPOL.Actor.description"}}</div>
|
||||
<div class="anomaly-editor-wrap">
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user