2020-09-20 17:38:21 +02:00
|
|
|
<form class="{{cssClass}}" autocomplete="off">
|
|
|
|
|
2020-09-20 21:45:46 +02:00
|
|
|
{{!-- Sheet Header --}}
|
|
|
|
<header class="sheet-header">
|
2020-11-03 09:14:14 +01:00
|
|
|
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" />
|
2020-09-20 21:45:46 +02:00
|
|
|
<div class="header-fields">
|
2020-12-27 19:55:51 +01:00
|
|
|
<div class="flexrow">
|
|
|
|
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name" /></h1>
|
|
|
|
</div>
|
|
|
|
<div class="flexrow flex-group-center flex-actions-bar">
|
|
|
|
<div>
|
|
|
|
<span id="encaisser-direct"><a title="Encaisser des dommages"><img class="button-img" src="icons/svg/bones.svg" alt="Encaisser des dommages"/></a></span>
|
|
|
|
<span id="remise-a-neuf" class="gm-only"><a title="Remise à neuf"><img class="button-img" src="icons/svg/regen.svg" alt="Remise à neuf"/></a></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-20 21:45:46 +02:00
|
|
|
<div class="flexrow">
|
|
|
|
<div class="flexrow">
|
2020-12-05 02:22:37 +01:00
|
|
|
<span>{{data.blessures.resume}}</span>
|
2020-09-20 17:38:21 +02:00
|
|
|
</div>
|
2020-09-20 21:45:46 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
2020-09-20 17:38:21 +02:00
|
|
|
|
2020-09-20 21:45:46 +02:00
|
|
|
{{!-- 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="blessures">Blessures</a>
|
2020-11-18 16:57:58 +01:00
|
|
|
<a class="item" data-tab="items">Équipement</a>
|
2020-09-20 21:45:46 +02:00
|
|
|
<a class="item" data-tab="description">Description</a>
|
|
|
|
</nav>
|
2020-09-20 17:38:21 +02:00
|
|
|
|
2020-09-20 21:45:46 +02:00
|
|
|
{{!-- Sheet Body --}}
|
|
|
|
<section class="sheet-body">
|
2020-09-20 17:38:21 +02:00
|
|
|
|
2020-09-20 21:45:46 +02:00
|
|
|
{{!-- Carac Tab --}}
|
|
|
|
<div class="tab items" data-group="primary" data-tab="carac">
|
|
|
|
<div class="grid grid-2col">
|
|
|
|
<div class="flex-group-left flexcol">
|
2020-11-24 21:00:24 +01:00
|
|
|
<ol class="carac-list alterne-list">
|
2020-09-20 21:45:46 +02:00
|
|
|
{{#each data.carac as |carac key|}}
|
2020-11-24 21:00:24 +01:00
|
|
|
<li class="competence flexrow list-item" data-attribute="{{key}}">
|
2020-09-20 21:45:46 +02:00
|
|
|
{{#if carac.isTaille}}
|
|
|
|
<span class="carac-label flexrow" name="data.carac.{{key}}.label">{{carac.label}}</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="carac-label flexrow" name="data.carac.{{key}}.label"><a
|
|
|
|
name={{key}}>{{carac.label}}</a></span>
|
|
|
|
{{/if}}
|
|
|
|
<input class="competence-value flexrow" type="text" name="data.carac.{{key}}.value"
|
|
|
|
value="{{carac.value}}" data-dtype="{{carac.type}}" />
|
|
|
|
</li>
|
2020-09-20 17:38:21 +02:00
|
|
|
{{/each}}
|
2020-09-20 21:45:46 +02:00
|
|
|
<li class="competence flexrow">
|
|
|
|
<span class="carac-label flexrow" name="carac-total">Total Caractéristiques</span>
|
|
|
|
<span class="competence-value flexrow" name="carac-total-value">{{data.caracSum}}</span>
|
|
|
|
</li>
|
|
|
|
</ol>
|
2020-09-20 17:38:21 +02:00
|
|
|
</div>
|
2020-09-20 21:45:46 +02:00
|
|
|
<div class="flex-group-left flexcol">
|
2020-11-24 21:00:24 +01:00
|
|
|
<ol class="carac-list alterne-list">
|
2020-09-20 21:45:46 +02:00
|
|
|
{{#each data.attributs as |attr key|}}
|
2020-11-24 21:00:24 +01:00
|
|
|
<li class="competence flexrow list-item" data-attribute="{{key}}">
|
2020-09-20 21:45:46 +02:00
|
|
|
<span class="carac-label flexrow" name="data.attributs.{{key}}.label">{{attr.label}} : </span>
|
|
|
|
<span><input class="attribut-value flexrow" type="text" name="data.attributs.{{key}}.value"
|
|
|
|
value="{{attr.value}}" data-dtype="{{attr.type}}" /></span>
|
2020-09-20 17:38:21 +02:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
2020-11-24 21:00:24 +01:00
|
|
|
<li class="competence flexrow list-item" data-attribute="vie">
|
2020-09-20 21:45:46 +02:00
|
|
|
<span class="competence-label flexrow" name="data.sante.vie.label">Vie : </span>
|
|
|
|
<span><input class="sante-value flexrow" type="text" name="data.sante.vie.value"
|
|
|
|
value="{{data.sante.vie.value}}" data-dtype="Number" /></span><span>/ </span>
|
|
|
|
<span><input class="sante-value flexrow" type="text" name="data.sante.vie.max"
|
|
|
|
value="{{data.sante.vie.max}}" data-dtype="Number" /></span>
|
2020-09-20 17:38:21 +02:00
|
|
|
</li>
|
2020-11-24 21:00:24 +01:00
|
|
|
<li class="competence flexrow list-item" data-attribute="endurance">
|
2020-09-20 21:45:46 +02:00
|
|
|
<span class="competence-label flexrow" name="data.sante.endurance.label">Endurance : </span>
|
|
|
|
<span><input class="sante-value flexrow" type="text" name="data.sante.endurance.value"
|
|
|
|
value="{{data.sante.endurance.value}}" data-dtype="Number" /></span><span>/ </span>
|
|
|
|
<span><input class="sante-value flexrow" type="text" name="data.sante.endurance.max"
|
|
|
|
value="{{data.sante.endurance.max}}" data-dtype="Number" /></span>
|
2020-09-20 17:38:21 +02:00
|
|
|
</li>
|
2020-11-24 21:00:24 +01:00
|
|
|
<li class="competence flexrow list-item" data-attribute="sonne">
|
2020-09-20 21:45:46 +02:00
|
|
|
<span class="competence-label flexrow" name="data.sante.sonne.label">Sonné : </span>
|
|
|
|
<input class="resource-content" type="checkbox" name="data.sante.sonne.value"
|
|
|
|
value="{{data.sante.sonne.value}}" {{#if data.sante.sonne.value}}checked{{/if}} />
|
2021-01-04 01:19:47 +01:00
|
|
|
<img class="img-sonne" {{#if data.sante.sonne.value}}style="opacity: 1;"{{else}}style="opacity: 0;"{{/if}} src="icons/svg/stoned.svg" height="16" width="16"/>
|
2020-09-20 21:45:46 +02:00
|
|
|
</li>
|
2020-11-24 21:00:24 +01:00
|
|
|
<li class="competence flexrow list-item" data-attribute="etat">
|
2020-09-20 21:45:46 +02:00
|
|
|
<span class="competence-label flexrow" name="data.compteurs.etat.label">Etat Général : </span>
|
|
|
|
<span>{{data.compteurs.etat.value}}</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">
|
2020-11-24 21:00:24 +01:00
|
|
|
<ol class="item-list alterne-list">
|
2020-09-20 21:45:46 +02:00
|
|
|
{{#each data.competencecreature as |comp key|}}
|
2020-11-24 21:00:24 +01:00
|
|
|
<li class="item flexrow list-item" data-item-id="{{comp._id}}">
|
2020-09-20 21:45:46 +02:00
|
|
|
<img class="sheet-competence-img" src="{{comp.img}}" />
|
2021-01-03 19:20:35 +01:00
|
|
|
<span class="competence-label"><a>{{comp.name}}</a></span>
|
2020-09-20 21:45:46 +02:00
|
|
|
<input class="competence-value creature-carac" type="text"
|
|
|
|
name="data.competencecreature[{{key}}].data.carac_value" compname="{{comp.name}}"
|
|
|
|
value="{{comp.data.carac_value}}" data-dtype="number" />
|
|
|
|
<input class="competence-value creature-niveau" type="text"
|
2021-01-03 19:20:35 +01:00
|
|
|
compname="{{comp.name}}"
|
2020-09-20 21:45:46 +02:00
|
|
|
value="{{numberFormat comp.data.niveau decimals=0 sign=true}}" data-dtype="number" />
|
|
|
|
<input class="competence-value creature-dommages" type="text"
|
|
|
|
name="data.competencecreature[{{key}}]].data.dommages" compname="{{comp.name}}"
|
|
|
|
value="{{numberFormat comp.data.dommages decimals=0 sign=true}}" data-dtype="number" />
|
|
|
|
<div class="item-controls">
|
|
|
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
|
|
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
|
|
|
</div>
|
2020-09-20 17:38:21 +02:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
2020-09-20 21:45:46 +02:00
|
|
|
</ol>
|
2020-09-20 17:38:21 +02:00
|
|
|
</div>
|
2020-09-20 21:45:46 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{!-- blessures Tab --}}
|
|
|
|
<div class="tab blessures" data-group="primary" data-tab="blessures" style="height:200px">
|
|
|
|
<span class="blessures-title">Blessures Légeres :</span>
|
2020-11-24 21:00:24 +01:00
|
|
|
<div class="blessure-data alterne-list">
|
2020-09-20 21:45:46 +02:00
|
|
|
{{#each data.blessures.legeres.liste as |bless key|}}
|
2020-11-24 21:00:24 +01:00
|
|
|
<li class="item flexrow blessure-data list-item" data-blessure-type="legere" data-attribute={{key}}
|
2020-09-20 21:45:46 +02:00
|
|
|
data-blessure-index="{{key}}">
|
|
|
|
<a class="item-control blessure-control" title="Blessure Légère"
|
|
|
|
data-blessure-active="{{bless.active}}">{{#if bless.active}}<i class="fas fa-circle"></i>{{else}}<i
|
|
|
|
class="fas fa-genderless"></i>{{/if}}</a>
|
|
|
|
Premiers soins <input class="blessures-soins" type="text" name='premiers_soins' data-dtype="number"
|
|
|
|
value="{{this.premiers_soins}}" /> -
|
|
|
|
Soins complets <input class="blessures-soins" type="text" name='soins_complets' data-dtype="number"
|
|
|
|
value="{{this.soins_complets}}" /> -
|
|
|
|
Jours <input class="blessures-soins" type="text" name='jours' data-dtype="number" value="{{this.jours}}" />
|
|
|
|
-
|
|
|
|
Loc. <input class="blessures-soins" type="text" name='localisation' data-dtype="String"
|
2020-12-15 02:20:24 +01:00
|
|
|
value="{{this.loc}}" />
|
2020-09-20 21:45:46 +02:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
2020-09-20 17:38:21 +02:00
|
|
|
</div>
|
2020-09-20 21:45:46 +02:00
|
|
|
<span class="blessures-title">Blessures Graves :</span>
|
2020-11-24 21:00:24 +01:00
|
|
|
<div class="blessure-data alterne-list">
|
2020-09-20 21:45:46 +02:00
|
|
|
{{#each data.blessures.graves.liste as |bless key|}}
|
2020-11-24 21:00:24 +01:00
|
|
|
<li class="item flexrow list-item" data-blessure-type="grave" data-attribute={{key}} data-blessure-index="{{key}}">
|
2020-09-20 21:45:46 +02:00
|
|
|
<a class="item-control blessure-control" title="Blessure Grave"
|
|
|
|
data-blessure-active="{{bless.active}}">{{#if bless.active}}<i class="fas fa-circle"></i>{{else}}<i
|
|
|
|
class="fas fa-genderless"></i>{{/if}}</a>
|
|
|
|
Premiers soins <input class="blessures-soins" type="text" name="premiers_soins" data-dtype="number"
|
|
|
|
value="{{bless.premiers_soins}}" /> -
|
|
|
|
Soins complets <input class="blessures-soins" type="text" name="soins_complets" data-dtype="number"
|
|
|
|
value="{{bless.soins_complets}}" /> -
|
|
|
|
Jours <input class="blessures-soins" type="text" name="jours" data-dtype="number" value="{{bless.jours}}" />
|
|
|
|
-
|
|
|
|
Loc. <input class="blessures-soins" type="text" name="localisation" data-dtype="String"
|
2020-12-15 02:20:24 +01:00
|
|
|
value="{{bless.loc}}" />
|
2020-09-20 21:45:46 +02:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
<span class="blessures-title">Blessure Critique :</span>
|
2020-11-24 21:00:24 +01:00
|
|
|
<div class="blessure-data alterne-list">
|
2020-09-20 21:45:46 +02:00
|
|
|
{{#each data.blessures.critiques.liste as |bless key|}}
|
2020-11-24 21:00:24 +01:00
|
|
|
<li class="item flexrow list-item" data-blessure-type="critique" data-attribute={{key}} data-blessure-index="{{key}}">
|
2020-09-20 21:45:46 +02:00
|
|
|
<a class="item-control blessure-control" title="Blessure Critique"
|
|
|
|
data-blessure-active="{{bless.active}}">{{#if bless.active}}<i class="fas fa-circle"></i>{{else}}<i
|
|
|
|
class="fas fa-genderless"></i>{{/if}}</a>
|
|
|
|
Premiers soins <input class="blessures-soins" type="text" name="premiers_soins" data-dtype="number"
|
|
|
|
value="{{bless.premiers_soins}}" /> -
|
|
|
|
Soins complets <input class="blessures-soins" type="text" name="soins_complets" data-dtype="number"
|
|
|
|
value="{{bless.soins_complets}}" /> -
|
|
|
|
Jours <input class="blessures-soins" type="text" name="jours" data-dtype="number" value="{{bless.jours}}" />
|
|
|
|
-
|
|
|
|
Loc. <input class="blessures-soins" type="text" name="localisation" data-dtype="String"
|
2020-12-15 02:20:24 +01:00
|
|
|
value="{{bless.loc}}" />
|
2020-09-20 21:45:46 +02:00
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-18 16:57:58 +01:00
|
|
|
|
|
|
|
{{!-- Equipment Tab --}}
|
|
|
|
<div class="tab items" data-group="primary" data-tab="items">
|
2021-01-08 16:57:10 +01:00
|
|
|
<span class="item-name">Encombrement total/max : {{numberFormat data.encTotal decimals=1}} / {{data.attributs.encombrement.value}} <b>{{data.surEncombrementMessage}}</b></span> -
|
|
|
|
<span class="item-name"><a id="creer-un-objet">Créer un objet</a></span>
|
|
|
|
{{#if data.isGM}}
|
|
|
|
<span class="item-name"> - <a id="nettoyer-conteneurs">Vider tout les conteneurs</a></span>
|
|
|
|
{{/if}}
|
|
|
|
<ul class="item-list alterne-list">
|
|
|
|
<li class="competence-header flexrow">
|
|
|
|
<span class="competence-title competence-label">Nom</span>
|
|
|
|
<span class="competence-title competence-label">Q.</span>
|
|
|
|
<span class="competence-title competence-value">Enc.</span>
|
|
|
|
<span class="competence-title competence-value">Equiper</span>
|
|
|
|
<span class="competence-title competence-value">Editer/Suppr.</span>
|
|
|
|
</li>
|
2020-11-18 16:57:58 +01:00
|
|
|
{{#each data.objets as |item id|}}
|
2021-01-08 16:57:10 +01:00
|
|
|
{{#unless item.estContenu}}
|
|
|
|
{{#if (ne item.type 'conteneur')}}
|
|
|
|
<li class="item flexrow list-item" data-item-id="{{item._id}}">
|
|
|
|
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
|
|
|
|
<span class="item-name">{{item.name}}</span>
|
|
|
|
<span class="item-quantite">{{item.data.quantite}}</span>
|
|
|
|
<span class="item-quantite">{{numberFormat item.data.encTotal decimals=2}}</span>
|
|
|
|
<div class="item-controls">
|
|
|
|
<a class="item-control item-equip" title="Equiper">{{#if item.data.equipe}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
|
|
|
<a class="item-control item-edit" title="Editer"><i class="fas fa-edit"></i></a>
|
|
|
|
<a class="item-control item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{/unless}}
|
2020-11-18 16:57:58 +01:00
|
|
|
{{/each}}
|
2021-01-08 16:57:10 +01:00
|
|
|
{{#each data.conteneurs as |conteneur id|}}
|
|
|
|
{{buildConteneur this}}
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-11-18 16:57:58 +01:00
|
|
|
|
2020-09-20 21:45:46 +02:00
|
|
|
{{!-- Biography Tab --}}
|
2020-11-07 23:31:18 +01:00
|
|
|
<div class="tab description" data-group="primary" data-tab="description">
|
|
|
|
<div class="form-group editor">
|
2020-09-20 21:52:46 +02:00
|
|
|
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
2020-09-20 21:45:46 +02:00
|
|
|
</div>
|
2020-12-01 20:52:05 +01:00
|
|
|
{{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}}
|
2020-09-20 21:45:46 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2020-09-20 17:38:21 +02:00
|
|
|
|
2020-09-20 21:45:46 +02:00
|
|
|
</section>
|
|
|
|
</form>
|