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-13 19:07:46 +00:00
|
|
|
<p>+2 €</p>
|
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-13 19:07:46 +00:00
|
|
|
<p>+1 €</p>
|
|
|
|
</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-13 19:07:46 +00:00
|
|
|
<p>+0,5 €</p>
|
|
|
|
</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-13 19:07:46 +00:00
|
|
|
<p>+0,4 €</p>
|
|
|
|
</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-13 19:07:46 +00:00
|
|
|
<p>+0,2 €</p>
|
|
|
|
</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-13 19:07:46 +00:00
|
|
|
<p>+0,1 €</p>
|
|
|
|
</div>
|
|
|
|
<div class="g-item">
|
2019-01-13 23:25:25 +00:00
|
|
|
<p id="{{ user.id }}-sum">{{ "%.2f"%user.sum }} €</p>
|
2019-01-13 19:07:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock %}
|
|
|
|
|