2022-11-03 21:18:54 +01:00
|
|
|
<form class="{{cssClass}}" autocomplete="off">
|
|
|
|
<header class="sheet-header">
|
|
|
|
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
|
|
|
<div class="header-fields">
|
|
|
|
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
2022-11-15 20:39:05 +01:00
|
|
|
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs builder=true}}
|
2022-11-03 21:18:54 +01:00
|
|
|
|
|
|
|
|
|
|
|
{{!-- Sheet Body --}}
|
|
|
|
<section class="sheet-body">
|
|
|
|
|
|
|
|
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
|
2022-11-15 20:39:05 +01:00
|
|
|
|
2022-11-03 21:18:54 +01:00
|
|
|
<div class="tab details" data-group="primary" data-tab="details">
|
2022-11-15 20:39:05 +01:00
|
|
|
TODO : The tre of module choices will be displayed here for players, with the "selected" option only
|
|
|
|
</div>
|
2022-11-03 21:18:54 +01:00
|
|
|
|
2022-11-15 20:39:05 +01:00
|
|
|
{{#if isGM}}
|
|
|
|
<div class="tab builder" data-group="primary" data-tab="builder">
|
2022-11-09 20:09:50 +01:00
|
|
|
|
2022-11-15 20:39:05 +01:00
|
|
|
<div class="tab" data-group="primary">
|
|
|
|
<ul>
|
|
|
|
{{#each system.levels as |level index|}}
|
|
|
|
<hr>
|
|
|
|
<li class="flexrow">
|
|
|
|
<h2 class="item-field-label-long">Level {{add index 1}}</h2>
|
2022-11-09 20:09:50 +01:00
|
|
|
</li>
|
2022-11-15 20:39:05 +01:00
|
|
|
|
|
|
|
<ul class="ul-level1">
|
|
|
|
{{#each level.choices as |choice choiceIndex|}}
|
|
|
|
<li class="">
|
2022-11-15 21:39:08 +01:00
|
|
|
<h3 class="item-field-label-long">Level choice {{add choiceIndex 1}}</h3>
|
|
|
|
</li>
|
|
|
|
<li class="item flexrow" data-level-index="{{@../index}}" data-choice-index="{{choiceIndex}}">
|
|
|
|
<div class="drop-module-step">
|
|
|
|
<label>Drop traits/actions/... here !</label>
|
2022-11-15 20:39:05 +01:00
|
|
|
</div>
|
|
|
|
<span class="item-field-label-short"> </span>
|
|
|
|
<label class="item-field-label-short">Selected</label>
|
|
|
|
<input type="checkbox" class="item-field-label-short choice-level-selected" {{checked choice.selected}} />
|
|
|
|
</li>
|
|
|
|
{{#each choice.features as |feature id|}}
|
2022-11-15 21:39:08 +01:00
|
|
|
<li class="flexrow item" data-level-index="{{@../../index}}" data-choice-index="{{choiceIndex}}" data-feature-id="{{feature._id}}" >
|
2022-11-15 20:39:05 +01:00
|
|
|
<label class="item-field-label-medium">{{feature.name}}</label>
|
|
|
|
<label class="item-field-label-long2">{{{feature.descriptionHTML}}}</label>
|
|
|
|
<div class="item-controls item-controls-fixed">
|
|
|
|
<a class="item-control module-feature-delete" title="Delete Feature"><i class="fas fa-trash"></i></a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2022-11-09 20:09:50 +01:00
|
|
|
{{/each}}
|
|
|
|
|
2022-11-15 20:39:05 +01:00
|
|
|
<li class="flexrow item">
|
|
|
|
<button class="chat-card-button add-module-level">Add a level</button>
|
|
|
|
</li>
|
2022-11-03 21:18:54 +01:00
|
|
|
|
2022-11-15 20:39:05 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-11-09 20:09:50 +01:00
|
|
|
|
2022-11-03 21:18:54 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
</form>
|