First row of tests and fixes

This commit is contained in:
2026-03-05 23:43:45 +01:00
parent f28df2ae76
commit 95b19c8f02
9 changed files with 430 additions and 86 deletions
+14
View File
@@ -0,0 +1,14 @@
<section class="tab creature-description {{tab.cssClass}}" data-group="sheet" data-tab="description">
<fieldset>
<legend>{{localize "AWEMMY.Character.Description"}}</legend>
{{formInput
systemFields.description
enriched=enrichedDescription
value=system.description
name="system.description"
toggled=true
}}
</fieldset>
</section>
+33
View File
@@ -0,0 +1,33 @@
<section class="tab creature-eureka {{tab.cssClass}}" data-group="sheet" data-tab="eureka">
<div class="eureka-rubric">
<div class="eureka-field">
<label>{{localize "AWEMMY.Creature.Claims"}}</label>
<textarea name="system.eurekaClaims" rows="4" placeholder="{{localize 'AWEMMY.Creature.Claims'}}…">{{system.eurekaClaims}}</textarea>
</div>
<div class="eureka-field">
<label>{{localize "AWEMMY.Creature.Evidence"}}</label>
<textarea name="system.eurekaEvidence" rows="4" placeholder="{{localize 'AWEMMY.Creature.Evidence'}}…">{{system.eurekaEvidence}}</textarea>
</div>
<div class="eureka-columns">
<div class="eureka-field">
<label>{{localize "AWEMMY.Creature.Threshold1"}}</label>
<textarea name="system.eurekaThreshold1" rows="3" placeholder="{{localize 'AWEMMY.Creature.Threshold1'}}…">{{system.eurekaThreshold1}}</textarea>
</div>
<div class="eureka-field">
<label>{{localize "AWEMMY.Creature.Threshold2"}}</label>
<textarea name="system.eurekaThreshold2" rows="3" placeholder="{{localize 'AWEMMY.Creature.Threshold2'}}…">{{system.eurekaThreshold2}}</textarea>
</div>
</div>
<div class="eureka-field">
<label>{{localize "AWEMMY.Creature.Hints"}}</label>
<textarea name="system.eurekaHints" rows="4" placeholder="{{localize 'AWEMMY.Creature.Hints'}}…">{{system.eurekaHints}}</textarea>
</div>
</div>
</section>
+27
View File
@@ -0,0 +1,27 @@
<div class="actor-header">
<img class="actor-img" src="{{actor.img}}" data-edit="img" data-action="editImage" data-tooltip="{{actor.name}}" />
<div class="actor-identity">
{{formInput fields.name value=source.name classes="actor-name"}}
<div class="actor-details">
<div class="detail-item">
<label>{{localize "AWEMMY.Character.Level"}}</label>
{{formInput systemFields.level value=system.level}}
</div>
<div class="detail-item">
<label>{{localize "AWEMMY.Character.Stride"}}</label>
{{formInput systemFields.stride value=system.stride}}
</div>
<div class="detail-item">
<label>{{localize "AWEMMY.Character.HP"}}</label>
{{formInput systemFields.hp.fields.value value=system.hp.value}}
<span>/</span>
{{formInput systemFields.hp.fields.max value=system.hp.max}}
</div>
</div>
</div>
<div class="sheet-controls">
<button type="button" data-action="toggleSheet" data-tooltip="{{#if isPlayMode}}{{localize 'AWEMMY.Sheet.EditMode'}}{{else}}{{localize 'AWEMMY.Sheet.PlayMode'}}{{/if}}">
{{#if isPlayMode}}<i class="fa-solid fa-lock"></i>{{else}}<i class="fa-solid fa-unlock"></i>{{/if}}
</button>
</div>
</div>
+7 -74
View File
@@ -1,62 +1,34 @@
<section class="creature-main">
<div class="actor-header">
<img class="actor-img" src="{{actor.img}}" data-edit="img" data-action="editImage" data-tooltip="{{actor.name}}" />
<div class="actor-identity">
{{formInput fields.name value=source.name classes="actor-name"}}
<div class="actor-details">
<div class="detail-item">
<label>{{localize "AWEMMY.Character.Level"}}</label>
{{formInput systemFields.level value=system.level}}
</div>
<div class="detail-item">
<label>{{localize "AWEMMY.Character.Stride"}}</label>
{{formInput systemFields.stride value=system.stride}}
</div>
<div class="detail-item">
<label>{{localize "AWEMMY.Character.HP"}}</label>
{{formInput systemFields.hp.fields.value value=system.hp.value}}
<span>/</span>
{{formInput systemFields.hp.fields.max value=system.hp.max}}
</div>
</div>
</div>
<div class="sheet-controls">
<button type="button" data-action="toggleSheet">
{{#if isPlayMode}}<i class="fa-solid fa-lock"></i>{{else}}<i class="fa-solid fa-unlock"></i>{{/if}}
</button>
</div>
</div>
<section class="tab creature-main {{tab.cssClass}}" data-group="sheet" data-tab="main">
{{!-- Attributes --}}
<fieldset>
<legend>Attributes</legend>
<legend>{{localize "AWEMMY.Character.Attributes"}}</legend>
<table class="attributes-table">
<thead>
<tr>
<th>Attribute</th>
<th>{{localize "AWEMMY.Character.Attribute"}}</th>
<th>{{localize "AWEMMY.Character.Mod"}}</th>
<th>{{localize "AWEMMY.Character.DC"}}</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attr-label">{{localize "AWEMMY.Attribute.Agility"}}</td>
<td class="attr-label rollable" data-attribute-id="agility">{{localize "AWEMMY.Attribute.Agility"}} <i class="fa-solid fa-dice-d20"></i></td>
<td>{{formInput systemFields.attributes.fields.agility.fields.mod value=system.attributes.agility.mod}}</td>
<td>{{formInput systemFields.attributes.fields.agility.fields.dc value=system.attributes.agility.dc}}</td>
</tr>
<tr>
<td class="attr-label">{{localize "AWEMMY.Attribute.Fitness"}}</td>
<td class="attr-label rollable" data-attribute-id="fitness">{{localize "AWEMMY.Attribute.Fitness"}} <i class="fa-solid fa-dice-d20"></i></td>
<td>{{formInput systemFields.attributes.fields.fitness.fields.mod value=system.attributes.fitness.mod}}</td>
<td>{{formInput systemFields.attributes.fields.fitness.fields.dc value=system.attributes.fitness.dc}}</td>
</tr>
<tr>
<td class="attr-label">{{localize "AWEMMY.Attribute.Awareness"}}</td>
<td class="attr-label rollable" data-attribute-id="awareness">{{localize "AWEMMY.Attribute.Awareness"}} <i class="fa-solid fa-dice-d20"></i></td>
<td>{{formInput systemFields.attributes.fields.awareness.fields.mod value=system.attributes.awareness.mod}}</td>
<td>{{formInput systemFields.attributes.fields.awareness.fields.dc value=system.attributes.awareness.dc}}</td>
</tr>
<tr>
<td class="attr-label">{{localize "AWEMMY.Attribute.Influence"}}</td>
<td class="attr-label rollable" data-attribute-id="influence">{{localize "AWEMMY.Attribute.Influence"}} <i class="fa-solid fa-dice-d20"></i></td>
<td>{{formInput systemFields.attributes.fields.influence.fields.mod value=system.attributes.influence.mod}}</td>
<td>{{formInput systemFields.attributes.fields.influence.fields.dc value=system.attributes.influence.dc}}</td>
</tr>
@@ -64,43 +36,4 @@
</table>
</fieldset>
{{!-- Description --}}
<fieldset>
<legend>Description</legend>
{{formInput
systemFields.description
enriched=enrichedDescription
value=system.description
name="system.description"
toggled=true
}}
</fieldset>
{{!-- Eureka Rubric --}}
<fieldset>
<legend>{{localize "AWEMMY.Creature.EurekaRubric"}}</legend>
<div class="eureka-rubric">
<div class="eureka-row">
<label>{{localize "AWEMMY.Creature.Claims"}}</label>
{{formInput systemFields.eurekaClaims value=system.eurekaClaims}}
</div>
<div class="eureka-row">
<label>{{localize "AWEMMY.Creature.Evidence"}}</label>
{{formInput systemFields.eurekaEvidence value=system.eurekaEvidence}}
</div>
<div class="eureka-row">
<label>{{localize "AWEMMY.Creature.Threshold1"}}</label>
{{formInput systemFields.eurekaThreshold1 value=system.eurekaThreshold1}}
</div>
<div class="eureka-row">
<label>{{localize "AWEMMY.Creature.Threshold2"}}</label>
{{formInput systemFields.eurekaThreshold2 value=system.eurekaThreshold2}}
</div>
<div class="eureka-row">
<label>{{localize "AWEMMY.Creature.Hints"}}</label>
{{formInput systemFields.eurekaHints value=system.eurekaHints}}
</div>
</div>
</fieldset>
</section>