Trends JS is overly complicated, form & helper are outdated and inefficient
|Triaged:||Fixed in Releases:|
|Bugzilla link:||Found in Releases:|
|Pull request:||https://github.com/theforeman/foreman/pull/4184, https://github.com/theforeman/foreman/pull/4162|
JS code is way too complex, the form and its helpers are only used for new trends but still check if this is a new trend and are inefficient in general.
Fixes #17972 - Simplify new trend form js and helpers
Migrated the js to webpack as well.