Trends JS is overly complicated, form & helper are outdated and inefficient
|Assigned To:||Tomer Brisker|
|Target version:||Team Daniel - Iteration 9|
|Found in release:||Pull request:||https://github.com/theforeman/foreman/pull/4184, https://github.com/theforeman/foreman/pull/4162|
|Velocity based estimate||-|
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.