foundryvtt-shadows-over-sol/templates/actor-sheet.html

131 lines
5.9 KiB
HTML
Raw Normal View History

2021-01-18 16:11:27 +01:00
{{log "handlebar actor-sheet" this}}
<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">
<a class="item" data-tab="stats">Stats</a>
<a class="item" data-tab="skills">Skills</a>
<a class="item" data-tab="fight">Fight</a>
<a class="item" data-tab="gears">Gears</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="stats">
<div class="grid grid-2col">
<div class="flex-group-left flexcol">
<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>
<ul class="stat-list alternate-list">
{{#each data.stats as |stat key|}}
{{#if stat.isLevelUp}}
<li class="stat flexrow xp-level-up" data-attribute="{{key}}">
<span class="stat-label flexrow tooltip tooltip-nobottom" name="data.stat.{{key}}.label">
<span class="tooltiptext ttt-xp">
{{localize STAT.levelUp}}
</span>
{{else}}
<li class="stat flexrow list-item" data-attribute="{{key}}">
{{/if}}
<a name={{key}}>{{stat.label}}</a></span>
<input class="stat-value flexrow" type="text" name="data.stat.{{key}}.value" value="{{stat.value}}" data-dtype="Number" {{#unless @root.data.editStatSkill}}disabled{{/unless}} />
<input class="stat-xp flexrow" type="text" name="data.stat.{{key}}.xp" value="{{stat.xp}}" data-dtype="Number" {{#unless @root.data.editStatSkill}}disabled{{/unless}} />
</li>
{{/each}}
</ul>
</div>
</div>
</div>
{{!-- Skills Tab --}}
<div class="tab skills" data-group="primary" data-tab="skills">
<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>
</div>
{{!-- Fight Tab --}}
<div class="tab fight" data-group="primary" data-tab="fight">
<ul class="item-list alternate-list">
</ul>
</div>
{{!-- Gears Tab --}}
<div class="tab gears" data-group="primary" data-tab="gears">
<div class="flex-group-left flexcol competence-column">
</div>
</div>
{{!-- Biography Tab --}}
<div class="tab biography" data-group="primary" data-tab="description">
<article class="flexrow">
<ul class="item-list alternate-list">
<li class="item flexrow list-item">
<label class="description-label stat-label">Genre :
<input class="description-value flexrow" type="text" name="data.sex" value="{{data.sex}}" data-dtype="String"/>
</label>
</li>
<li class="item flexrow list-item">
<label class="description-label stat-label">Weight :
<input class="description-value flexrow" type="text" name="data.weight" value="{{data.weight}}" data-dtype="String"/>
</label>
</li>
<li class="item flexrow list-item">
<label class="description-label competence-label">Size :
<input class="description-value flexrow" type="text" name="data.taille" value="{{data.taille}}" data-dtype="String"/>
</label>
</li>
<li class="item flexrow list-item">
<label class="description-label competence-label">Hair :
<input class="description-value flexrow" type="text" name="data.hair" value="{{data.hair}}" data-dtype="String"/>
</label>
</li>
<li class="item flexrow list-item">
<label class="description-label competence-label">Eyes :
<input class="description-value flexrow" type="text" name="data.eyes" value="{{data.eyes}}" data-dtype="String"/>
</label>
</li>
</ul>
<ul class="item-list alterne-list">
<li class="item flexrow list-item">
<label class="description-label competence-label">Age :
<input class="description-value flexrow" type="text" name="data.age" value="{{data.age}}" data-dtype="String"/>
</label>
</li>
</ul>
</article>
<article class="flexcol">
<h3>Biography : </h3>
<div class="form-group editor">
{{editor content=data.biography target="data.biography" button=true owner=owner editable=editable}}
</div>
<h3>Notes : </h3>
<div class="form-group editor">
{{editor content=data.notes target="data.notes" button=true owner=owner editable=editable}}
</div>
{{>"systems/foundryvtt-shadows-over-sol/templates/editor-notes-gm.html"}}
</article>
</div>
</section>
</form>