Ajout des mutations
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
{{#each system.attributs as |attr key|}}
|
||||
<li class="item flexrow " data-attr-key="{{key}}">
|
||||
<img class="item-name-img" src="systems/fvtt-hawkmoon-cyd/assets/icons/{{attr.labelnorm}}.webp">
|
||||
<span class="item-name-label competence-name item-field-label-medium"><a
|
||||
<span data-tooltip="Cliquez pour faire un jet" class="item-name-label competence-name item-field-label-medium"><a
|
||||
class="roll-attribut">{{attr.label}}</a></span>
|
||||
<select class="status-small-label color-class-common edit-item-data competence-niveau" type="text"
|
||||
name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="Number">
|
||||
@@ -140,7 +140,7 @@
|
||||
</div>
|
||||
</li>
|
||||
{{#each talents as |talent key|}}
|
||||
<li class="item flexrow " data-item-id="{{talent._id}}" data-item-type="competence">
|
||||
<li class="item flexrow " data-item-id="{{talent._id}}" data-item-type="talent">
|
||||
<img class="item-name-img" src="{{talent.img}}" />
|
||||
<span class="item-name-label competence-name">{{talent.name}}</span>
|
||||
<span class="item-name-label item-field-label-long2">{{talent.system.resumebonus}}</span>
|
||||
@@ -155,6 +155,39 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{{#if (count mutations)}}
|
||||
<div class="sheet-box color-bg-archetype">
|
||||
<ul class="item-list alternate-list">
|
||||
<li class="item flexrow">
|
||||
<span class="item-name-label-header">
|
||||
<h3><label class="items-title-text">Mutations</label></h3>
|
||||
</span>
|
||||
<span class="item-field-label-long">
|
||||
<label class="short-label">Catégorie</label>
|
||||
</span>
|
||||
<div class="item-filler"> </div>
|
||||
<div class="item-controls item-controls-fixed">
|
||||
<a class="item-control item-add" data-type="mutation" title="Ajouter une Mutation"><i
|
||||
class="fas fa-plus"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{#each mutations as |mutation key|}}
|
||||
<li class="item flexrow " data-item-id="{{mutation._id}}" data-item-type="mutation">
|
||||
<img class="item-name-img" src="{{mutation.img}}" />
|
||||
<span class="item-name-label competence-name">{{mutation.name}}</span>
|
||||
<span class="item-name-label item-field-label-long2">{{mutation.system.mutationcategorie}}</span>
|
||||
|
||||
<div class="item-filler"> </div>
|
||||
<div class="item-controls item-controls-fixed">
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="flexrow">
|
||||
<div class="sheet-box color-bg-archetype">
|
||||
<ul class="item-list alternate-list">
|
||||
|
@@ -90,7 +90,8 @@
|
||||
</li>
|
||||
|
||||
{{> systems/fvtt-hawkmoon-cyd/templates/partial-item-prix.html}}
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
48
templates/item-mutation-sheet.html
Normal file
48
templates/item-mutation-sheet.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
{{> systems/fvtt-hawkmoon-cyd/templates/partial-item-header.html}}
|
||||
|
||||
{{> systems/fvtt-hawkmoon-cyd/templates/partial-item-nav.html}}
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
|
||||
<ul class="item-list alternate-list">
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-long">Catégorie : </label>
|
||||
<select class="item-field-label-long2" type="text" name="system.mutationcategorie"
|
||||
value="{{system.mutationcategorie}}" data-dtype="string">
|
||||
{{#select system.mutationcategorie}}
|
||||
<option value="tares_communes">Tares et Malformations communes</option>
|
||||
<option value="evolutions_communes">Evolutions communes</option>
|
||||
<option value="tares_rares">Tares et Malformations rares</option>
|
||||
<option value="evolutions_rares">Evolutions rares</option>
|
||||
<option value="tares_majeures">Tares et Maformations majeures</option>
|
||||
<option value="evolutions_majeures">Evolutions majeures</option>
|
||||
<option value="tares_except">Tares et Malformations exceptionnelles</option>
|
||||
<option value="evolutions_except">Evolutions exceptionnelles</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-long2">Complexité ? </label>
|
||||
<input type="checkbox" name="system.hascomplexite" {{checked system.hascomplexite}} />
|
||||
</li>
|
||||
{{#if system.hascomplexite}}
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-long2">Valeur de complexité : </label>
|
||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.complexite"
|
||||
value="{{system.complexite}}" data-dtype="Number" />
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
Reference in New Issue
Block a user