matekasse/Website/templates/list.html

36 lines
1.2 KiB
HTML
Raw Normal View History

2024-02-21 21:02:07 +00:00
{% extends "base.html" %}
{% block title %}
Strichliste
{% endblock %}
{% block customscript %}
<script type="text/javascript" charset="utf-8">
var socket = io();
socket.on("update", function () {
window.location = "http://matekasse.server.c3h/list"
});
</script>
{% endblock %}
{% block content %}
<form action="/list/user" method="get"><input name="user" type="search" placeholder="Search for user">
<button>Search</button>
</form>
<form action="/adduser" method="post">
<button type="submit">Add User</button>
</form>
<br></br>
{% for i in users %}
<form action="/change" method="post" style="display: inline;">
<p style="display: inline;">
2024-03-06 20:41:49 +00:00
<a href="list/user?id={{i[0]}}">{{i[1]}}</a>: {{i[2]/100}}€
2024-02-21 21:02:07 +00:00
</p>
<input name="id" type="hidden" value="{{i[0]}}">
<input name="change" type="number" lang="nb" step="0.01" max="50000" min="-50000" placeholder="add to balance">
2024-02-21 21:02:07 +00:00
</form>
<form action="/change" method="post" style="display: inline">
<input name="id" type="hidden" value="{{i[0]}}">
2024-03-13 20:31:51 +00:00
<button type="submit" name="change" value={{preis}}>{{preis}}€</button>
2024-02-21 21:02:07 +00:00
</form>
<br style="line-height: 50%;"></br>
{% endfor %}
{% endblock %}