2019-01-13 19:07:46 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
|
|
{% for user in users %}
|
|
|
|
<div class="geruecht">
|
|
|
|
<div class="g-item">
|
|
|
|
<p>{{ user.username }}</p>
|
|
|
|
</div>
|
2019-01-13 23:25:25 +00:00
|
|
|
<div class="g-item button" id="{{ user.id }}-2" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 2]);">
|
2019-01-14 23:25:42 +00:00
|
|
|
+2 €
|
2019-01-13 23:25:25 +00:00
|
|
|
</div>
|
|
|
|
<div class="g-item button" id="{{ user.it }}-1" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 1]);">
|
2019-01-14 23:25:42 +00:00
|
|
|
+1 €
|
2019-01-13 19:07:46 +00:00
|
|
|
</div>
|
2019-01-13 23:25:25 +00:00
|
|
|
<div class="g-item button" id="{{ user.id }}-050" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 0.5]);">
|
2019-01-14 23:25:42 +00:00
|
|
|
+0,5 €
|
2019-01-13 19:07:46 +00:00
|
|
|
</div>
|
2019-01-13 23:25:25 +00:00
|
|
|
<div class="g-item button" id="{{ user.id }}-040" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 0.4]);">
|
2019-01-14 23:25:42 +00:00
|
|
|
+0,4 €
|
2019-01-13 19:07:46 +00:00
|
|
|
</div>
|
2019-01-13 23:25:25 +00:00
|
|
|
<div class="g-item button" id="{{ user.id }}-020" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 0.2]);">
|
2019-01-14 23:25:42 +00:00
|
|
|
+0,2 €
|
2019-01-13 19:07:46 +00:00
|
|
|
</div>
|
2019-01-13 23:25:25 +00:00
|
|
|
<div class="g-item button" id="{{ user.id }}-010" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 0.1]);">
|
2019-01-14 23:25:42 +00:00
|
|
|
+0,1 €
|
2019-01-13 19:07:46 +00:00
|
|
|
</div>
|
|
|
|
<div class="g-item">
|
2019-01-14 23:25:42 +00:00
|
|
|
<p id="{{ user.id }}-sum">{{ "%.2f"%user.getsum() }} €</p>
|
2019-01-13 19:07:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock %}
|
2019-01-14 23:25:42 +00:00
|
|
|
{% block bottombar %}
|
|
|
|
<div class="bottombar-element">
|
|
|
|
{% if form %}
|
|
|
|
<form method="POST" action="">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
<fieldset class="form-group">
|
|
|
|
<!-- <legend class="reg-label">neue Person hinzufügen</legend> -->
|
|
|
|
<div class="form-group">
|
|
|
|
{{ form.username.label(class="reg-label") }}
|
|
|
|
{{ form.username() }}
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<div class="form-group m">
|
|
|
|
{{ form.submit(class="blue-button no-mg") }}
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="right blue-button buttombar-element" href="javascript://" onclick="Sijax.request('storner');">
|
|
|
|
Stornieren
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|