forked from public/foundryvtt-reve-de-dragon
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
<div class="post-item" data-transfer="{{transfer}}">
 | 
						|
  <h4>
 | 
						|
    {{#if item.img}}
 | 
						|
    <img class="chat-icon" src="{{item.img}}" data-tooltip="{{item.name}}" />
 | 
						|
    {{/if}}
 | 
						|
    {{#if alias}}{{alias}} propose: {{else}}Acheter {{/if}}{{item.name}}</h4>
 | 
						|
  <p class="poesie-extrait poesie-overflow card-content">{{{item.system.description}}}</p>
 | 
						|
  <p>
 | 
						|
    {{#each properties as |property p|}}
 | 
						|
    <span>{{{property}}}</span><br>
 | 
						|
    {{/each}}
 | 
						|
  </p>
 | 
						|
  <hr>
 | 
						|
  <p>
 | 
						|
    {{#unless quantiteIllimite}}
 | 
						|
    <span>Lots disponibles: {{nbLots}}</span><br>
 | 
						|
    {{/unless}}
 | 
						|
    {{#if (gt tailleLot 1)}}
 | 
						|
    <span>Lots de: <span class="tailleLot">{{tailleLot}}</span></span><br>
 | 
						|
    {{/if}}
 | 
						|
    {{#if (ne prixLot 0)}}
 | 
						|
    <span><strong>Prix {{#if (gt tailleLot 1)}}du lot {{else}}unitaire{{/if}}:
 | 
						|
      <span class="prixLot">{{numberFormat prixLot decimals=2 sign=false}}</span> Sols</strong></span><br>
 | 
						|
    {{/if}}
 | 
						|
  </p>
 | 
						|
  {{#if (or (gt nbLots 0) quantiteIllimite)}}
 | 
						|
  <span class="chat-card-button-area">
 | 
						|
    <a class="button-acheter chat-card-button">
 | 
						|
    {{#if (eq prixLot 0)}}Prendre{{else}}Acheter{{/if}}</a>
 | 
						|
  </span>
 | 
						|
  {{/if}}
 | 
						|
</div>
 |