Host pools UI improvements

This commit is contained in:
emanuele-f 2017-01-19 11:30:58 +01:00
parent c9abac9034
commit 6c7871596e
5 changed files with 54 additions and 37 deletions

View file

@ -124,7 +124,6 @@ else -- a captive portal user is being added
<div class="form-group has-feedback">
<label class="form-label">Host Pool</label>
<select name="host_pool_id" id="host_pool_id" class="form-control">
<option value="">No host pool</option>
]]
local pool_ids = host_pools_utils.listPools(getInterfaceId(ifname))
@ -171,11 +170,6 @@ print[[<div class="form-group has-feedback">
return(false);
}
if($("#full_name_input").val().length < 5) {
add_user_alert.error("Full name too short (5 or more characters)");
return(false);
}
if($("#password_input").val().length < 5) {
add_user_alert.error("Password too short (5 or more characters)");
return(false);