This commit is contained in:
@@ -150,6 +150,9 @@
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canReset}}
|
||||
<button type="button" data-action="resetUsage" aria-label="Reinitialiser {{this.name}}" title="Reinitialiser"><i class="fa-solid fa-arrow-rotate-left"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
@@ -212,47 +215,6 @@
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<section class="sheet-card item-section">
|
||||
<header class="section-header">
|
||||
<h2>{{capacitySection.label}}</h2>
|
||||
<button type="button" class="text-button" data-action="createItem" data-type="{{capacitySection.createType}}">+ Ajouter</button>
|
||||
</header>
|
||||
<div class="item-list">
|
||||
{{#if capacitySection.items.length}}
|
||||
{{#each capacitySection.items}}
|
||||
<article class="item" data-item-id="{{this.id}}">
|
||||
<img src="{{this.img}}" alt="{{this.name}}">
|
||||
<div class="item-main">
|
||||
<div class="item-title-row">
|
||||
<strong>{{this.name}}</strong>
|
||||
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
|
||||
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
|
||||
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
{{#if this.canRoll}}
|
||||
<button type="button" data-action="{{this.rollAction}}" aria-label="Lancer {{this.name}}" title="Lancer {{this.name}}"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canRollDamage}}
|
||||
<button type="button" data-action="rollDamage" aria-label="Lancer les degats de {{this.name}}" title="Lancer les degats"><i class="fa-solid fa-burst"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</article>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<div class="item-dropzone {{#if capacitySection.items.length}}has-items{{/if}}" data-item-type="{{capacitySection.createType}}">
|
||||
Glissez-deposez ici les {{capacitySection.label}}.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section class="sheet-column">
|
||||
<section class="sheet-card item-section">
|
||||
@@ -284,6 +246,9 @@
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canReset}}
|
||||
<button type="button" data-action="resetUsage" aria-label="Reinitialiser {{this.name}}" title="Reinitialiser"><i class="fa-solid fa-arrow-rotate-left"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
@@ -296,6 +261,50 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="sheet-card item-section">
|
||||
<header class="section-header">
|
||||
<h2>{{capacitySection.label}}</h2>
|
||||
<button type="button" class="text-button" data-action="createItem" data-type="{{capacitySection.createType}}">+ Ajouter</button>
|
||||
</header>
|
||||
<div class="item-list">
|
||||
{{#if capacitySection.items.length}}
|
||||
{{#each capacitySection.items}}
|
||||
<article class="item" data-item-id="{{this.id}}">
|
||||
<img src="{{this.img}}" alt="{{this.name}}">
|
||||
<div class="item-main">
|
||||
<div class="item-title-row">
|
||||
<strong>{{this.name}}</strong>
|
||||
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
|
||||
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
|
||||
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
{{#if this.canRoll}}
|
||||
<button type="button" data-action="{{this.rollAction}}" aria-label="Lancer {{this.name}}" title="Lancer {{this.name}}"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canRollDamage}}
|
||||
<button type="button" data-action="rollDamage" aria-label="Lancer les degats de {{this.name}}" title="Lancer les degats"><i class="fa-solid fa-burst"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canReset}}
|
||||
<button type="button" data-action="resetUsage" aria-label="Reinitialiser {{this.name}}" title="Reinitialiser"><i class="fa-solid fa-arrow-rotate-left"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</article>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<div class="item-dropzone {{#if capacitySection.items.length}}has-items{{/if}}" data-item-type="{{capacitySection.createType}}">
|
||||
Glissez-deposez ici les {{capacitySection.label}}.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
@@ -398,6 +407,9 @@
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canReset}}
|
||||
<button type="button" data-action="resetUsage" aria-label="Reinitialiser {{this.name}}" title="Reinitialiser"><i class="fa-solid fa-arrow-rotate-left"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
|
||||
Reference in New Issue
Block a user