33 lines
1.3 KiB
HTML
33 lines
1.3 KiB
HTML
{% extends "layout.html" %}
|
|
{% block content %}
|
|
{% for user in users %}
|
|
<div class="geruecht">
|
|
<div class="g-item">
|
|
<p>{{ user.username }}</p>
|
|
</div>
|
|
<div class="g-item button" id="{{ user.id }}-2" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 2]);">
|
|
<p>+2 €</p>
|
|
</div>
|
|
<div class="g-item button" id="{{ user.it }}-1" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 1]);">
|
|
<p>+1 €</p>
|
|
</div>
|
|
<div class="g-item button" id="{{ user.id }}-050" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 0.5]);">
|
|
<p>+0,5 €</p>
|
|
</div>
|
|
<div class="g-item button" id="{{ user.id }}-040" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 0.4]);">
|
|
<p>+0,4 €</p>
|
|
</div>
|
|
<div class="g-item button" id="{{ user.id }}-020" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 0.2]);">
|
|
<p>+0,2 €</p>
|
|
</div>
|
|
<div class="g-item button" id="{{ user.id }}-010" href="javascript://" onclick="Sijax.request('add', ['{{ user.username }}', 0.1]);">
|
|
<p>+0,1 €</p>
|
|
</div>
|
|
<div class="g-item">
|
|
<p id="{{ user.id }}-sum">{{ "%.2f"%user.sum }} €</p>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% endblock %}
|
|
|