Les rencontres sont configurables #572

Merged
uberwald merged 17 commits from VincentVk/foundryvtt-reve-de-dragon:v10 into v10 2022-11-10 07:24:52 +01:00
2 changed files with 20 additions and 0 deletions
Showing only changes of commit d724e9eb17 - Show all commits

View File

@ -416,6 +416,7 @@ export class RdDUtility {
RdDUtility.filterEquipementParType(formData, itemTypes);
formData.sorts = this.arrayOrEmpty(itemTypes['sort']);
formData.rencontres = this.arrayOrEmpty(itemTypes['rencontre']);
formData.casestmr = this.arrayOrEmpty(itemTypes['casetmr']);
formData.signesdraconiques = this.arrayOrEmpty(itemTypes['signedraconique']);
formData.queues = this.arrayOrEmpty(itemTypes['queue']);

View File

@ -15,3 +15,22 @@
{{/each}}
</ul>
{{/if}}
{{#if rencontres.length}}
<h3>Rencontres en attente dans les TMR</h3>
<ul class="item-list">
{{#each rencontres as |rencontre key|}}
<li class="item flexrow" data-item-id="{{rencontre._id}}" data-attribute="{{key}}">
<img class="sheet-competence-img" src="{{rencontre.img}}" />
<span class="display-label"><a>{{rencontre.name}} r{{rencontre.system.force}}</a></span>
<span class="flex-shrink">{{rencontre.system.coord}} - {{caseTmr-label rencontre.system.coord}}</span>
{{#if rencontre.system.date}}
<span class="flex-shrink">{{upperFirst rencontre.system.heure}}, le {{rencontre.system.date}}</span>
{{/if}}
<div class="item-controls flex-shrink">
<a class="item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
{{/if}}