core: move setFormError in FormManager

Also, fix typo in InputTpl
network: rewrite DHCP pools widget