fixes #6329 - toggle label content view/puppet environment, toggle show/hide installation media on new host form

this overwrites the method "not yet merged" in https://github.com/theforeman/foreman/pull/1539