88 Gestion argent/commerce

This commit is contained in:
2021-01-01 21:11:56 +01:00
parent 3c2241197a
commit dc57058465
13 changed files with 459 additions and 30 deletions

View File

@ -614,9 +614,11 @@
{{!-- Equipment Tab --}}
<div class="tab items" data-group="primary" data-tab="items">
<span class="item-name">Argent et Monnaies</b></span> -
<ul class="item-list alterne-list">
{{#each data.monnaie as |piece id|}}
<li class="item flexrow list-item" data-item-id="{{piece._id}}">
<img class="sheet-competence-img" src="{{piece.img}}" title="{{piece.name}}"/>
<span class="competence-title competence-label">{{piece.name}}</span>
<span class="competence-title competence-label">{{piece.data.quantite}}</span>
<span class="competence-title"><a class="monnaie-plus">+</a><a class="monnaie-moins">-</a></span>

26
templates/post-item.html Normal file
View File

@ -0,0 +1,26 @@
<div class="post-item" data-transfer="{{transfer}}">
<h3><b>{{name}}</b></h3>
{{#if img}}
<img src="{{img}}" title="{{name}}" />
{{/if}}
<div class="card-content">{{{data.description}}}</div>
{{#each properties as |property p|}}
<span>{{{property}}}</span><br>
{{/each}}
<div>
{{#if postPrice}}
<b>Prix: </b> <span class="postPrice">{{postPrice}} Sols</span>
{{/if}}
{{#if postQuantity}}
<b>Quantité: </b> <span class="postQuantity">{{postQuantity}}</span>
{{/if}}
</div>
{{#if hasPrice}}
<span class="chat-card-button-area">
<a id='payer-button' class='chat-card-button market-button' data-jsondata='{{jsondata}}' data-somme-denier="{{data.cout_deniers}}">Payer</a>
</span>
{{/if}}
</div>