yammat/templates/upstock.hamlet
Wolf 050b4f257f Update upstock.hamlet
touch in-/decrement
2015-04-12 18:25:37 +02:00

14 lines
488 B
Text

$doctype 5
<h3>_{MsgStockUp $ beverageIdent bev}
<p>
_{MsgCurrentStock}: #{beverageAmount bev}
<form method=post enctype=#{enctype}>
^{upstockWidget}
<div>
<input type=submit value="_{MsgFillup}">
<input onclick="e=document.getElementById('hident2');e.value=parseInt(e.value)+1;" value="_{MsgIncrement}" type="button">
<input onclick="e=document.getElementById('hident2');e.value=(parseInt(e.value)>=1)?parseInt(e.value)-1:0;" value="_{MsgDecrement}" type="button">