Added max and min value for the change input (in the html code)

This commit is contained in:
bton 2024-05-25 10:54:05 +02:00
parent 9c7f2cd0cb
commit 79a31ab6d5
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ Strichliste
<a href="list/user?id={{i[0]}}">{{i[1]}}</a>: {{i[2]/100}}€
</p>
<input name="id" type="hidden" value="{{i[0]}}">
<input name="change" type="number" lang="nb" step="0.01" placeholder="add to balance">
<input name="change" type="number" lang="nb" step="0.01" max="50000" min="-50000" placeholder="add to balance">
</form>
<form action="/change" method="post" style="display: inline">
<input name="id" type="hidden" value="{{i[0]}}">

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" placeholder="change balance">
<input name="change" type="number" lang="nb" step="0.01" max="50000" min="-50000" placeholder="add to balance">
</form>
</p>
<br></br>