* Adjust for batch form config for filter config.

This commit is contained in:
wangyidong
2023-07-07 16:17:54 +08:00
parent 8eb444014e
commit 80a09a964f
6 changed files with 18 additions and 56 deletions
+6 -4
View File
@@ -41,18 +41,20 @@ $fnGenerateCustomizedFields = function() use ($showFields, $customFields)
formBatchPanel
(
on::click('#saveButton', 'customSubmit'),
on::click('#saveDraftButton', 'customSubmit'),
set::id('dataform'),
set::title($storID ? $storyTitle . ' - ' . $this->lang->story->subdivide : $this->lang->story->batchCreate),
set::uploadParams('module=story&params=' . helper::safe64Encode("productID=$productID&branch=$branch&moduleID=$moduleID&storyID=$storyID&executionID=$executionID&plan=&type=$type")),
set::pasteField('title'),
set::ajax(array('beforeSend' => jsRaw('window.beforeSubmitBatchCreateForm'))),
set::customFields(array('items' => $fnGenerateCustomizedFields())),
set::items($fnGenerateFields()),
set::onRenderRow(jsRaw('renderRowData')),
set::actions(array
(
array('text' => $lang->save, 'onclick' => 'window.onClickActionBtn(event)', 'id' => 'save', 'btnType' => 'submit', 'class' => 'primary'),
array('text' => $lang->story->saveDraft,'onclick' => 'window.onClickActionBtn(event)', 'id' => 'saveDraft', 'btnType' => 'submit', 'class' => 'secondary'),
array('text' => $lang->goback)
array('text' => $lang->save, 'id' => 'saveButton', 'class' => 'primary'),
array('text' => $lang->story->saveDraft, 'id' => 'saveDraftButton', 'class' => 'secondary'),
array('text' => $lang->goback, 'data-back' => 'APP', 'class' => 'open-url'),
))
);