* [reafc] refactor batchCreate page of task and story module.

This commit is contained in:
sunhao
2024-07-17 13:34:48 +08:00
committed by 孙广明
parent a7cdf40ac2
commit 9bfe564086
4 changed files with 4 additions and 14 deletions
+3 -3
View File
@@ -15,8 +15,6 @@ include($this->app->getModuleRoot() . 'ai/ui/inputinject.html.php');
/* ====== Preparing and processing page data ====== */
jsVar('executionID', $execution->id);
jsVar('storyTasks', $storyTasks);
jsVar('taskConsumed', $taskConsumed);
jsVar('addChildTask', $lang->task->addChildTask);
/* zin: Set variables to define picker options for form. */
$storyItem = '';
@@ -145,13 +143,15 @@ formBatchPanel
set::title($lang->task->batchCreate),
set::pasteField('name'),
set::customFields(array('list' => $customFields, 'show' => explode(',', $showFields), 'key' => 'batchCreateFields')),
set::headingActionsClass('flex-auto'),
set::headingActionsClass('flex-auto row-reverse justify-between w-11/12'),
$taskConsumed > 0 ? on::inited()->call('zui.Modal.alert', $lang->task->addChildTask) : null,
to::headingActions
(
checkbox
(
setID('zeroTaskStory'),
set::text($lang->story->zeroTask),
set::rootClass('items-center'),
on::change('toggleZeroTaskStory')
)
),