yammat/templates/restock.hamlet
2015-10-11 20:11:31 +02:00

21 lines
531 B
Text
Executable file

$doctype 5
<h3>
_{MsgRestock}
$forall (Entity bId bev) <- beverages
<article .article>
$if isNothing (beverageAvatar bev)
<a href="@{UpstockR bId}">
<p>#{beverageIdent bev}
$else
<a href="@{UpstockR bId}" style="background-image: url(@{GetAvatarR $ fromJust $ beverageAvatar bev})" .avatar>
<p>#{beverageIdent bev}
<article .article #func>
<a href=@{NewArticleR}>
<p>
_{MsgAddItem}
<form action=@{RestockBarcodeR} method=GET>
<input type=hidden #barcodeInput name=barcode>