refs #18468 - move compute_resources JS to compute profile index
The CR JS should always be ready and loaded on the compute profile index, as the new attributes form is rendered into the existing page after the profile is created.
Because the new attributes form is loaded via the two-pane #content replacement, the additional JavaScript tag specified in compute_profiles/show is not automatically loaded into the page.
This fixes the issue for all compute resources, not only Libvirt. It also uses the `javascript` header to properly track the asset with Turbolinks so it's unloaded later.
Related issues
Bug #18468: Network list not shown when creating a compute profile on a libvirt compute resource
refs #18468 - move compute_resources JS to compute profile index
The CR JS should always be ready and loaded on the compute profile
index, as the new attributes form is rendered into the existing page
after the profile is created.
Because the new attributes form is loaded via the two-pane #content
replacement, the additional JavaScript tag specified in
compute_profiles/show is not automatically loaded into the page.
This fixes the issue for all compute resources, not only Libvirt. It
also uses the `javascript` header to properly track the asset with
Turbolinks so it's unloaded later.