diff --git a/app/resources/locales/en_US/operation.po b/app/resources/locales/en_US/operation.po index d89dc246b..d56f59f53 100644 --- a/app/resources/locales/en_US/operation.po +++ b/app/resources/locales/en_US/operation.po @@ -54,6 +54,9 @@ msgstr "Add member: " msgid "add.queue" msgstr "Queue Job to Add {0}" +msgid "add.queue.desc" +msgstr "If checked, this update will not take effect immediately. It will be scheduled as a Job and applied when the Job runs. This can be helpful when nesting large groups." + msgid "adopt" msgstr "Adopt" @@ -324,6 +327,9 @@ msgstr "Provisioning Status" msgid "ProvisioningTargets.provision.all" msgstr "Reprovision All" +msgid "queue.job" +msgstr "Queue Job" + msgid "Types.restore" msgstr "Add/Restore Default Types" diff --git a/app/templates/GroupNestings/fields.inc b/app/templates/GroupNestings/fields.inc index 1cd0d6f12..fbf4b8980 100644 --- a/app/templates/GroupNestings/fields.inc +++ b/app/templates/GroupNestings/fields.inc @@ -67,9 +67,18 @@ $fields[] = 'negate'; if($vv_action == 'add') { // Allow the admin to request background creation of the Nesting $fields['queue'] = [ + // We will expose the checkbox in groupedControls to ensure proper styling because this is not a + // model field with a type (boolean) and will therefore not render correctly otherwise. 'fieldLabel' => __d('operation', 'add.queue', [__d('controller', 'GroupNestings', [1])]), - 'type' => 'checkbox', - 'checked' => '' + 'labelIsTextOnly' => true, + 'fieldDescription' => __d('operation','add.queue.desc'), + 'groupedControls' => [ + 'queue' => [ + 'type' => 'checkbox', + 'label' => __d('operation', 'queue.job'), + 'class' => 'form-check-input' + ] + ] ]; }