80 lines
3.6 KiB
HTML
80 lines
3.6 KiB
HTML
<form class="{{cssClass}}" autocomplete="off">
|
|
<header class="sheet-header">
|
|
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
|
<div class="header-fields">
|
|
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
|
|
</div>
|
|
</header>
|
|
{{!-- Sheet Body --}}
|
|
<section class="sheet-body">
|
|
{{!-- Sheet Tab Navigation --}}
|
|
<nav class="sheet-tabs tabs" data-group="primary">
|
|
<a class="item" data-tab="description">Description</a>
|
|
<a class="item" data-tab="attributes">Attributes</a>
|
|
</nav>
|
|
{{!-- Description Tab --}}
|
|
<article class="tab flexcol" data-group="primary" data-tab="description">
|
|
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
|
</article>
|
|
{{!-- Attributes Tab --}}
|
|
<article class="tab attributes" data-group="primary" data-tab="attributes">
|
|
<!-- TODO j'ai mis tous les attributs en vrac, à réorganiser -->
|
|
|
|
<div>
|
|
<select name="data.advancement_type">
|
|
{{#select item.data.advancement_type}}
|
|
{{#each item.data.subTypesList as |type|}}
|
|
<option value="{{type}}">{{type}}</option>
|
|
{{/each}}
|
|
{{/select}}
|
|
</select>
|
|
|
|
{{#ifCond item.data.advancement_type '==' 'advantage' }}
|
|
<!-- TODO zone de drag n drop de l'item sélectionné ? -->
|
|
{{/ifCond}}
|
|
|
|
{{#ifCond item.data.advancement_type '==' 'ring' }}
|
|
<select name="data.ring">
|
|
{{#select item.data.ring}}
|
|
{{#each item.data.ringsList as |obj|}}
|
|
<option value="{{obj.id}}">{{obj.label}}</option>
|
|
{{/each}}
|
|
{{/select}}
|
|
</select>
|
|
{{/ifCond}}
|
|
|
|
{{#ifCond item.data.advancement_type '==' 'skill' }}
|
|
<select name="data.skill">
|
|
<option value="none">{{localize 'l5r5e.twenty_questions.choosef'}}</option>
|
|
{{#select item.data.skill}}
|
|
{{#each item.data.skillsList as |skills catId|}}
|
|
<optgroup label="{{localizeSkill catId 'title'}}">
|
|
{{#each skills as |obj|}}
|
|
<option value="{{obj.id}}">{{obj.label}}</option>
|
|
{{/each}}
|
|
</optgroup>
|
|
{{/each}}
|
|
{{/select}}
|
|
</select>
|
|
{{/ifCond}}
|
|
</div>
|
|
|
|
<label class="attribute-value checkbox">
|
|
<input type="checkbox" name="data.in_curriculum" {{checked item.data.in_curriculum}} />
|
|
in curriculum
|
|
</label>
|
|
<label class="attribute">
|
|
{{ localize 'l5r5e.advancements.spent' }}
|
|
<input type="text" name="data.xp_used" value="{{data.xp_used}}" data-dtype="Number" placeholder="0"/>
|
|
</label>
|
|
<label class="attribute">
|
|
{{ localize 'l5r5e.rank' }}
|
|
<input type="text" name="data.rank" value="{{data.rank}}" data-dtype="Number" placeholder="0"/>
|
|
</label>
|
|
<label class="attribute">
|
|
{{ localize 'l5r5e.bought_at_rank' }}
|
|
<input type="text" name="data.bought_at_rank" value="{{data.bought_at_rank}}" data-dtype="Number" placeholder="0"/>
|
|
</label>
|
|
</article>
|
|
</section>
|
|
</form> |