passe sur le display des items

This commit is contained in:
rwanoux
2024-11-22 18:18:00 +01:00
parent b478fd7b54
commit 1f1198b2d5
6 changed files with 119 additions and 124 deletions
+35 -49
View File
@@ -1,55 +1,41 @@
{{!-- This template is a fallback for when items don't have more specific templates. --}}
{{!-- Generally, you'll want to make more specific templates when possible. --}}
<form class="{{cssClass}} form" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
</div>
</header>
{{> "systems/vermine2047/templates/item/partials/header.hbs"}}
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item active" data-tab="description">{{ localize "VERMINE.stats" }}</a>
<a class="item" data-tab="details">{{ localize "ITEMS.details" }}</a>
</nav>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="tab flexrow gap-4" data-group="primary" data-tab="description">
<aside style="flex:20%;">
<div class="resource">
<label class="resource-label">{{ localize "VERMINE.ability"}}</label>
<select name="system.ability" data-dtype="String">
<option value="">-- Aucune --</option>
{{#each config.abilities as |ability akey| }}
<option value="{{ akey }}"{{#if (eq akey @root.system.ability)}} selected="selected"{{/if}}>{{ localize ability}}</option>
{{/each}}
</select>
</div>
</aside>
<main style="flex:10">
<div class="editor-wrapper">
{{editor system.description target="system.description" button=true owner=owner editable=editable}}
</div>
</main>
</div>
<div class="tab" data-group="primary" data-tab="details">
<div class="grid">
<div>
<h4>{{ localize 'ITEMS.rituel'}}</h4>
<textarea name="system.rituel">{{ system.rituel }}</textarea>
</div>
<div>
<h4>{{ localize 'ITEMS.transe'}}</h4>
<textarea name="system.transe">{{ system.transe }}</textarea>
</div>
</div>
<h4>{{ localize 'ITEMS.effects'}}</h4>
<div class="editor-wrapper">
{{editor system.effects target="system.effects" button=true owner=owner editable=editable}}
</div>
</div>
</section>
{{!-- Sheet Body --}}
<section class="sheet-body">
<aside style="flex:20%;">
<div class="resource">
<label class="resource-label">{{ localize "VERMINE.ability"}}</label>
<select name="system.ability" data-dtype="String">
<option value="">-- Aucune --</option>
{{#each config.abilities as |ability akey| }}
<option value="{{ akey }}" {{#if (eq akey @root.system.ability)}} selected="selected" {{/if}}>{{ localize ability}}</option>
{{/each}}
</select>
</div>
</aside>
<main style="flex:10">
<div class="editor-wrapper">
{{editor system.description target="system.description" button=true owner=owner editable=editable}}
</div>
</main>
<div class="grid">
<div>
<h4>{{ localize 'ITEMS.rituel'}}</h4>
<textarea name="system.rituel">{{ system.rituel }}</textarea>
</div>
<div>
<h4>{{ localize 'ITEMS.transe'}}</h4>
<textarea name="system.transe">{{ system.transe }}</textarea>
</div>
</div>
<h4>{{ localize 'ITEMS.effects'}}</h4>
<div class="editor-wrapper">
{{editor system.effects target="system.effects" button=true owner=owner editable=editable}}
</div>
</div>
</form>
+5 -18
View File
@@ -1,24 +1,11 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
</div>
</header>
{{> "systems/vermine2047/templates/item/partials/header.hbs"}}
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item active" data-tab="description">Description</a>
</nav>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Sheet Body --}}
<section class="sheet-body">
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
{{!-- Description Tab --}}
<div class="tab" data-group="primary" data-tab="description">
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
</div>
</section>
</section>
</form>
+5 -18
View File
@@ -1,24 +1,11 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
</div>
</header>
{{> "systems/vermine2047/templates/item/partials/header.hbs"}}
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item active" data-tab="description">Description</a>
</nav>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Sheet Body --}}
<section class="sheet-body">
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
{{!-- Description Tab --}}
<div class="tab" data-group="primary" data-tab="description">
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
</div>
</section>
</section>
</form>
+10 -21
View File
@@ -1,34 +1,23 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
</div>
</header>
{{> "systems/vermine2047/templates/item/partials/header.hbs"}}
<section class="sheet-body">
{{> "systems/vermine2047/templates/item/partials/traits.html"}}
<div class=" flexcol" data-group="primary" data-tab="description">
<div class="flexrow">
<div class="resource">
<label class="resource-label">{{ localize "VERMINE.mobility"}}</label>
<div class="flexrow">
<div class="resource flexrow align-center">
<label class="resource-label">{{ localize "VERMINE.mobility"}}</label>
<div class="hexa">
<input type="number" name="system.mobility" value="{{system.mobility}}" data-dtype="Number"/>
</div>
<div class="resource">
<label class="resource-label">{{ localize "VERMINE.rarity"}}</label>
<input type="number" name="system.rarity" value="{{system.rarity}}" data-dtype="Number"/>
</div>
<div class="resource">
<label class="resource-label">{{ localize "VERMINE.reliability"}}</label>
<input type="number" name="system.reliability" value="{{system.reliability}}" data-dtype="Number"/>
</div>
</div>
<h2>Description</h2>
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
</div>
{{> "systems/vermine2047/templates/item/partials/damages.html"}}
{{> "systems/vermine2047/templates/item/partials/physicalItems.hbs"}}
</section>
</form>
-1
View File
@@ -1,5 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
{{log this}}
{{> "systems/vermine2047/templates/item/partials/header.hbs"}}