140 lines
6.8 KiB
HTML
140 lines
6.8 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 class="flexrow flex-group-center flex-actions-bar">
|
|
<div>
|
|
<span class="encaisser-direct"><a title="Encaisser des dommages"><img class="button-img" src="icons/svg/bones.svg" alt="Encaisser des dommages"/></a></span>
|
|
<span class="gm-only remise-a-neuf"><a title="Remise à neuf"><img class="button-img" src="icons/svg/regen.svg" alt="Remise à neuf"/></a></span>
|
|
</div>
|
|
</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="competences">Compétences</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">
|
|
{{#each system.carac as |carac key|}}
|
|
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
{{#if (eq key 'taille')}}
|
|
<span class="carac-label flexrow" name="system.carac.{{key}}.label">{{carac.label}}</span>
|
|
{{else}}
|
|
<span class="carac-label flexrow" name="system.carac.{{key}}.label"><a
|
|
name={{key}}>{{carac.label}}</a></span>
|
|
{{/if}}
|
|
<input class="competence-value flexrow" type="text" name="system.carac.{{key}}.value"
|
|
value="{{carac.value}}" data-dtype="{{carac.type}}" />
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
</div>
|
|
|
|
<div class="flex-group-left flexcol">
|
|
|
|
<ol class="carac-list alterne-list">
|
|
<li class="caracteristique flexrow list-item">
|
|
<span class="carac-label flexrow" name="catEntite">Catégorie : </span>
|
|
<select name="system.definition.categorieentite" value="{{system.definition.categorieentite}}" data-dtype="String">
|
|
{{#select system.definition.categorieentite}}
|
|
<option value="cauchemar">Cauchemar</option>
|
|
<option value="reve">Rêve</option>
|
|
{{/select}}
|
|
</select>
|
|
</li>
|
|
<li class="caracteristique flexrow list-item">
|
|
<span class="carac-label flexrow" name="typeEntite">Type d'entité : </span>
|
|
<select name="system.definition.typeentite" value="{{system.definition.typeentite}}" data-dtype="String">
|
|
{{#select system.definition.typeentite}}
|
|
<option value="incarne">Incarnée</option>
|
|
<option value="nonincarne">Non Incarnée</option>
|
|
<option value="blurette">Blurette</option>
|
|
{{/select}}
|
|
</select>
|
|
</li>
|
|
{{#each system.attributs as |attr key|}}
|
|
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
<span class="carac-label flexrow" name="system.attributs.{{key}}.label">{{attr.label}} : </span>
|
|
<span><input class="attribut-value flexrow" type="text" name="system.attributs.{{key}}.value"
|
|
value="{{attr.value}}" data-dtype="{{attr.type}}" /></span>
|
|
</li>
|
|
{{/each}}
|
|
<li class="caracteristique flexrow list-item" data-attribute="endurance">
|
|
<span class="competence-label flexrow" name="system.sante.endurance.label">Endurance : </span>
|
|
<span><input class="sante-value flexrow" type="text" name="system.sante.endurance.value"
|
|
value="{{system.sante.endurance.value}}" data-dtype="Number" /></span><span>/ </span>
|
|
<span><input class="sante-value flexrow" type="text" name="system.sante.endurance.max"
|
|
value="{{system.sante.endurance.max}}" data-dtype="Number" /></span>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{!-- Compétences Tab --}}
|
|
<div class="tab competences" data-group="primary" data-tab="competences">
|
|
<div class="flexcol">
|
|
<div class="flex-group-left flexcol competence-column">
|
|
<ol class="item-list alterne-list">
|
|
{{#each competences as |comp key|}}
|
|
<li class="item flexrow list-item" data-item-id="{{comp._id}}">
|
|
<img class="sheet-competence-img" src="{{comp.img}}" />
|
|
<span class="competence-label"><a>{{comp.name}}</a></span>
|
|
<input class="competence-value creature-carac" type="text" compname="{{comp.name}}"
|
|
value="{{comp.system.carac_value}}" data-dtype="number" />
|
|
<input class="competence-value creature-niveau" type="text" compname="{{comp.name}}"
|
|
value="{{numberFormat comp.system.niveau decimals=0 sign=true}}" data-dtype="number" />
|
|
<input class="competence-value creature-dommages" type="text" compname="{{comp.name}}"
|
|
value="{{numberFormat comp.system.dommages decimals=0 sign=true}}" data-dtype="number" />
|
|
<div class="item-controls">
|
|
<a class="item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
|
<a class="item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
|
</div>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
</div>
|
|
<div class="flex-group-left flexcol competence-column">
|
|
<ol class="item-list alterne-list">
|
|
{{#each possessions as |possession key|}}
|
|
<li class="item flexrow list-item" data-item-id="{{possession._id}}">
|
|
<img class="sheet-competence-img" src="{{possession.img}}" />
|
|
<span class="competence-label">{{possession.name}}</span>
|
|
<div class="item-controls">
|
|
<a class="item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
|
<a class="item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
|
</div>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{!-- Biography Tab --}}
|
|
<div class="tab description" data-group="primary" data-tab="description">
|
|
<div class="form-group editor">
|
|
{{editor description target="system.description" button=true owner=owner editable=true}}
|
|
</div>
|
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor-sheet-editor-notes-mj.html"}}
|
|
</div>
|
|
|
|
</section>
|
|
</form> |