suricata: validate name as an hostname

Even if the link with elasticsearch is not mandatory it seems
more suitable to verify the hostname to avoid things like space
in it.
rules: fix display of dropdown menu

If elasticsearch was not used, code was displayer a useless divider.
This code fixes the issue by moving the divider in the conditional.
rules: use icons in dropdown menu