Affichage des Items rencontres sur Actor

This commit is contained in:
Vincent Vandemeulebrouck 2022-11-07 19:58:35 +01:00
parent 2106e6ebef
commit d724e9eb17
2 changed files with 20 additions and 0 deletions

View File

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

View File

@ -15,3 +15,22 @@
{{/each}} {{/each}}
</ul> </ul>
{{/if}} {{/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}}