design item sheet

This commit is contained in:
rwanoux
2024-05-14 12:24:20 +02:00
parent fea96bb1b0
commit f43477a286
3 changed files with 89 additions and 105 deletions
+34 -41
View File
@@ -21,11 +21,9 @@
</header>
<section class="sheet-body">
<div class="flexrow">
<aside style="flex:1">
<div class="resource">
<h4 class="resource flexrow">
<label class="resource-label">{{ localize "VERMINE.level"}}</label>
<input
<span class="hexa"><input
type="number"
name="system.level.value"
value="{{system.level.value }}"
@@ -33,31 +31,9 @@
min="{{system.level.min }}"
max="{{system.level.max }}"
/>
</div>
{{#if (eq system.type "group")}}
<div class="resource row mdb">
<label class="resource-label">{{ localize "ITEMS.learning"}}</label>
<div class=" flexrow row">
<input
type="number"
name="system.learning.threshold"
value="{{system.learning.threshold }}"
data-dtype="Number"
min="3"
max="10"
/> /
<input
type="number"
name="system.learning.hindrance"
value="{{system.learning.hindrance }}"
data-dtype="Number"
min="0"
max="3"
/>
</div>
</div>
{{/if}}
<div class="resource">
</span>
<label class="resource-label">{{ localize "VERMINE.type"}}</label>
<select
name="system.type"
@@ -72,7 +48,7 @@
{{#if (eq system.type "group")}}selected{{/if}}
>Groupe</option>
<option
value="group"
value="creature"
{{#if (eq system.type "creature")}}selected{{/if}}
>Créature</option>
<option
@@ -80,9 +56,7 @@
{{#if (eq system.type "totem")}}selected{{/if}}
>Totem</option>
</select>
</div>
<div class="resource">
<label class="resource-label">{{ localize "VERMINE.totem"}}</label>
<label class="resource-label">{{ localize "IDENTITY.totem"}}</label>
<select
name="system.totem"
data-dtype="String"
@@ -95,14 +69,33 @@
>{{ localize totem }}</option>
{{/each}}
</select>
</div>
</aside>
<main
class="editor-wrapper"
style="flex:10"
>
</h4>
{{#if (eq system.type "group")}}
<h4 class="resource flexrow">
<label class="resource-label">{{ localize "ITEMS.learning"}}</label>
<span class=" hexa">
<input
type="number"
name="system.learning.threshold"
value="{{system.learning.threshold }}"
data-dtype="Number"
min="3"
max="10"
/>
</span>/
<span class="hexa">
<input
type="number"
name="system.learning.hindrance"
value="{{system.learning.hindrance }}"
data-dtype="Number"
min="0"
max="3"
/>
</span>
</h4>
{{/if}}
<h4>description</h4>
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
</main>
</div>
</section>
</form>
+2 -1
View File
@@ -20,7 +20,8 @@
</header>
{{!-- Sheet Body --}}
<section class="sheet-body ">
<h4 class="resource-label flexrow">{{ localize "ITEMS.cost"}}
<h4 class="resource-label flexrow">
<label class="resource-label">{{ localize "ITEMS.cost"}}</label>
<span class="hexa">
<input
type="number"
+8 -18
View File
@@ -22,31 +22,21 @@
<section class="sheet-body">
<div
class=" flexrow "
data-group="primary"
data-tab="description"
>
<aside style="flex:20%;">
<div class="resource">
<label class="resource-label">{{ localize "VERMINE.level"}}</label>
<input
<h4 class="resource flexrow">
<label class="resource-label ">{{ localize "VERMINE.level"}}</label>
<span class="hexa"><input
type="number"
name="system.level.value"
value="{{system.level.value }}"
data-dtype="Number"
min="{{system.level.min }}"
max="{{system.level.max }}"
/>
</div>
</aside>
<main
class="editor-wrapper"
style="flex:10"
>
/></span>
</h4>
<h4>description</h4>
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
</main>
</div>
</section>
</form>