Add module data path

This commit is contained in:
2023-01-25 16:46:32 +01:00
parent 00c8ae8f85
commit 8e37ccb631
5 changed files with 57 additions and 7 deletions

View File

@@ -15,7 +15,23 @@
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
TODO : The tre of module choices will be displayed here for players, with the "selected" option only
<div class="flexcol">
{{#each system.levels as |level index|}}
<div class="flexrow flex-center">
{{#each level.choices as |choice choiceIndex|}}
<span class="module-level-box {{#if choice.selected}}color-selected{{/if}}">
<ul>
{{#each choice.features as |feature id|}}
<li>{{feature.name}}</li>
{{/each}}
</ul>
</span>
{{/each}}
</div>
{{/each}}
</div>
</div>
{{#if isGM}}
@@ -26,7 +42,10 @@
{{#each system.levels as |level index|}}
<hr>
<li class="flexrow">
<h2 class="item-field-label-long">Level {{add index 1}}</h2>
<h2 class="item-field-label-long">Level {{add index 1}}</h2>
<span class="item-field-label-short">
<a class="item-control module-level-delete" data-level-index="{{index}}" title="Delete Level"><i class="fas fa-trash"></i></a>
</span>
</li>
<ul class="ul-level1">

View File

@@ -41,10 +41,13 @@
</li>
{{/if}}
<!--
<li class="flexrow">
<label class="item-field-label-long">Selected</label>
<input type="checkbox" class="item-field-label-short" name="system.selected" {{checked system.selected}} />
</li>
-->
</ul>
</div>
</div>