47 lines
1.2 KiB
HTML
47 lines
1.2 KiB
HTML
<%frame layout_html%>
|
|
|
|
<%
|
|
|
|
summe = 0.0
|
|
|
|
%>
|
|
|
|
<br/>
|
|
<div class="big">Verkauf</div>
|
|
<br/>
|
|
|
|
<form action="" method="post" enctype="multipart/form-data">
|
|
|
|
<%if hasattr(request,"message")%>
|
|
<div class="message"><%=request.message%></div>
|
|
<br/>
|
|
<%end%>
|
|
|
|
<div>
|
|
Artikel hinzufügen: <input class="wide" type="text" id="artikelid" name="artikelid" value=""/>
|
|
</div>
|
|
<br/>
|
|
<%iterate artikel self.artikel.keys()%>
|
|
<div class="space hr">
|
|
<a href="<%=request.self(-3)%>/artikel/<%=artikel.id%>" target="_blank"><%=artikel.bezeichnung%></a>
|
|
<input class="right" type="number" name="erloes_<%=artikel.id%>" min="0" max="999999" step="1.0" value="<%=self.artikel[artikel]%>"/><br/>
|
|
<div class="small pre indent"><%=artikel.beschreibung%></div>
|
|
</div>
|
|
<%
|
|
summe = summe + self.artikel[artikel]
|
|
%>
|
|
<%end%>
|
|
<br/>
|
|
<br/>
|
|
<div style="position: relative; right: 0px; text-align: right;">Summe: <%="%0.2f" % (summe,)%>€</div>
|
|
<br/>
|
|
<br/>
|
|
<input class="big" type="submit" name="action" value="AKTUALISIEREN"/>
|
|
|
|
<input class="big" type="submit" name="action" value="BEZAHLT"/>
|
|
|
|
</form>
|
|
<script>
|
|
window.setTimeout( function(){document.getElementById('artikelid').focus();}, 250 );
|
|
</script>
|