foundryvtt-shadows-over-sol/templates/dialog-flip.html
2021-02-09 23:32:55 +01:00

81 lines
3.1 KiB
HTML

<form class="flip-dialog">
<h2 class="compdialog" id="statSkillFlip">Flip Dialog !</h2>
<div class="grid grid-2col">
<div class="flex-group-left flexcol skill-column">
{{#if (eq mode 'stat')}}
<h3 class="skill-label" id="flipSubTitle">
Stat Only Flip : {{localize stat.label}} : {{stat.value}} - <img class="cardsuit-img" src="systems/foundryvtt-shadows-over-sol/img/cards/{{stat.cardsuit}}.webp"/>
</h3>
<span>
<h3 class="skill-label" id="flipSubTitle">Final Score : <span id='score-base'>0</span> </h3>
</span>
{{else}}
<h3 class="skill-label" id="flipSubTitle">
Select Stat
<select name="stat" id="statSelect" data-dtype="String">
{{#select statList}}
{{#each statList as |stat key|}}
<option value={{key}}>{{localize stat.label}} : {{stat.value}} - {{stat.cardsuit}} </option>
{{/each}}
{{/select}}
</select>
</h3>
<span>
<h3 class="skill-label" id="flipSubTitle">Skill Flip : {{skill.name}} ({{skill.data.value}}) </h3>
<h3 class="skill-label" id="flipSubTitle">Final Score : <span id='score-base'>0</span> </h3>
</span>
{{/if}}
</div>
<div class="flex-group-left flexcol skill-column">
<div class="tab" data-group="primary">
<select name="consequenceSelect" id="consequenceSelect" data-dtype="String" multiple size="5" width="200">
{{#select consequencesList}}
{{#each consequencesList as |consequence key|}}
<option value={{consequence._id}}>{{localize consequence.name}} - {{consequence.data.severity}}</option>
{{/each}}
{{/select}}
</select>
<h3 class="skill-label" id="flipConsequenceMalus">Consequences malus : <span id='consequence-malus'>0</span> </h3>
</div>
</div>
</div>
<section class="sheet-body">
<div class="tab" data-group="primary">
<div class="flexrow">
<label for="categorie generic-label">Target Number (TN) : </label>
<select name="tn" id="tn" data-dtype="number">
{{#select tn}}
{{#each tnList as |key|}}
<option value={{key}} {{#if (eq key 10)}}selected{{/if}}>{{numberFormat key decimals=0 sign=false}}</option>
{{/each}}
{{/select}}
</select>
</div>
<div class="flexrow">
<label for="categorie generic-label">Flip Modifier</label>
<select name="modifier" id="modifier" data-dtype="number">
{{#select modifier}}
{{#each modifierList as |key|}}
<option value={{key}} {{#if (eq key 0)}}selected{{/if}}>{{numberFormat key decimals=0 sign=true}}</option>
{{/each}}
{{/select}}
</select>
</div>
</div>
<div id="flexrow">
<label class="generic-label">Click on deck to flip from deck, or click on the relevant Edge card to flip from it!</label>
</div>
<div id="flexrow">
<span class="class-view-deck" id="view-deck"></span>
<span class="class-view-edge" id="view-edge"></span>
</div>
<div id="flexrow">
<label class="generic-label"></label>
</div>
</section>
</form>