fvtt-vadentis/templates/actor-sheet.html

254 lines
13 KiB
HTML
Raw Normal View History

2021-04-01 22:53:27 +02:00
<form class="{{cssClass}}" autocomplete="off">
{{!-- Sheet Header --}}
<header class="sheet-header">
<div class="header-fields">
<div class="flexrow">
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" />
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
</div>
</div>
</header>
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
2021-04-02 14:59:58 +02:00
<a class="item" data-tab="principal">Principal</a>
2021-04-01 22:53:27 +02:00
<a class="item" data-tab="competences">Compétences</a>
<a class="item" data-tab="sorts">Sorts</a>
<a class="item" data-tab="equpement">Equipement</a>
<a class="item" data-tab="description">Description</a>
</nav>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Carac Tab --}}
2021-04-02 14:59:58 +02:00
<div class="tab items" data-group="primary" data-tab="principal">
2021-04-01 22:53:27 +02:00
<div class="grid grid-2col">
<div class="flex-group-left flexcol">
2021-04-02 14:59:58 +02:00
<span class="generic-label">Données</span>
<ul>
{{#each donnees as |donnee key|}}
<li class="stat flexrow list-item" data-attribute="{{key}}">
<span class="stat-label flexrow tooltip tooltip-nobottom" name="donnee.name">{{donnee.name}}</span>
</li>
{{/each}}
</ul>
<span class="generic-label">Eglise</span>
<ul>
{{#each donnees as |donnee key|}}
<li class="stat flexrow list-item" data-attribute="{{key}}">
<span class="stat-label flexrow tooltip tooltip-nobottom" name="donnee.name">{{donnee.name}}</span>
</li>
{{/each}}
</ul>
2021-04-01 22:53:27 +02:00
<span><a class="lock-unlock-sheet"><img class="small-button-container"
src="systems/foundryvtt-vadentis/images/icons/{{#if editScore}}unlocked.svg{{else}}locked.svg{{/if}}" alt="Editable/Vérouillé"
>{{#if editScore}}Editable{{else}}Vérouillé{{/if}}</a></span>
<ul class="stat-list alternate-list">
<li class="stat flexrow" >
2021-04-02 14:59:58 +02:00
<li class="stat flexrow" >
<span class="generic-label flexrow tooltip tooltip-nobottom" name="statlabel">Désignation</span>
<span class="generic-label flexrow tooltip tooltip-nobottom" name="statlabel">Valeur</span>
<span class="generic-label flexrow tooltip tooltip-nobottom" name="statlabel">Max</span>
2021-04-01 22:53:27 +02:00
</li>
{{#each data.stats as |stat key|}}
<li class="stat flexrow list-item" data-attribute="{{key}}">
2021-04-02 14:59:58 +02:00
<span class="stat-label flexrow tooltip tooltip-nobottom" name="data.stats.{{key}}.label">{{stat.label}}</span>
2021-04-01 22:53:27 +02:00
<select class="stat-value flexrow" type="text" name="data.stats.{{key}}.value" value="{{stat.value}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select stat.value}}
{{>"systems/foundryvtt-vadentis/templates/score-option-list.html"}}
{{/select}}
</select>
2021-04-02 14:59:58 +02:00
<select class="stat-value flexrow" type="text" name="data.stats.{{key}}.max" value="{{stat.max}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select stat.max}}
{{>"systems/foundryvtt-vadentis/templates/score-option-list.html"}}
{{/select}}
</select>
2021-04-01 22:53:27 +02:00
</li>
{{/each}}
</ul>
</div>
<div class="flex-group-left flexcol">
<ul class="stat-list alternate-list">
<li class="stat flexrow" >
2021-04-02 14:59:58 +02:00
<span class="generic-label flexrow tooltip tooltip-nobottom" name="statlabel">Désignation</span>
2021-04-01 22:53:27 +02:00
<span class="generic-label flexrow tooltip tooltip-nobottom" name="statlabel">Valeur</span>
<span class="generic-label flexrow tooltip tooltip-nobottom" name="statlabel">Bonus</span>
<span class="generic-label flexrow tooltip tooltip-nobottom" name="statlabel">Malus</span>
</li>
{{#each data.combat as |combat key|}}
<li class="stat flexrow list-item" data-attribute="{{key}}">
2021-04-02 14:59:58 +02:00
<span class="stat-label combat-label flexrow tooltip tooltip-nobottom" name="data.combat.{{key}}.label"><a name="{{key}}">{{combat.label}}</a></span>
2021-04-01 22:53:27 +02:00
<select class="stat-value flexrow" type="text" name="data.combat.{{key}}.base" value="{{combat.base}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select combat.base}}
{{>"systems/foundryvtt-vadentis/templates/score-option-list.html"}}
{{/select}}
</select>
<select class="stat-value flexrow" type="text" name="data.combat.{{key}}.malus" value="{{combat.malus}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select combat.malus}}
{{>"systems/foundryvtt-vadentis/templates/malus-option-list.html"}}
{{/select}}
</select>
<select class="stat-value flexrow" type="text" name="data.combat.{{key}}.bonus" value="{{combat.bonus}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select combat.bonus}}
{{>"systems/foundryvtt-vadentis/templates/bonus-option-list.html"}}
{{/select}}
</select>
</li>
{{/each}}
</ul>
</div>
</div>
</div>
{{!-- Skills Tab --}}
<div class="tab competences" data-group="primary" data-tab="competences">
<div class="flexrow">
<span><a class="lock-unlock-sheet"><img class="small-button-container"
src="systems/foundryvtt-shadows-over-sol/img/icons/{{#if data.editStatSkill}}unlocked.svg{{else}}locked.svg{{/if}}" alt="lock/unlock"
>{{#if data.editStatSkill}}Lock{{else}}Unlock{{/if}}</a></span>
</div>
<span class="generic-label">Compétences</span>
<div class="grid grid-2col">
<ul class="item-list alterne-list">
2021-04-02 14:59:58 +02:00
{{#each competences as |competence key|}}
<li class="item flexrow list-item" data-item-id="{{competence._id}}">
<img class="sheet-competence-img" src="{{competence.img}}"/>
<span class="competence-label"><a>{{competence.name}}</a></span>
<select class="competence-base flexrow" type="text" skillname="{{competence.name}}" value="{{competence.data.base}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select competence.data.base}}
{{>"systems/foundryvtt-vadentis/templates/score-option-list.html"}}
{{/select}}
</select>
<input class="competence-malus" type="text" skillname="{{competence.name}}" value="{{competence.data.malus}}" data-dtype="number" {{#unless @root.data.editStatSkill}}disabled{{/unless}}/>
<input class="competence-bonus" type="text" skillname="{{competence.name}}" value="{{competence.data.bonus}}" data-dtype="number" {{#unless @root.data.editStatSkill}}disabled{{/unless}}/>
2021-04-01 22:53:27 +02:00
<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}}
</ul>
</div>
</div>
{{!-- Sort Tab --}}
<div class="tab sorts" data-group="primary" data-tab="sorts">
2021-04-02 16:47:38 +02:00
<div class="flexcol">
<span class="generic-label">Sorts</span>
<ul class="item-list alterne-list">
{{#each sorts as |sort key|}}
<li class="item flexrow list-item" data-item-id="{{sort._id}}">
<img class="sheet-competence-img" src="{{sort.img}}"/>
<span class="sort-label"><a>{{sort.name}}</a></span>
<span class="sort-difficulty"><a>{{sort.data.difficulty}}</a></span>
<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}}
</ul>
<span class="generic-label">Dévotions</span>
<ul class="item-list alterne-list">
{{#each devotions as |devotion key|}}
<li class="item flexrow list-item" data-item-id="{{devotion._id}}">
<img class="sheet-competence-img" src="{{devotion.img}}"/>
<span class="devotion-label"><a>{{devotion.name}}</a></span>
<span class="sort-difficulty"><a>{{devotion.data.difficulty}}</a></span>
<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}}
</ul>
2021-04-01 22:53:27 +02:00
</div>
2021-04-02 16:47:38 +02:00
2021-04-01 22:53:27 +02:00
</div>
{{!-- Equipeme,t Tab --}}
<div class="tab equipement" data-group="primary" data-tab="equipement">
<div><h4>Armes</h4></div>
<ul class="item-list alternate-list">
{{#each data.weapons as |weapon key|}}
<li class="item flexrow list-item" data-item-id="{{weapon._id}}">
<img class="sheet-skill-img" src="{{weapon.img}}"/>
<span class="weapon-label"><a>{{weapon.name}}</a></span>
<div class="item-controls">
<a class="item-control item-equip" title="Equipped">{{#if weapon.data.equiped}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
<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}}
</ul>
<div><h4>Armures</h4></div>
<ul class="item-list alternate-list">
{{#each data.armors as |armor key|}}
<li class="item flexrow list-item" data-item-id="{{armor._id}}">
<img class="sheet-skill-img" src="{{armor.img}}"/>
<span class="armor-label">{{armor.name}}</span>
<div class="item-controls">
<a class="item-control item-worn" title="Worn">{{#if armor.data.worn}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
<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}}
</ul>
<div><h4>Equipement</h4></div>
<ul class="item-list alternate-list">
{{#each data.gearsRoot as |gear key|}}
<li class="item flexrow list-item" data-item-id="{{gear._id}}">
<img class="sheet-skill-img" src="{{gear.img}}"/>
<span class="conseq-label">{{gear.name}}</span>
<div class="item-controls">
<a class="item-control item-equip" title="Worn">{{#if armor.data.worn}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
<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}}
</ul>
</div>
{{!-- Biography Tab --}}
<div class="tab description" data-group="primary" data-tab="description">
<article class="flexrow">
<ul class="item-list alternate-list">
</ul>
</article>
<hr>
<article class="flexcol">
<hr>
<h3>Biography : </h3>
<div class="form-group editor">
{{editor content=data.history target="data.history" button=true owner=owner editable=editable}}
</div>
<hr>
<h3>Notes : </h3>
<div class="form-group editor">
{{editor content=data.notes target="data.notes" button=true owner=owner editable=editable}}
</div>
<hr>
{{>"systems/foundryvtt-vadentis/templates/editor-notes-gm.html"}}
</article>
</div>
</section>
</form>