Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/resources/locales/en_US/operation.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"

Expand Down
13 changes: 11 additions & 2 deletions app/templates/GroupNestings/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]
]
];
}

Expand Down