yammat/templates/select.hamlet
2015-07-21 01:42:52 +02:00

30 lines
758 B
Text

$doctype 5
<div .header>
<ul>
<li>
_{MsgCurrentCharge (userBalance user) (appCurrency $ appSettings master)}
<li>
<a href=@{RechargeR uId}>
_{MsgRecharge}
<li>
<a href=@{ModifyUserR uId}>
_{MsgEditUser}
<h3>_{MsgChoosePrompt $ userIdent user}
$if null beverages
<h1>
!!!MATEKALYPSE!!!
$forall (Entity bId bev) <- beverages
<article .article>
$if beverageAvatar bev /= Nothing
<a href=@{BuyR uId bId} style="background-image: url(@{GetAvatarR $ fromJust $ beverageAvatar bev})" .avatar>
<p>#{beverageIdent bev}
$else
<a href=@{BuyR uId bId}>
<p>#{beverageIdent bev}
<form action=@{SelectBarcodeR uId} method=GET>
<input type=hidden #barcodeInput name=barcode>