230 lines
14 KiB
HTML
230 lines
14 KiB
HTML
<form class="{{cssClass}}" autocomplete="off">
|
|
|
|
{{!-- 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">
|
|
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
|
|
<div class="flexrow">
|
|
<div class="flex-group-center">
|
|
Vie <a id="vie-plus">+</a> / <a id="vie-moins">-</a>
|
|
<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 class="flex-group-center">
|
|
Endurance <a id="endurance-plus">+</a> / <a id="endurance-moins">-</a>
|
|
<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 class="flex-group-center flex-fatigue">
|
|
Fatigue <a id="fatigue-plus">+</a> / <a id="fatigue-moins">-</a>
|
|
<span>{{{data.fatigueHTML}}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="flexrow">
|
|
{{#each data.compteurs as |compteur key|}}
|
|
<div class="flexcol flex-group-center">
|
|
{{compteur.label}} : {{compteur.value}}
|
|
</div>
|
|
{{/each}}
|
|
</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="combat">Combat</a>
|
|
<a class="item" data-tab="description">Description</a>
|
|
<a class="item" data-tab="items">Items</a>
|
|
<a class="item" data-tab="attributes">Attributes</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">
|
|
{{#each data.carac as |carac key|}}
|
|
<li class="competence flexrow" data-attribute="{{key}}">
|
|
<span class="competence-label flexrow" name="data.carac.{{key}}.label">{{carac.label}}</span>
|
|
{{#if carac.derivee}}
|
|
<label class="competence-value flexrow">{{carac.value}}</label>
|
|
{{else}}
|
|
<input class="carac-value flexrow" type="text" name="data.carac.{{key}}.value" value="{{carac.value}}" data-dtype="{{carac.type}}"/>
|
|
<input class="carac-xp flexrow" type="text" name="data.carac.{{key}}.xp" value="{{carac.xp}}" data-dtype="number"/>
|
|
{{/if}}
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
</div>
|
|
<div class="flex-group-left flexcol" >
|
|
<ol class="carac-list">
|
|
{{#each data.attributs as |attr key|}}
|
|
<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}}">
|
|
<span class="competence-label flexrow" name="data.attributs.{{key}}.label">{{point.label}} : {{point.value}} / {{point.max}}</span>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{!-- Compétences Tab --}}
|
|
<div class="tab competences" data-group="primary" data-tab="competences">
|
|
<header class="competence-header flexrow">
|
|
<span class="competence-title">Compétences de base</span>
|
|
<span class="competence-title">Niveau</span>
|
|
<span class="competence-title">XP</span>
|
|
</header>
|
|
<ol class="item-list">
|
|
{{#each data.competenceByCategory.generale as |comp key|}}
|
|
<li class="item flexrow" data-attribute="{{key}}">
|
|
<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"/>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
|
|
<header class="competences-header flexrow">
|
|
<span class="competence-title">Compétences Particulières</span>
|
|
<span class="competence-title">Niveau</span>
|
|
<span class="competence-title">XP</span>
|
|
</header>
|
|
<ol class="item-list">
|
|
{{#each data.competenceByCategory.particuliere as |comp key|}}
|
|
<li class="item flexrow" data-attribute="{{key}}">
|
|
<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"/>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
|
|
<header class="competences-header flexrow">
|
|
<span class="competence-title">Compétences Spécialisées</span>
|
|
<span class="competence-title">Niveau</span>
|
|
<span class="competence-title">XP</span>
|
|
</header>
|
|
<ol class="item-list">
|
|
{{#each data.competenceByCategory.specialisee as |comp key|}}
|
|
<li class="item flexrow" data-attribute="{{key}}">
|
|
<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"/>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
|
|
<header class="competence-header flexrow">
|
|
<span class="competence-title">Connaissances</span>
|
|
<span class="competence-title">Niveau</span>
|
|
<span class="competence-title">XP</span>
|
|
</header>
|
|
<ol class="item-list">
|
|
{{#each data.competenceByCategory.connaissance as |comp key|}}
|
|
<li class="item flexrow" data-attribute="{{key}}">
|
|
<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"/>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
|
|
<header class="competences-header flexrow">
|
|
<span class="competence-title">Draconic</span>
|
|
<span class="competence-title">Niveau</span>
|
|
<span class="competence-title">XP</span>
|
|
</header>
|
|
<ol class="item-list">
|
|
{{#each data.competenceByCategory.draconic as |comp key|}}
|
|
<li class="item flexrow" data-attribute="{{key}}">
|
|
<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"/>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
{{!-- Combat Tab --}}
|
|
<div class="tab combat" data-group="primary" data-tab="combat">
|
|
<header class="competence-header flexrow">
|
|
<span class="competence-title">Compétences de Mêlée</span>
|
|
<span class="competence-title">Niveau</span>
|
|
<span class="competence-title">XP</span>
|
|
</header>
|
|
<ol class="item-list">
|
|
{{#each data.armes as |arme key|}}
|
|
<li class="item flexrow" data-attribute="{{key}}">
|
|
<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>
|
|
<span class="competence-label" name="data.armes[{{key}}].data.dommages">{{numberFormat arme.data.dommages decimals=0 sign=true}}</span>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
<header class="competence-header flexrow">
|
|
<span class="competence-title">Compétences de Tir</span>
|
|
<span class="competence-title">Niveau</span>
|
|
<span class="competence-title">XP</span>
|
|
</header>
|
|
<ol class="item-list">
|
|
{{#each data.competenceByCategory.tir as |comp key|}}
|
|
<li class="item flexrow" data-attribute="{{key}}">
|
|
<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"/>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
<header class="competence-header flexrow">
|
|
<span class="competence-title">Compétences de Lancer</span>
|
|
<span class="competence-title">Niveau</span>
|
|
<span class="competence-title">XP</span>
|
|
</header>
|
|
<ol class="item-list">
|
|
{{#each data.competenceByCategory.lancer as |comp key|}}
|
|
<li class="item flexrow" data-attribute="{{key}}">
|
|
<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"/>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
</div>
|
|
|
|
{{!-- 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>
|
|
|
|
{{!-- Owned Items Tab --}}
|
|
<div class="tab items" data-group="primary" data-tab="items">
|
|
<ol class="item-list">
|
|
{{#each actor.items as |item id|}}
|
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
|
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24"/>
|
|
<h4 class="item-name">{{item.name}}</h4>
|
|
<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>
|
|
|
|
</section>
|
|
</form>
|
|
|