foundryvtt-reve-de-dragon/templates/actor-sheet.html

358 lines
22 KiB
HTML
Raw Normal View History

2020-05-24 21:02:04 +02:00
<form class="{{cssClass}}" autocomplete="off">
2020-05-21 21:48:20 +02:00
{{!-- Sheet Header --}}
<header class="sheet-header">
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="100" width="100"/>
<div class="header-fields">
2020-05-24 20:19:57 +02:00
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
2020-05-28 23:36:09 +02:00
<div class="flexrow">
2020-05-24 20:19:57 +02:00
<div class="flex-group-center">
2020-06-12 11:47:41 +02:00
<div>
<span>Vie <a id="vie-plus">+</a> / <a id="vie-moins">-</a></span>
<input class="resource-content" type="text" name="data.sante.vie.value" value="{{data.sante.vie.value}}" data-dtype="Number"/>/{{data.sante.vie.max}}
</div>
<div>
<span>Endurance <a id="endurance-plus">+</a> / <a id="endurance-moins">-</a></span>
<input class="resource-content" type="text" name="data.sante.endurance.value" value="{{data.sante.endurance.value}}" data-dtype="Number"/>/{{data.sante.endurance.max}}
</div>
<div>
<span>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}}"/>
</div>
2020-05-21 21:48:20 +02:00
</div>
2020-05-28 23:36:09 +02:00
<div class="flex-group-center flex-fatigue">
Fatigue <a id="fatigue-plus">+</a> / <a id="fatigue-moins">-</a>
2020-05-27 23:47:49 +02:00
<span>{{{data.fatigueHTML}}}</span>
</div>
2020-05-24 20:19:57 +02:00
</div>
2020-06-12 11:47:41 +02:00
<div class="flexrow">
<div class="flexrow">
2020-06-12 22:46:04 +02:00
<div class="flex-group-center">Blessures légères : {{data.nbLegeres}}</div>
<div class="flex-group-center">Blessures graves : {{data.nbGraves}}</div>
<div class="flex-group-center">Blessure critique : {{data.nbCritiques}}</div>
2020-06-12 11:47:41 +02:00
</div>
</div>
2020-05-29 00:43:16 +02:00
<div class="flexrow">
{{#each data.compteurs as |compteur key|}}
<div class="flexcol flex-group-center">
{{compteur.label}} : {{compteur.value}}
</div>
{{/each}}
</div>
2020-05-21 21:48:20 +02:00
</div>
</header>
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
2020-05-22 00:48:43 +02:00
<a class="item" data-tab="carac">Caractéristiques</a>
2020-05-22 19:28:01 +02:00
<a class="item" data-tab="competences">Compétences</a>
2020-06-01 23:50:10 +02:00
<a class="item" data-tab="combat">Combat</a>
2020-06-12 22:46:04 +02:00
<a class="item" data-tab="blessures">Blessures</a>
<a class="item" data-tab="hautreve">Haut-Rêve</a>
<a class="item" data-tab="items">Equipement</a>
2020-05-21 21:48:20 +02:00
<a class="item" data-tab="description">Description</a>
</nav>
{{!-- Sheet Body --}}
<section class="sheet-body">
2020-05-22 00:48:43 +02:00
{{!-- Carac Tab --}}
2020-05-24 21:02:04 +02:00
<div class="tab items" data-group="primary" data-tab="carac">
2020-05-24 20:19:57 +02:00
<div class="grid grid-2col">
2020-05-24 21:02:04 +02:00
<div class="flex-group-left flexcol">
2020-05-24 20:19:57 +02:00
<ol class="carac-list">
{{#each data.carac as |carac key|}}
<li class="competence flexrow" data-attribute="{{key}}">
2020-06-12 22:46:04 +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}}
2020-05-24 20:19:57 +02:00
{{#if carac.derivee}}
2020-05-24 21:02:04 +02:00
<label class="competence-value flexrow">{{carac.value}}</label>
2020-05-24 20:19:57 +02:00
{{else}}
2020-06-12 22:46:04 +02:00
<input class="competence-value flexrow" type="text" name="data.carac.{{key}}.value" value="{{carac.value}}" data-dtype="{{carac.type}}"/>
<input class="competence-xp flexrow" type="text" name="data.carac.{{key}}.xp" value="{{carac.xp}}" data-dtype="number"/>
2020-05-24 20:19:57 +02:00
{{/if}}
</li>
{{/each}}
</ol>
</div>
2020-05-24 21:02:04 +02:00
<div class="flex-group-left flexcol" >
<ol class="carac-list">
2020-05-24 20:19:57 +02:00
{{#each data.attributs as |attr key|}}
2020-05-24 21:02:04 +02:00
<li class="competence flexrow" data-attribute="{{key}}">
<span class="competence-label flexrow" name="data.attributs.{{key}}.label">{{attr.label}} : {{attr.value}}</span>
</li>
{{/each}}
{{#each data.sante as |point key|}}
<li class="competence flexrow" data-attribute="{{key}}">
2020-05-28 23:36:09 +02:00
<span class="competence-label flexrow" name="data.attributs.{{key}}.label">{{point.label}} : {{point.value}} / {{point.max}}</span>
2020-05-24 20:19:57 +02:00
</li>
{{/each}}
</ol>
</div>
</div>
2020-05-22 00:48:43 +02:00
</div>
2020-05-24 20:19:57 +02:00
2020-05-22 00:48:43 +02:00
{{!-- Compétences Tab --}}
2020-05-22 19:28:01 +02:00
<div class="tab competences" data-group="primary" data-tab="competences">
2020-06-12 22:46:04 +02:00
<div class="grid grid-2col">
<div class="flex-group-left flexcol">
<header class="competence-header flexrow">
<span class="competence-title">Compétences de base</span>
</header>
<ol class="item-list">
{{#each data.competenceByCategory.generale as |comp key|}}
<li class="item flexrow" data-item-id="{{comp._id}}">
<img class="sheet-competence-img" src="{{comp.img}}"/>
<span class="competence-label" name="data.competenceByCategory.generale[{{key}}].name"><a>{{comp.name}}</a></span>
<input class="competence-value" type="text" name="data.competenceByCategory.generale[{{key}}].data.value" compname="{{comp.name}}" value="{{numberFormat comp.data.niveau decimals=0 sign=true}}" data-dtype="number"/>
<input class="competence-xp" type="text" name="data.competenceByCategory.generale[{{key}}]].data.xp" compname="{{comp.name}}" value="{{comp.data.xp}}" 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>
</li>
{{/each}}
</ol>
2020-05-22 19:28:01 +02:00
2020-06-12 22:46:04 +02:00
<header class="competences-header flexrow">
<span class="competence-title">Compétences Particulières</span>
</header>
<ol class="item-list">
{{#each data.competenceByCategory.particuliere as |comp key|}}
<li class="item flexrow" data-item-id="{{comp._id}}">
<img class="sheet-competence-img" src="{{comp.img}}"/>
<span class="competence-label" name="data.competenceByCategory.particuliere[{{key}}].name"><a>{{comp.name}}</a></span>
<input class="competence-value" type="text" name="data.competenceByCategory.particuliere[{{key}}].data.niveau" compname="{{comp.name}}" value="{{numberFormat comp.data.niveau decimals=0 sign=true}}" data-dtype="number"/>
<input class="competence-xp" type="text" name="data.competenceByCategory.particuliere[{{key}}].data.xp" compname="{{comp.name}}" value="{{comp.data.xp}}" 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>
</li>
{{/each}}
</ol>
</div>
<div class="flex-group-left flexcol">
2020-06-17 20:31:43 +02:00
<header class="competences-header flexrow">
<span class="competence-title">Compétences De Mêlée</span>
</header>
<ol class="item-list">
{{#each data.competenceByCategory.melee as |comp key|}}
<li class="item flexrow" data-item-id="{{comp._id}}">
<img class="sheet-competence-img" src="{{comp.img}}"/>
<span class="competence-label" name="data.competenceByCategory.melee[{{key}}].name"><a>{{comp.name}}</a></span>
<input class="competence-value" type="text" name="data.competenceByCategory.melee[{{key}}].data.niveau" compname="{{comp.name}}" value="{{numberFormat comp.data.niveau decimals=0 sign=true}}" data-dtype="number"/>
<input class="competence-xp" type="text" name="data.competenceByCategory.melee[{{key}}].data.xp" compname="{{comp.name}}" value="{{comp.data.xp}}" 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>
</li>
{{/each}}
</ol>
<header class="competences-header flexrow">
<span class="competence-title">Compétences De Tir</span>
</header>
<ol class="item-list">
{{#each data.competenceByCategory.tir as |comp key|}}
<li class="item flexrow" data-item-id="{{comp._id}}">
<img class="sheet-competence-img" src="{{comp.img}}"/>
<span class="competence-label" name="data.competenceByCategory.tir[{{key}}].name"><a>{{comp.name}}</a></span>
<input class="competence-value" type="text" name="data.competenceByCategory.tir[{{key}}].data.niveau" compname="{{comp.name}}" value="{{numberFormat comp.data.niveau decimals=0 sign=true}}" data-dtype="number"/>
<input class="competence-xp" type="text" name="data.competenceByCategory.tir[{{key}}].data.xp" compname="{{comp.name}}" value="{{comp.data.xp}}" 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>
</li>
{{/each}}
</ol>
<header class="competences-header flexrow">
<span class="competence-title">Compétences De Lancer</span>
</header>
<ol class="item-list">
{{#each data.competenceByCategory.lancer as |comp key|}}
<li class="item flexrow" data-item-id="{{comp._id}}">
<img class="sheet-competence-img" src="{{comp.img}}"/>
<span class="competence-label" name="data.competenceByCategory.lancer[{{key}}].name"><a>{{comp.name}}</a></span>
<input class="competence-value" type="text" name="data.competenceByCategory.lancer[{{key}}].data.niveau" compname="{{comp.name}}" value="{{numberFormat comp.data.niveau decimals=0 sign=true}}" data-dtype="number"/>
<input class="competence-xp" type="text" name="data.competenceByCategory.lancer[{{key}}].data.xp" compname="{{comp.name}}" value="{{comp.data.xp}}" 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>
</li>
{{/each}}
</ol>
2020-06-12 22:46:04 +02:00
<header class="competences-header flexrow">
<span class="competence-title">Compétences Spécialisées</span>
</header>
<ol class="item-list">
{{#each data.competenceByCategory.specialisee as |comp key|}}
<li class="item flexrow" data-item-id="{{comp._id}}">
<img class="sheet-competence-img" src="{{comp.img}}"/>
<span class="competence-label" name="data.competenceByCategory.specialisee[{{key}}].name"><a>{{comp.name}}</a></span>
<input class="competence-value" type="text" name="data.competenceByCategory.specialisee[{{key}}].data.niveau" compname="{{comp.name}}" value="{{numberFormat comp.data.niveau decimals=0 sign=true}}" data-dtype="number"/>
<input class="competence-xp" type="text" name="data.competenceByCategory.specialisee[{{key}}].data.xp" compname="{{comp.name}}" value="{{comp.data.xp}}" 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>
</li>
{{/each}}
</ol>
2020-05-22 19:28:01 +02:00
2020-06-12 22:46:04 +02:00
<header class="competence-header flexrow">
<span class="competence-title">Connaissances</span>
</header>
<ol class="item-list">
{{#each data.competenceByCategory.connaissance as |comp key|}}
<li class="item flexrow" data-item-id="{{comp._id}}">
<img class="sheet-competence-img" src="{{comp.img}}"/>
<span class="competence-label" name="data.competenceByCategory.connaissance[{{key}}].name"><a>{{comp.name}}</a></span>
<input class="competence-value" type="text" name="data.competenceByCategory.connaissance[{{key}}].data.niveau" compname="{{comp.name}}" value="{{numberFormat comp.data.niveau decimals=0 sign=true}}" data-dtype="number"/>
<input class="competence-xp" type="text" name="data.competenceByCategory.connaissance[{{key}}].data.xp" compname="{{comp.name}}" value="{{comp.data.xp}}" 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>
</li>
{{/each}}
</ol>
2020-05-22 19:28:01 +02:00
2020-06-12 22:46:04 +02:00
<header class="competences-header flexrow">
<span class="competence-title">Draconic</span>
</header>
<ol class="item-list">
{{#each data.competenceByCategory.draconic as |comp key|}}
<li class="item flexrow" data-item-id="{{comp._id}}">
<img class="sheet-competence-img" src="{{comp.img}}"/>
<span class="competence-label" name="data.competenceByCategory.draconic[{{key}}].name"><a>{{comp.name}}</a></span>
<input class="competence-value" type="text" name="data.competenceByCategory.draconic[{{key}}].data.niveau" compname="{{comp.name}}" value="{{numberFormat comp.data.niveau decimals=0 sign=true}}" data-dtype="number"/>
<input class="competence-xp" type="text" name="data.competenceByCategory.draconic[{{key}}].data.xp" compname="{{comp.name}}" value="{{comp.data.xp}}" 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>
</li>
{{/each}}
</ol>
</div>
</div>
2020-05-22 00:48:43 +02:00
</div>
2020-06-01 23:50:10 +02:00
{{!-- Combat Tab --}}
<div class="tab combat" data-group="primary" data-tab="combat">
<header class="competence-header flexrow">
2020-06-17 20:31:43 +02:00
<span class="competence-title">Armes</span>
2020-06-01 23:50:10 +02:00
<span class="competence-title">Niveau</span>
<span class="competence-title">XP</span>
</header>
<ol class="item-list">
2020-06-07 23:16:29 +02:00
{{#each data.armes as |arme key|}}
2020-06-12 22:46:04 +02:00
<li class="item flexrow" data-item-id="{{arme._id}}">
2020-06-07 23:16:29 +02:00
<span class="arme-label" name="data.armes[{{key}}].name"><a>{{arme.name}}</a></span>
<span class="competence-label" name="data.armes[{{key}}].data.competence">{{arme.data.competence}}</span>
<span class="competence-label" name="data.armes[{{key}}].data.niveau">{{numberFormat arme.data.niveau decimals=0 sign=true}}</span>
2020-06-10 08:23:58 +02:00
<span class="competence-label" name="data.armes[{{key}}].data.dommages">{{numberFormat arme.data.dommages decimals=0 sign=true}}</span>
2020-06-01 23:50:10 +02:00
</li>
{{/each}}
</ol>
</div>
2020-06-12 22:46:04 +02:00
{{!-- blessures Tab --}}
<div class="tab blessures" data-group="primary" data-tab="blessures" style="height:200px">
<span>Blessures Légeres :</span>
<div class="flexcol">
{{#each data.blessures.legeres.liste as |bless key|}}
<li class="item flexrow" data-attribute={{key}}>
2020-06-25 23:18:14 +02:00
{{#if bless.active}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
2020-06-12 22:46:04 +02:00
Premiers soins <input class="blessures-soins" type="text" name="data.blessures.legeres.liste[{{key}}].premiers_soins" data-dtype="number" value="{{bless.premiers_soins}}"/> -
Soins complets <input class="blessures-soins" type="text" name="data.blessures.legeres.liste[{{key}}].soins_complets" data-dtype="number" value="{{bless.soins_complets}}"/> -
Jours <input class="blessures-soins" type="text" name="data.blessures.legeres.liste[{{key}}].jours" data-dtype="number" value="{{bless.jours}}"/> -
Loc. <input class="blessures-loc" type="text" name="data.blessures.legeres.liste[{{key}}].localisation" data-dtype="String" value="{{bless.localisation}}"/>
</li>
{{/each}}
</div>
<span>Blessures Graves :</span>
<div>
{{#each data.blessures.graves.liste as |bless key|}}
<li class="item flexrow" data-attribute={{key}}>
2020-06-25 23:18:14 +02:00
<span> {{#if bless.active}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a> Premiers soins : {{bless.premiers_soins}} - Soins complets : {{bless.soins_complets}} - Nombre de jours : {{bless.jours}} - Localisation : {{bless.localisation}}</span>
2020-06-12 22:46:04 +02:00
</li>
{{/each}}
</div>
<span>Blessure Critique :</span>
<div>
{{#each data.blessures.critiques.liste as |bless key|}}
<li class="item flexrow" data-attribute={{key}}>
2020-06-25 23:18:14 +02:00
<span> {{#if bless.active}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a> Premiers soins : {{bless.premiers_soins}} - Soins complets : {{bless.soins_complets}} - Nombre de jours : {{bless.jours}} - Localisation : {{bless.localisation}}</span>
2020-06-12 22:46:04 +02:00
</li>
{{/each}}
</div>
</div>
{{!-- hautreve Tab --}}
<div class="tab hautreve" data-group="primary" data-tab="hautreve" style="height:200px">
2020-07-05 21:45:25 +02:00
<div>
2020-07-14 22:26:22 +02:00
<li class="item flexrow" >Points de Rêve actuels : <input class="pointsreve-value flexrow" type="text" name="data.reve.reve.value" value="{{data.reve.reve.value}}" data-dtype="Number"/></li>
<li class="item flexrow" >Position en TMR : {{data.reve.tmrpos.coord}}</li>
<li class="item flexrow" >Refoulement : {{data.reve.refoulement.value}}</li>
2020-07-14 22:19:29 +02:00
</div>
<div>
<span>Sorts:</span>
{{#each data.sorts as |mysort key|}}
<li class="item flexrow" data-attribute={{key}}>
<span class="sort-label"> <a data-id="{{mysort._id}}">{{mysort.name}}</a></span> <span>{{mysort.data.draconic}} - {{mysort.data.difficulte}}</span>
</li>
{{/each}}
</div>
2020-05-21 21:48:20 +02:00
</div>
2020-06-12 22:46:04 +02:00
{{!-- Equipment Tab --}}
2020-05-21 21:48:20 +02:00
<div class="tab items" data-group="primary" data-tab="items">
<ol class="item-list">
2020-06-23 23:34:12 +02:00
{{#each data.armes_seules as |item id|}}
2020-05-21 21:48:20 +02:00
<li class="item flexrow" data-item-id="{{item._id}}">
2020-06-23 23:34:12 +02:00
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
2020-05-21 21:48:20 +02:00
<h4 class="item-name">{{item.name}}</h4>
<div class="item-controls">
2020-06-23 23:34:12 +02:00
<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>
{{/each}}
</ol>
<ol class="item-list">
{{#each data.armures as |item id|}}
<li class="item flexrow" data-item-id="{{item._id}}">
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
<h4 class="item-name">{{item.name}}</h4>
<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>
2020-05-21 21:48:20 +02:00
</div>
</li>
{{/each}}
</ol>
</div>
2020-06-12 22:46:04 +02:00
{{!-- Biography Tab --}}
<div class="tab biography" data-group="primary" data-tab="description" style="height:200px">
{{editor content=data.biographie target="data.biographie" button=true owner=owner editable=editable}}
</div>
2020-05-21 21:48:20 +02:00
</section>
</form>