6b31e81c72
+ utilisation de l'Item de l'actor plutôt qu'une copie + extraction fonction pour diminuer la quantité d'un item
37 lines
1.0 KiB
HTML
37 lines
1.0 KiB
HTML
<div class="post-item" data-transfer="{{transfer}}">
|
|
<h3><b>{{name}}</b></h3>
|
|
{{#if img}}
|
|
<img src="{{img}}" title="{{name}}" />
|
|
{{/if}}
|
|
|
|
<p class="card-content">{{{data.description}}}</p>
|
|
<p>
|
|
{{#each properties as |property p|}}
|
|
<span>{{{property}}}</span><br>
|
|
{{/each}}
|
|
{{#if (or postQuantity postPrice)}}
|
|
<span>
|
|
{{#if postQuantity}}
|
|
<b>Quantité: </b> <span class="postQuantity">{{postQuantity}}</span>
|
|
{{/if}}
|
|
{{#if postPrice}}
|
|
<b>Prix: </b> <span class="postPrice">{{postPrice}} Sols</span><br>
|
|
{{/if}}
|
|
</span>
|
|
{{/if}}
|
|
{{#if finalPrice}}
|
|
<span>
|
|
<b>Prix Total: </b> <span class="postPrice">{{finalPrice}} Sols</span><br>
|
|
</span>
|
|
{{/if}}
|
|
</p>
|
|
|
|
{{#if hasPrice}}
|
|
<span class="chat-card-button-area">
|
|
<a class='payer-button chat-card-button market-button' data-jsondata='{{jsondata}}'
|
|
data-somme-denier="{{data.cout_deniers_total}}" data-quantite="{{data.quantite}}">Payer</a>
|
|
</span>
|
|
{{/if}}
|
|
|
|
</div>
|