foundryvtt-reve-de-dragon/templates/chat-vente-item.html

37 lines
1.3 KiB
HTML
Raw Normal View History

2021-05-07 17:27:02 +02:00
<div class="post-item" data-transfer="{{transfer}}">
2021-05-27 01:10:05 +02:00
<h3>{{#if alias}}{{alias}} propose: {{else}}Acheter {{/if}}{{item.name}}</h3>
2021-05-07 17:27:02 +02:00
{{#if item.img}}
<img src="{{item.img}}" title="{{item.name}}" />
{{/if}}
<div class="poesie-extrait poesie-overflow card-content">{{{item.data.description}}}</div>
2021-05-07 17:27:02 +02:00
<p>
{{#each properties as |property p|}}
<span>{{{property}}}</span><br>
{{/each}}
</p>
<hr>
<p>
{{#unless quantiteIllimite}}
<span>Lots disponibles: <span class="quantiteNbLots">{{quantiteNbLots}}</span></span><br>
{{/unless}}
{{#if (gt tailleLot 1)}}
<span>Lots de: <span class="tailleLot">{{tailleLot}}</span></span><br>
{{/if}}
2021-06-14 23:46:57 +02:00
{{#if (ne prixLot 0)}}
2021-05-07 17:27:02 +02:00
<span><strong>Prix {{#if (gt tailleLot 1)}}du lot {{else}}unitaire{{/if}}:
<span class="prixLot">{{prixLot}}</span> Sols</strong></span><br>
{{/if}}
</p>
<span class="chat-card-button-area">
<a class="button-acheter chat-card-button"
data-jsondata='{{jsondata}}'
{{#if vendeurId}}data-vendeurId='{{vendeurId}}'{{/if}}
2021-05-07 17:27:02 +02:00
data-tailleLot="{{tailleLot}}"
data-quantiteNbLots="{{quantiteNbLots}}"
data-quantiteIllimite="{{#if quantiteIllimite}}true{{else}}false{{/if}}"
data-prixLot="{{prixLot}}">
2021-06-14 23:46:57 +02:00
{{#if (eq prixLot 0)}}Prendre{{else}}Acheter{{/if}}</a>
2021-05-07 17:27:02 +02:00
</span>
</div>