509b7f97dc
Utilisation de system dans les data de formulaire pour tous les Item/Actor (à la base, ou les sous-éléments) Corrections sur les sorts en réserve (ce ne sont pas des Item) Petites améliorations: * `actor.itemTypes[type]` revient à faire (sans besoin de filtrer) `actor.items.filter(it => it.type == type)` * dans les ItemSheet, this.object et this.document remplacés par this.item * dans les ActorSheet, this.object et this.document remplacés par this.actor Quelques corrections en plus: * parade ne marchait pas * problèmes sur le commerce
86 lines
4.3 KiB
HTML
86 lines
4.3 KiB
HTML
<form class="{{cssClass}}" autocomplete="off">
|
|
|
|
{{!-- Sheet Header --}}
|
|
<header class="sheet-header">
|
|
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
|
|
<div class="header-fields">
|
|
<div class="flexrow">
|
|
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
{{!-- Sheet Tab Navigation --}}
|
|
<nav class="sheet-tabs tabs" data-group="primary">
|
|
<a class="item" data-tab="carac">Caractéristiques</a>
|
|
<a class="item" data-tab="items">Contenu</a>
|
|
<a class="item" data-tab="description">Description</a>
|
|
</nav>
|
|
|
|
{{!-- Sheet Body --}}
|
|
<section class="sheet-body">
|
|
|
|
{{!-- Carac Tab --}}
|
|
<div class="tab items" data-group="primary" data-tab="carac">
|
|
<div class="grid grid-2col">
|
|
<div class="flex-group-left flexcol">
|
|
<ol class="carac-list alterne-list">
|
|
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
<span class="carac-label flexrow" name="categorie">Catégorie</span>
|
|
<select name="system.categorie" class="categorie" data-dtype="String">
|
|
{{#select system.categorie}}
|
|
{{>"systems/foundryvtt-reve-de-dragon/templates/enum-categorie-vehicule.html"}}
|
|
{{/select}}
|
|
</select>
|
|
</li>
|
|
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
<span class="carac-label flexrow" name="categorie">Résistance</span>
|
|
<input class="competence-value flexrow" type="text" name="system.resistance" value="{{system.resistance}}" data-dtype="Number" />
|
|
</li>
|
|
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
<span class="carac-label flexrow" name="categorie">Structure</span>
|
|
<input class="competence-value flexrow" type="text" name="system.structure" value="{{system.structure}}" data-dtype="Number" />
|
|
</li>
|
|
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
<span class="carac-label flexrow" name="categorie">Vitesse</span>
|
|
<input class="competence-value flexrow" type="text" name="system.vitesse" value="{{system.vitesse}}" data-dtype="String" />
|
|
</li>
|
|
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
<span class="carac-label flexrow" name="categorie">Bonus</span>
|
|
<input class="competence-value flexrow" type="text" name="system.bonus" value="{{system.bonus}}" data-dtype="String" />
|
|
</li>
|
|
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
<span class="carac-label flexrow" name="categorie">Manoeuvrabilité</span>
|
|
<input class="competence-value flexrow" type="text" name="system.manoeuvrabilite" value="{{system.manoeuvrabilite}}" data-dtype="String" />
|
|
</li>
|
|
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
<span class="carac-label flexrow" name="categorie">Equipage</span>
|
|
<input class="competence-value flexrow" type="text" name="system.equipage" value="{{system.equipage}}" data-dtype="Number" />
|
|
</li>
|
|
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
<span class="carac-label flexrow" name="categorie">Capacité d'Encombrement</span>
|
|
<input class="competence-value flexrow" type="text" name="system.capacite_encombrement" value="{{system.capacite_encombrement}}" data-dtype="Number" />
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{!-- Equipment Tab --}}
|
|
<div class="tab items" data-group="primary" data-tab="items">
|
|
|
|
{{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-inventaire.html"}}
|
|
|
|
|
|
{{!-- Biography Tab --}}
|
|
<div class="tab description" data-group="primary" data-tab="description">
|
|
<div class="form-group editor">
|
|
{{editor content=system.description target="system.description" button=true owner=owner editable=editable}}
|
|
</div>
|
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor-sheet-editor-notes-mj.html"}}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
</form> |