[enh] Add HTML5 min/max attributes for port number.

This commit is contained in:
opi 2014-06-17 11:12:26 +02:00
parent e7086da6c4
commit 8955f1430d

View file

@ -134,7 +134,7 @@
</div> </div>
<div class="col-xs-6 col-sm-3"> <div class="col-xs-6 col-sm-3">
<label for="port" class="control-label">{{t 'port'}}</label> <label for="port" class="control-label">{{t 'port'}}</label>
<input type="number" id="port" name="port" class="form-control" required> <input type="number" id="port" name="port" class="form-control" required min="1" max="65535">
</div> </div>
<div class="col-xs-6 col-sm-3"> <div class="col-xs-6 col-sm-3">
<label for="connection" class="control-label">{{t 'connection'}}</label> <label for="connection" class="control-label">{{t 'connection'}}</label>