max and min value in user

This commit is contained in:
bton 2024-06-02 12:52:09 +02:00
parent 14624a4f6e
commit a31337f0f2
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@
</p>
<form action="/change" method="post">
<input name="id" type="hidden" value="{{user[0]}}">
<input name="change" type="number" lang="nb" step="0.01" max="50000" min="-50000" placeholder="add to balance">
<input name="change" type="number" lang="nb" step="0.01" max={{50000-user[2]/100}} min={{min_value-user[2]/100}} placeholder="add to balance">
</form>
</p>
<br></br>