Finalize aappv2 data models migration
This commit is contained in:
@@ -1,33 +1,26 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<header class="sheet-header">
|
||||
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs}}
|
||||
<section class="{{cssClass}}" autocomplete="off">
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-header.hbs this}}
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs this}}
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs this}}
|
||||
|
||||
<div class="tab" data-group="primary">
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<div class="item-details">
|
||||
<ul>
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Lame tutélaire</label>
|
||||
<select class="item-field-label-long" type="text" name="system.lametutelaire" data-dtype="String">
|
||||
<select class="item-field-label-long" name="system.lametutelaire" data-dtype="String">
|
||||
{{selectOptions tarots selected=system.lametutelaire nameAttr="_id" labelAttr="name"}}
|
||||
</select>
|
||||
</select>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -1,69 +1,57 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<header class="sheet-header">
|
||||
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs}}
|
||||
<section class="{{cssClass}}" autocomplete="off">
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-header.hbs this}}
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs this}}
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs this}}
|
||||
|
||||
<div class="tab" data-group="primary">
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<div class="item-details">
|
||||
<ul>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Type d'arme</label>
|
||||
<select class="item-field-label-long" type="text" name="system.armetype" value="{{system.armetype}}" data-dtype="String">
|
||||
<select class="item-field-label-long" name="system.armetype" data-dtype="String">
|
||||
{{selectOptions config.armeTypes selected=system.armetype}}
|
||||
</select>
|
||||
</select>
|
||||
</li>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Portee courte (max)</label>
|
||||
<input type="text" class="item-field-label-short" name="system.porteecourte" value="{{system.porteecourte}}" data-dtype="Number"/>
|
||||
<label class="item-field-label-long">Portée courte (max)</label>
|
||||
<input type="text" class="item-field-label-short" name="system.porteecourte" value="{{system.porteecourte}}" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Portee moyenne (max)</label>
|
||||
<input type="text" class="item-field-label-short" name="system.porteemoyenne" value="{{system.porteemoyenne}}" data-dtype="Number"/>
|
||||
<label class="item-field-label-long">Portée moyenne (max)</label>
|
||||
<input type="text" class="item-field-label-short" name="system.porteemoyenne" value="{{system.porteemoyenne}}" />
|
||||
</li>
|
||||
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Dommages normaux</label>
|
||||
<input type="text" class="item-field-label-short" name="system.dommagenormale" value="{{system.dommagenormale}}" data-dtype="Number"/>
|
||||
<input type="number" class="item-field-label-short" name="system.dommagenormale" value="{{system.dommagenormale}}" />
|
||||
</li>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Dommages particuliers</label>
|
||||
<input type="text" class="item-field-label-short" name="system.dommagepart" value="{{system.dommagepart}}" data-dtype="Number"/>
|
||||
<input type="number" class="item-field-label-short" name="system.dommagepart" value="{{system.dommagepart}}" />
|
||||
</li>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Critiques Mortels ?</label>
|
||||
<input type="checkbox" class="item-field-label-short" name="system.dommagecritiquemort" {{checked system.dommagecritiquemort}} />
|
||||
|
||||
<label class="item-field-label-short"> </label>
|
||||
|
||||
<label class="item-field-label-long">Critiques KO ?</label>
|
||||
<input type="checkbox" class="item-field-label-short" name="system.dommagecritiqueKO" {{checked system.dommagecritiqueKO}} />
|
||||
</li>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Dommages critiques</label>
|
||||
<input type="text" class="item-field-label-short" name="system.dommagecritique" value="{{system.dommagecritique}}" data-dtype="Number"/>
|
||||
<input type="number" class="item-field-label-short" name="system.dommagecritique" value="{{system.dommagecritique}}" />
|
||||
</li>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Critiques mortels ?</label>
|
||||
<input type="checkbox" name="system.dommagecritiquemort" {{checked system.dommagecritiquemort}} />
|
||||
<label class="item-field-label-long">Critiques KO ?</label>
|
||||
<input type="checkbox" name="system.dommagecritiqueKO" {{checked system.dommagecritiqueKO}} />
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -1,27 +1,11 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<header class="sheet-header">
|
||||
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs}}
|
||||
<section class="{{cssClass}}" autocomplete="off">
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-header.hbs this}}
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs this}}
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
|
||||
<div class="tab" data-group="primary">
|
||||
<ul>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs this}}
|
||||
</section>
|
||||
</form>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -1,27 +1,11 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<header class="sheet-header">
|
||||
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs}}
|
||||
<section class="{{cssClass}}" autocomplete="off">
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-header.hbs this}}
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs this}}
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
|
||||
<div class="tab" data-group="primary">
|
||||
<ul>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs this}}
|
||||
</section>
|
||||
</form>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -1,30 +1,24 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<header class="sheet-header">
|
||||
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs}}
|
||||
<section class="{{cssClass}}" autocomplete="off">
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-header.hbs this}}
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs this}}
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs this}}
|
||||
|
||||
<div class="tab" data-group="primary">
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<div class="item-details">
|
||||
<ul>
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Seuil de Fluide</label>
|
||||
<input type="input" class="item-field-label-short" name="system.seuil" value="{{system.seuil}}" data-dtype="Number" />
|
||||
<input type="number" class="item-field-label-short" name="system.seuil" value="{{system.seuil}}" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -1,64 +1,62 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<header class="sheet-header">
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs}}
|
||||
<section class="{{cssClass}}" autocomplete="off">
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-header.hbs this}}
|
||||
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs this}}
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
<div class="flexrow">
|
||||
<div>
|
||||
<img class="item-tarot-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
|
||||
<div class="tab" data-group="primary">
|
||||
<ul>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Type </label>
|
||||
<select class="item-field-label-long" type="text" name="system.tarottype" value="{{system.tarottype}}" data-dtype="String">
|
||||
{{selectOptions config.tarotType selected=system.tarottype}}
|
||||
</select>
|
||||
</li>
|
||||
|
||||
{{#if isGM}}
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Valeur endroit (ie positif) ?</label>
|
||||
<input type="input" class="item-field-label-short" name="system.numericvalueup" value="{{system.numericvalueup}}" data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Valeur envers (ie négatif) ?</label>
|
||||
<input type="input" class="item-field-label-short" name="system.numericvaluedown" value="{{system.numericvaluedown}}" data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">A un sens (ie positif/négatif)?</label>
|
||||
<input type="checkbox" class="item-field-label-short" name="system.isdualside" {{checked system.isdualside}} />
|
||||
</li>
|
||||
{{#if system.isdualside}}
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">En positif ?</label>
|
||||
<input type="checkbox" class="item-field-label-short" name="system.ispositif" {{checked system.ispositif}} />
|
||||
</li>
|
||||
{{/if}}
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Carte cachée (ie MJ seulement) ?</label>
|
||||
<input type="checkbox" class="item-field-label-short" name="system.isgm" {{checked system.isgm}} />
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
</ul>
|
||||
<div class="tab description" data-group="primary" data-tab="description">
|
||||
<div class="flexrow">
|
||||
<div class="tarot-image-panel">
|
||||
<img class="item-tarot-img" src="{{item.img}}" data-action="editImage" title="{{item.name}}" />
|
||||
</div>
|
||||
<div class="tarot-description-panel">
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<div class="item-details">
|
||||
<ul>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Type</label>
|
||||
<select class="item-field-label-long" name="system.tarottype" data-dtype="String">
|
||||
{{selectOptions config.tarotType selected=system.tarottype}}
|
||||
</select>
|
||||
</li>
|
||||
|
||||
{{#if isGM}}
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Valeur endroit (positif)</label>
|
||||
<input type="number" class="item-field-label-short" name="system.numericvalueup" value="{{system.numericvalueup}}" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Valeur envers (négatif)</label>
|
||||
<input type="number" class="item-field-label-short" name="system.numericvaluedown" value="{{system.numericvaluedown}}" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">A un sens (positif/négatif) ?</label>
|
||||
<input type="checkbox" name="system.isdualside" {{checked system.isdualside}} />
|
||||
</li>
|
||||
{{#if system.isdualside}}
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">En positif ?</label>
|
||||
<input type="checkbox" name="system.ispositif" {{checked system.ispositif}} />
|
||||
</li>
|
||||
{{/if}}
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Carte cachée (MJ seulement) ?</label>
|
||||
<input type="checkbox" name="system.isgm" {{checked system.isgm}} />
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<div class="tab description" data-group="primary" data-tab="description">
|
||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
|
||||
30
templates/items/partial-item-header.hbs
Normal file
30
templates/items/partial-item-header.hbs
Normal file
@@ -0,0 +1,30 @@
|
||||
<div class="header">
|
||||
<header class="sheet-header">
|
||||
<img
|
||||
class="item-sheet-img"
|
||||
src="{{item.img}}"
|
||||
data-action="editImage"
|
||||
title="{{item.name}}"
|
||||
/>
|
||||
<div class="item-sheet-title">
|
||||
<h1>
|
||||
<input
|
||||
name="name"
|
||||
type="text"
|
||||
value="{{item.name}}"
|
||||
placeholder="Nom de l'item"
|
||||
/>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="header-actions">
|
||||
<button
|
||||
type="button"
|
||||
data-action="postItem"
|
||||
class="chat-card-button"
|
||||
data-tooltip="Poster dans le chat"
|
||||
>
|
||||
<i class="fas fa-comment"></i>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
@@ -1,5 +1,13 @@
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
<nav class="sheet-tabs tabs" data-group="primary">
|
||||
<a class="item" data-tab="description">Description</a>
|
||||
<a class="item" data-tab="details">Details</a>
|
||||
<nav class="tabs" data-group="primary">
|
||||
{{#each tabs}}
|
||||
<a class="item {{this.cssClass}}" data-tab="{{this.id}}">
|
||||
{{#if (eq this.id "description")}}
|
||||
<i class="fas fa-file-alt"></i>
|
||||
{{else if (eq this.id "details")}}
|
||||
<i class="fas fa-cog"></i>
|
||||
{{/if}}
|
||||
{{this.label}}
|
||||
</a>
|
||||
{{/each}}
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user