"Allow job retries for rollback deployments" option in CI/CD setting should be disabled/hidden when the parent checkbox is disabled
Problem
Originally, raised by @emilybauman at !126788 (comment 1475248692).
In New option: Allow job retries for rollback depl... (!126788 - merged), we introduced a new checkbox "Allow job retries for rollback deployments" under the "Prevent outdated deployment jobs" checkbox:
This child checkbox doesn't take an effect when the parent checkbox is disabled, however, it is not obvious in the current UI.
The same issue can be seen in the other checkboxes such as "Merge Checks":
Proposal
We should disable/hide the child checkbox when the parent checkbox is disabled. Similar interface with "Merge options":
Implementation Guide
Following the example set in merge options, define a function in (new file and directory) app/assets/javacripts/ci_settings_general_pipeline/index.js that queries for both checkboxes and disables the child checkbox if the parent is unchecked. Utilizing the id of the checkboxes is recommended.
Import that function into https://gitlab.com/gitlab-org/gitlab/tree/7c1a9ca6cb4654253fcbfcb29d0621ed6521db1a/app/assets/javascripts/pages/projects/settings/ci_cd/show/index.js and call it to initialize the listeners.

