mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Force numeric team number
With `type="text"`, team numbers could be any string. There's no reason a team number should ever be anything besides an integer, and non-numeric characters get stripped, anyways.
This commit is contained in:
@@ -243,7 +243,7 @@
|
||||
<div class="row form-group" id="status{{.color}}{{.position}}">
|
||||
<div class="col-lg-1">{{.position}} </div>
|
||||
<div class="col-lg-3">
|
||||
<input type="text" class="form-control input-sm" value="{{if ne 0 .team}}{{.team}}{{end}}"
|
||||
<input type="number" class="form-control input-sm" value="{{if ne 0 .team}}{{.team}}{{end}}"
|
||||
onblur="substituteTeam($(this).val(), '{{.color}}{{.position}}');"
|
||||
{{if not .data.AllowSubstitution}}disabled{{end}}>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user