Vincent Vandemeulebrouck
9fc21e6d97
- dans la liste d'équipement, liste d'actions fournie par code - support d'actions multiples - listener générique Utilisation du mécanisme pour tous les items, standardisation de l'apparence des boutons d'items
53 lines
2.0 KiB
HTML
53 lines
2.0 KiB
HTML
<form class="{{cssClass}}" autocomplete="off">
|
|
|
|
{{!-- Sheet Header --}}
|
|
<header class="sheet-header">
|
|
<div class="header-fields">
|
|
<div class="flexrow">
|
|
{{#if token}}
|
|
{{#if options.isOwner}}
|
|
<img class="profile-img dimmed" src="{{img}}" data-edit="img"/>
|
|
{{/if}}
|
|
<img class="profile-img-token" src="{{token.img}}"/>
|
|
{{else}}
|
|
<img class="profile-img" src="{{img}}" data-edit="img"/>
|
|
{{/if}}
|
|
<div class="flexcol">
|
|
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
|
|
{{#if @root.options.isObserver}}
|
|
<div class="form-group">
|
|
<input {{@root.disabled}} class="attribute-value" type="checkbox" name="system.illimite" {{#if system.illimite}}checked{{/if}}/>
|
|
<label for="system.illimite">Quantité illimitée en vente</label>
|
|
</div>
|
|
<div class="form-group">
|
|
<span>
|
|
<label for="system.pourcentage">Appliquer un pourcentage sur les prix</label>
|
|
<input {{@root.disabled}} class="attribute-value" type="number" data-dtype="Number"
|
|
name="system.pourcentage" value="{{system.pourcentage}}"
|
|
min="20" max="500" step="5"/>
|
|
</span>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
{{!-- Sheet Body --}}
|
|
<section class="sheet-body">
|
|
<div class="flexcol form-group medium-editor">
|
|
{{editor description target="system.description" button=true owner=options.isOwner editable=options.isOwner engine="prosemirror"}}
|
|
</div>
|
|
<hr>
|
|
{{> "systems/foundryvtt-reve-de-dragon/templates/actor/commerce-inventaire.hbs"}}
|
|
{{#unless system.illimite}}
|
|
{{#if @root.options.isObserver}}
|
|
<hr>
|
|
{{> "systems/foundryvtt-reve-de-dragon/templates/actor/inventaire-monnaie.hbs"}}
|
|
{{/if}}
|
|
{{/unless}}
|
|
<br>
|
|
{{> "systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}}
|
|
<br>
|
|
</section>
|
|
</form> |