<fieldset>
    <legend>Completed Download Handling</legend>
    <div class="form-group">
        <label class="col-sm-3 control-label">Enable</label>

        <div class="col-sm-8">
            <div class="input-group">
                <label class="checkbox toggle well">
                    <input type="checkbox" name="enableCompletedDownloadHandling" class="x-completed-download-handling"/>
                    <p>
                        <span>Yes</span>
                        <span>No</span>
                    </p>

                    <div class="btn btn-primary slide-button"/>
                </label>
                <span class="help-inline-checkbox">
                    <i class="icon-sonarr-form-info" title="Automatically import completed downloads from download client"/>
                </span>
            </div>
        </div>
    </div>

    <div class="x-completed-download-options advanced-setting">
        <div class="form-group">
            <label class="col-sm-3 control-label">Remove</label>

            <div class="col-sm-8">
                <div class="input-group">
                    <label class="checkbox toggle well">
                        <input type="checkbox" name="removeCompletedDownloads"/>
                        <p>
                            <span>Yes</span>
                            <span>No</span>
                        </p>

                        <div class="btn btn-primary slide-button"/>
                    </label>

                    <span class="help-inline-checkbox">
                        <i class="icon-sonarr-form-info" title="Remove imported downloads from download client history"/>
                    </span>
                </div>
            </div>
        </div>
    </div>
</fieldset>

<fieldset>
    <legend>Failed Download Handling</legend>
    <div class="form-group">
        <label class="col-sm-3 control-label">Redownload</label>

        <div class="col-sm-8">
            <div class="input-group">
                <label class="checkbox toggle well">
                    <input type="checkbox" name="autoRedownloadFailed" class="x-failed-auto-redownload"/>
                    <p>
                        <span>Yes</span>
                        <span>No</span>
                    </p>

                    <div class="btn btn-primary slide-button"/>
                </label>

                    <span class="help-inline-checkbox">
                    <i class="icon-sonarr-form-info" title="Automatically search for and attempt to download a different release"/>
                    </span>
            </div>
        </div>
    </div>
    <div class="x-failed-download-options advanced-setting">
        <div class="form-group ">
            <label class="col-sm-3 control-label">Remove</label>
            <div class="col-sm-8">
                <div class="input-group">
                    <label class="checkbox toggle well">
                        <input type="checkbox" name="removeFailedDownloads"/>
                        <p>
                            <span>Yes</span>
                            <span>No</span>
                        </p>

                        <div class="btn btn-primary slide-button"/>
                    </label>
                    <span class="help-inline-checkbox">
                    <i class="icon-sonarr-form-info" title="Remove failed downloads from download client history"/>
                    </span>
                </div>
            </div>
        </div>
    </div>
</fieldset>