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:
Andrew Dassonville
2016-09-24 21:37:57 -07:00
parent 3c3e9ef25d
commit d140ffac62

View File

@@ -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>