Ajout image dans dialog Consommer

This commit is contained in:
Vincent Vandemeulebrouck 2021-04-13 00:57:17 +02:00
parent 870ca61d7d
commit d21cd86ccd
2 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,3 @@
import { Grammar } from "./grammar.js";
import { Misc } from "./misc.js";
export class DialogConsommer extends Dialog {

View File

@ -1,9 +1,9 @@
<form class="rdddialog">
<img class="chat-icon" src="{{item.img}}" title="{{item.name}}" alt="{{item.name}}" />
<div class="flexrow">
<label>Quantité de {{item.name}} à {{#if item.data.boisson}}boire{{else}}manger{{/if}}</label>
<input class="attribute-value consommer-doses" type="text" name="doses" value="{{choix.doses}}"
size="3" min="0" max="{{item.data.quantite}}"
data-dtype="Number" />
<label class="flex-grow">Quantité de {{item.name}} à {{#if item.data.boisson}}boire{{else}}manger{{/if}}</label>
<input class="attribute-value consommer-doses flex-shrink" type="number" name="doses" value="{{choix.doses}}"
min="0" max="{{item.data.quantite}}" data-dtype="Number" />
</div>
{{#if item.data.sust}}
<p>Cette {{#if item.data.boisson}}boisson{{else}}nourriture{{/if}} vous apportera <span