fvtt-les-heritiers/templates/roll-dialog-generic.html

157 lines
6.3 KiB
HTML
Raw Normal View History

2022-12-26 00:33:13 +01:00
<form class="skill-roll-dialog">
<header class="roll-dialog-header">
{{#if img}}
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
{{/if}}
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="flexcol">
2023-03-11 12:11:27 +01:00
{{#if (eq mode "rang")}}
<div class="flexrow">
<span class="roll-dialog-label">{{rang.label}}</span>
<span class="roll-dialog-label">{{rang.value}}</span>
</div>
{{/if}}
2023-01-20 15:19:04 +01:00
{{#if (eq mode "carac")}}
<div class="flexrow">
<span class="roll-dialog-label">Caracteristique</span>
<span class="roll-dialog-label">{{carac.label}} ({{carac.value}})</span>
</div>
{{else}}
<div class="flexrow">
<span class="roll-dialog-label">Caracteristique</span>
<select class="status-small-label color-class-common" id="caracKey" type="text" name="caracKey" value="caracKey" data-dtype="string" >
2024-07-13 12:12:38 +02:00
{{selectOptions caracList selected=caracKey valueAttr="abbrev" nameAttr="abbrev" labelAttr="label"}}
2023-01-20 15:19:04 +01:00
</select>
</div>
{{/if}}
2022-12-26 00:33:13 +01:00
{{#if competence}}
<div class="flexrow">
<span class="roll-dialog-label">{{competence.name}}</span>
<span class="small-label roll-dialog-label">{{competence.system.niveau}}</span>
</div>
2023-03-08 16:58:11 +01:00
{{#if competence.nbSpec}}
<div class="flexrow">
<span class="roll-dialog-label">Spécialités : {{competence.specList}}</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Bonus de spécialité ?</span>
<input type="checkbox" class="item-field-label-short" id="useSpecialite" {{checked useSpecialite}}/>
</div>
{{/if}}
2022-12-26 00:33:13 +01:00
{{/if}}
2023-01-20 15:19:04 +01:00
2023-03-09 13:16:19 +01:00
{{#if pouvoir}}
<div class="flexrow">
<span class="roll-dialog-label">Pouvoir : </span>
<span class="small-label roll-dialog-label">{{pouvoir.name}}</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Activation : </span>
<span class="small-label roll-dialog-label">{{pouvoir.system.activation}}</span>
</div>
{{#if pouvoirBase}}
<div class="flexrow">
<span class="roll-dialog-label">{{pouvoirBase.label}} : </span>
<span class="small-label roll-dialog-label">{{pouvoirBase.value}}</span>
</div>
{{/if}}
2024-03-23 11:37:15 +01:00
<div class="flexrow">
<span class="roll-dialog-label">Points d'usage consommés : </span>
<select class="status-small-label color-class-common" id="pouvoirPointsUsage" type="Number" name="pouvoirPointsUsage" value="pouvoirPointsUsage" data-dtype="Number" >
2024-05-23 11:25:51 +02:00
{{selectOptions config.pointsUsageList selected=pouvoirPointsUsage}}
2024-03-23 11:37:15 +01:00
</select>
</div>
{{/if}}
2023-03-09 13:16:19 +01:00
2023-04-09 21:45:46 +02:00
{{#each rulesMalus as |malus key|}}
<div class="flexrow">
<span class="roll-dialog-label">{{malus.name}}</span>
<span class="small-label roll-dialog-label">{{malus.value}}</span>
</div>
{{/each}}
2023-04-10 14:11:47 +02:00
{{#if (and arme arme.system.isMelee)}}
2023-01-20 15:19:04 +01:00
<div class="flexrow">
2023-04-10 14:11:47 +02:00
<span class="roll-dialog-label">Attaque à plusieurs </span>
<select class="roll-dialog-label" id="bonus-attaque-plusieurs" type="text" value="{{bonusAttaquePlusieurs}}"
data-dtype="Number">
2024-05-23 11:25:51 +02:00
{{selectOptions config.attaquePlusieursList selected=pouvoirPointsUsage}}
2023-04-10 14:11:47 +02:00
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Attaque dans le dos ?</span>
<input type="checkbox" class="item-field-label-short" id="attaqueDos" {{checked attaqueDos}}/>
2023-01-20 15:19:04 +01:00
</div>
2023-04-11 13:26:51 +02:00
<div class="flexrow">
<span class="roll-dialog-label">Attaque à deux armes </span>
<select class="roll-dialog-label" id="bonus-attaque-deux-armes" type="text" value="{{attaqueDeuxArmes}}"
data-dtype="Number">
2024-05-23 11:25:51 +02:00
{{selectOptions config.attaque2ArmesListe selected=attaqueDeuxArmes valueAttr="value" nameAttr="value" labelAttr="label"}}
2023-04-11 13:26:51 +02:00
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Seconde arme</span>
<select class="roll-dialog-label" id="bonus-attaque-seconde-arme" type="text" value="{{secondeArme}}"
data-dtype="String">
2024-05-23 11:25:51 +02:00
{{selectOptions armes selected=secondeArme valueAttr="id" nameAttr="id" labelAttr="name"}}
2023-04-11 13:26:51 +02:00
</select>
</div>
{{/if}}
{{#if arme}}
<li class="flexrow item">
<label class="roll-dialog-label">Ataque ciblée : </label>
<select class="roll-dialog-label" type="text" id="attaque-cible" value="{{attaqueCible}}" data-dtype="String">
2024-05-23 11:25:51 +02:00
{{selectOptions config.attaqueCible selected=attaqueCible}}
2023-04-11 13:26:51 +02:00
</select>
</li>
2024-11-17 22:45:48 +01:00
{{/if}}
2023-04-11 13:26:51 +02:00
2024-11-17 22:45:48 +01:00
{{#if sort}}
<div class="flexrow">
<span class="roll-dialog-label">Sort : </span>
<span class="small-label roll-dialog-label">{{sort.name}} ({{sort.system.niveau}})</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Duree : </span>
<span class="small-label roll-dialog-label">{{sort.system.duree}}</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Portee : </span>
<span class="small-label roll-dialog-label">{{sort.system.portee}}</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Ingrédients : </span>
<span class="small-label roll-dialog-label">{{sort.system.ingredients}}</span>
</div>
2023-04-10 14:11:47 +02:00
{{/if}}
2023-01-20 15:19:04 +01:00
2022-12-26 00:33:13 +01:00
<div class="flexrow">
<span class="roll-dialog-label">Bonus/Malus </span>
<select class="roll-dialog-label" id="bonus-malus-context" type="text" value="{{bonusMalusContext}}"
data-dtype="Number">
2024-05-23 11:25:51 +02:00
{{selectOptions config.bonusMalusContext selected=bonusMalusContext valueAttr="value" nameAttr="value" labelAttr="label"}}
2022-12-26 00:33:13 +01:00
</select>
</div>
2023-04-09 21:45:46 +02:00
{{#if cacheDifficulte}}
<div class="flexrow">
<span class="roll-dialog-label">Difficulté Cachée/Inconnue</span>
</div>
{{else}}
2022-12-26 00:33:13 +01:00
<div class="flexrow">
2023-01-18 16:16:18 +01:00
<span class="roll-dialog-label">Difficulté</span>
<select class="status-small-label color-class-common" id ="sdValue" type="text" name="sdValue" value="sdValue" data-dtype="string" >
2024-05-23 11:25:51 +02:00
{{selectOptions sdList selected=sdValue}}
2023-01-18 16:16:18 +01:00
</select>
2022-12-26 00:33:13 +01:00
</div>
2023-04-09 21:45:46 +02:00
{{/if}}
2022-12-26 00:33:13 +01:00
</div>
</form>