2024-02-21 21:02:07 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block customscript %}
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
var socket = io();
|
|
|
|
socket.on("update", function () {
|
|
|
|
window.location = "/list/user?id={{user[0]}}"
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
{% block title %}
|
2024-03-13 20:49:23 +00:00
|
|
|
{{user[1]}}
|
2024-02-21 21:02:07 +00:00
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
2024-03-13 20:49:23 +00:00
|
|
|
<p> {{user[1]}} : {{user[2]/100}}€ <p>
|
2024-02-21 21:02:07 +00:00
|
|
|
<form action="/addtag" method="post">
|
|
|
|
<input name="id" type="hidden" value="{{user[0]}}">
|
|
|
|
<button type="submit">Add Tag</button>
|
|
|
|
</form>
|
|
|
|
<form action="/removetag" method="post">
|
|
|
|
<input name="id" type="hidden" value="{{user[0]}}">
|
|
|
|
<button type="submit">Remove Tag</button>
|
|
|
|
</form>
|
|
|
|
</p>
|
|
|
|
<form action="/change" method="post">
|
|
|
|
<input name="id" type="hidden" value="{{user[0]}}">
|
2024-05-25 08:54:05 +00:00
|
|
|
<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>
|
|
|
|
</p>
|
|
|
|
<br></br>
|
|
|
|
<p>Tags:</p>
|
|
|
|
{% for tag in tags %}
|
|
|
|
<p>
|
|
|
|
<form action="/removetag" method="post">
|
|
|
|
<label for="removetag">{{tag[0]}} </label>
|
|
|
|
<input name="id" type="hidden" value="{{user[0]}}">
|
|
|
|
<input name="tagid" type="hidden" value="{{tag[0]}}">
|
|
|
|
<button id="removetag" type="submit">Remove Tag</button>
|
|
|
|
</form>
|
|
|
|
</p>
|
|
|
|
{% endfor %}
|
|
|
|
<br></br>
|
|
|
|
<form action="/removeuser" method="post"><input name="id" type="hidden" value="{{user[0]}}">
|
|
|
|
<button type="submit">Remove User</button>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|