Fix apv2, WIP

This commit is contained in:
2026-06-06 22:37:29 +02:00
parent c571e6a209
commit c23de0ea66
37 changed files with 199 additions and 118 deletions
+8 -6
View File
@@ -35,14 +35,16 @@
</section>
<section class="flexcol ">
<div>
<h4>{{ localize 'IDENTITY.notes'}}</h4>
{{editor system.identity.biography target="system.identity.biography"
button=true owner=owner editable=editable}}
<fieldset>
<legend><h4>{{ localize 'IDENTITY.notes'}}</h4></legend>
{{formInput systemFields.identity.fields.biography enriched=enrichedBiography value=system.identity.biography name="system.identity.biography" toggled=true}}
</fieldset>
</div>
<div>
<h4>{{ localize 'IDENTITY.relations'}}</h4>
{{editor system.identity.relations target="system.identity.relations"
button=true owner=owner editable=editable}}
<fieldset>
<legend><h4>{{ localize 'IDENTITY.relations'}}</h4></legend>
{{formInput systemFields.identity.fields.relations enriched=enrichedRelations value=system.identity.relations name="system.identity.relations" toggled=true}}
</fieldset>
</div>
</section>
</div>
+4 -2
View File
@@ -39,8 +39,10 @@
</div>
<div class="grid-span-2">
<h4>{{ localize 'IDENTITY.notes' }}</h4>
{{editor system.identity.notes target="system.identity.notes" button=true owner=owner editable=editable}}
<fieldset>
<legend><h4>{{ localize 'IDENTITY.notes' }}</h4></legend>
{{formInput systemFields.identity.fields.notes enriched=enrichedNotes value=system.identity.notes name="system.identity.notes" toggled=true}}
</fieldset>
</div>
{{!-- Modes --}}
+10 -10
View File
@@ -25,9 +25,9 @@
<div class="resource-content">
{{#if isEditMode}}
<select name="system.pattern.value" id="system.pattern.value" data-dtype="Number">
{{#each ../config.creaturePatternLevels}}
<option value="{{@key}}" {{#ife @key ../system.pattern.value}}selected{{/ife}}>
{{localize this.label}} ({{@key}})
{{#each patternOptions}}
<option value="{{@key}}" {{#ife @key @root.system.pattern.value}}selected{{/ife}}>
{{localize label}} ({{@key}})
</option>
{{/each}}
</select>
@@ -41,9 +41,9 @@
<div class="resource-content">
{{#if isEditMode}}
<select name="system.role.value" id="system.role.value" data-dtype="Number">
{{#each ../config.creatureRoleLevels}}
<option value="{{@key}}" {{#ife @key ../system.role.value}}selected{{/ife}}>
{{localize this.label}} ({{@key}})
{{#each roleOptions}}
<option value="{{@key}}" {{#ife @key @root.system.role.value}}selected{{/ife}}>
{{localize label}} ({{@key}})
</option>
{{/each}}
</select>
@@ -59,8 +59,8 @@
<div class="resource-content">
{{#if isEditMode}}
<select name="system.size.value" id="system.size.value" data-dtype="Number">
{{#each ../config.creatureSizeLevels}}
<option value="{{@key}}" {{#ife @key ../system.size.value}}selected{{/ife}}>
{{#each sizeOptions}}
<option value="{{@key}}" {{#ife @key @root.system.size.value}}selected{{/ife}}>
{{@key}}
</option>
{{/each}}
@@ -76,9 +76,9 @@
{{#if isEditMode}}
<select name="system.pack.value" id="system.pack.value" data-dtype="Number">
<option value="0">{{localize 'VERMINE.none'}}</option>
{{#each ../config.creaturePackLevels}}
{{#each packOptions}}
{{#if @key}}
<option value="{{@key}}" {{#ife @key ../system.pack.value}}selected{{/ife}}>
<option value="{{@key}}" {{#ife @key @root.system.pack.value}}selected{{/ife}}>
{{@key}}
</option>
{{/if}}
+4 -2
View File
@@ -28,8 +28,10 @@
{{!-- Group Notes --}}
<div class="grid-span-2">
<h4>{{ localize 'IDENTITY.notes' }}</h4>
{{editor system.identity.notes target="system.identity.notes" button=true owner=owner editable=editable}}
<fieldset>
<legend><h4>{{ localize 'IDENTITY.notes' }}</h4></legend>
{{formInput systemFields.identity.fields.notes enriched=enrichedNotes value=system.identity.notes name="system.identity.notes" toggled=true}}
</fieldset>
</div>
{{!-- Group Abilities (from items) --}}
+13 -13
View File
@@ -27,9 +27,9 @@
<div class="resource-content">
{{#if isEditMode}}
<select name="system.threat.value" id="system.threat.value" data-dtype="Number">
{{#each ../config.npcThreatLevels}}
<option value="{{@key}}" {{#ife @key ../system.threat.value}}selected{{/ife}}>
{{localize this.label}} ({{@key}})
{{#each npcThreatOptions}}
<option value="{{@key}}" {{#ife @key @root.system.threat.value}}selected{{/ife}}>
{{localize label}} ({{@key}})
</option>
{{/each}}
</select>
@@ -44,9 +44,9 @@
<div class="resource-content">
{{#if isEditMode}}
<select name="system.experience.value" id="system.experience.value" data-dtype="Number">
{{#each ../config.npcExperienceLevels}}
<option value="{{@key}}" {{#ife @key ../system.experience.value}}selected{{/ife}}>
{{localize this.label}} ({{@key}})
{{#each npcExperienceOptions}}
<option value="{{@key}}" {{#ife @key @root.system.experience.value}}selected{{/ife}}>
{{localize label}} ({{@key}})
</option>
{{/each}}
</select>
@@ -61,9 +61,9 @@
<div class="resource-content">
{{#if isEditMode}}
<select name="system.role.value" id="system.role.value" data-dtype="Number">
{{#each ../config.npcRoleLevels}}
<option value="{{@key}}" {{#ife @key ../system.role.value}}selected{{/ife}}>
{{localize this.label}} ({{@key}})
{{#each npcRoleOptions}}
<option value="{{@key}}" {{#ife @key @root.system.role.value}}selected{{/ife}}>
{{localize label}} ({{@key}})
</option>
{{/each}}
</select>
@@ -82,8 +82,8 @@
{{#if isEditMode}}
<select name="system.identity.totem" id="system.identity.totem" data-dtype="String">
<option value="">{{ localize 'NONE' }}</option>
{{#each ../config.totems}}
<option value="{{@key}}" {{#ife @key ../system.identity.totem}}selected{{/ife}}>
{{#each totemOptions}}
<option value="{{@key}}" {{#ife @key @root.system.identity.totem}}selected{{/ife}}>
{{localize this}}
</option>
{{/each}}
@@ -99,8 +99,8 @@
{{#if isEditMode}}
<select name="system.identity.origin" id="system.identity.origin" data-dtype="String">
<option value="">{{ localize 'NONE' }}</option>
{{#each ../config.origins}}
<option value="{{@key}}" {{#ife @key ../system.identity.origin}}selected{{/ife}}>
{{#each originOptions}}
<option value="{{@key}}" {{#ife @key @root.system.identity.origin}}selected{{/ife}}>
{{this}}
</option>
{{/each}}
+4 -1
View File
@@ -18,5 +18,8 @@
{{/if}}
</div>
</div>
{{editor system.identity.notes target="system.identity.notes" button=true owner=owner editable=editable}}
<fieldset>
<legend>{{ localize 'IDENTITY.notes' }}</legend>
{{formInput systemFields.identity.fields.notes enriched=enrichedNotes value=system.identity.notes name="system.identity.notes" toggled=true}}
</fieldset>
</div>