Files
foundryvtt-reve-de-dragon/templates/roll/roll-part-cuisine.hbs

52 lines
1.8 KiB
Handlebars

<roll-part-img>
<img src="{{current.img}}" data-tooltip="{{current.label}}" />
</roll-part-img>
<roll-part-detail>
<subline>
<select name="select-preparation" {{#if rollData.type.retry}}disabled{{/if}}>
{{selectOptions refs.preparations selected=current.key valueAttr="key" labelAttr="label"}}
</select>
{{#if current.recette}}
<selected-numeric-value>{{plusMoins current.value}}</selected-numeric-value>
{{else if current.ingredient}}
<input type="number"
name='diff-var'
value="{{current.value}}"
pattern="^(-|+)?\d+$"
min="-10" max="0" step="1"
{{#if rollData.type.retry}}disabled{{/if}}>
{{/if}}
</subline>
<subline>
<label for="proportions">Proportions</label>
<input type="number"
name='proportions'
value="{{current.proportions}}"
pattern="^\d+$"
min="1" max="{{either current.proportionsMax 10}}" step="1"
{{#if rollData.type.retry}}disabled{{/if}}>
{{#if (and current.sust (ne current.sust 1))}}<span>(&times; {{current.sust}})</span>{{/if}}
</subline>
<subline>
<input type="checkbox" name="fabriquer" {{#if current.fabriquer}}checked{{/if}} {{#if rollData.type.retry}}disabled{{/if}}/>
<label for="fabriquer"><i class="fa-solid fa-utensils"></i>&nbsp; Ajouter à l'équipement</label>
</subline>
{{#if current.ingredients}}
<subline><span><strong>Ingrédients:</strong></span></subline>
<subline>
<div class="poesie-extrait">
{{{current.ingredients}}}
</div>
</subline>
{{/if}}
{{#if current.recette}}
{{#if current.ingredients}}
<hr>
<subline>
{{/if}}
{{> "systems/foundryvtt-reve-de-dragon/templates/partial-description.hbs" current.recette.system}}
</subline>
{{/if}}
</roll-part-detail>