* Change to new writing method.

This commit is contained in:
wangxuepeng
2023-11-17 17:24:52 +08:00
parent 37e16e5662
commit 912d4ba394
11 changed files with 30 additions and 18 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ div
$sidebarMenu,
formPanel
(
set::id('closedExecutionForm'),
setID('closedExecutionForm'),
set::actions(array('submit')),
set::actionsClass('w-2/3'),
setClass('flex-auto ml-4'),
+1 -1
View File
@@ -12,7 +12,7 @@ namespace zin;
formPanel
(
set::id('flowForm'),
setID('flowForm'),
set::actions(array('submit')),
set::actionsClass('w-1/3'),
span
+1 -1
View File
@@ -15,7 +15,7 @@ div
setClass('flex'),
formPanel
(
set::id('closedExecutionForm'),
setID('closedExecutionForm'),
set::actions(array('submit')),
setClass('flex-auto'),
formGroup
+1 -1
View File
@@ -17,7 +17,7 @@ div
$sidebarMenu,
formPanel
(
set::id('limitTaskDateForm'),
setID('limitTaskDateForm'),
set::actions(array('submit')),
set::actionsClass('w-2/3'),
setClass('flex-auto ml-4'),
+1 -1
View File
@@ -11,7 +11,7 @@ declare(strict_types=1);
namespace zin;
formPanel
(
set::id('percentForm'),
setID('percentForm'),
set::actions(array('submit')),
formRow
(
+1 -1
View File
@@ -17,7 +17,7 @@ div
$sidebarMenu,
formPanel
(
set::id('closedProductForm'),
setID('closedProductForm'),
set::actions(array('submit')),
set::actionsClass('w-2/3'),
setClass('flex-auto ml-4'),
+2 -2
View File
@@ -51,12 +51,12 @@ if(common::hasPriv('custom', 'resetRequired'))
if(!in_array($module, array('productplan', 'release', 'testsuite', 'testreport', 'caselib', 'doc')) && $config->vision == 'rnd') include 'sidebar.html.php';
div
(
set::id('mainContent'),
setID('mainContent'),
setClass('row has-sidebar-left'),
isset($sidebarMenu) ? $sidebarMenu : null,
formPanel
(
set::id('requiredForm'),
setID('requiredForm'),
setClass('flex-auto'),
setClass(isset($sidebarMenu) ? 'ml-0.5' : null),
set::actionsClass('w-1/2'),
+17 -5
View File
@@ -211,8 +211,14 @@ elseif(($module == 'story' || $module == 'testcase') && $field == 'review')
(
'help',
setClass('pl-4 pt-2'),
set('data-toggle', 'tooltip'),
set('data-title', sprintf($lang->custom->notice->forceNotReview, $lang->$module->common))
setData
(
array
(
'toggle' => 'tooltip',
'title' => sprintf($lang->custom->notice->forceNotReview, $lang->$module->common)
)
)
)
)
);
@@ -235,8 +241,14 @@ elseif(($module == 'story' || $module == 'testcase') && $field == 'review')
(
'help',
setClass('pl-4 pt-2'),
set('data-toggle', 'tooltip'),
set('data-title', sprintf($lang->custom->notice->forceReview, $lang->$module->common))
setData
(
array
(
'toggle' => 'tooltip',
'title' => sprintf($lang->custom->notice->forceReview, $lang->$module->common)
)
)
)
)
);
@@ -475,7 +487,7 @@ else
div
(
set::id('mainContent'),
setID('mainContent'),
setClass('row has-sidebar-left'),
$sidebarMenu,
formPanel
+1 -1
View File
@@ -41,7 +41,7 @@ formBatchPanel
(
on::click('#saveButton', 'customSubmit'),
on::click('#saveDraftButton', 'customSubmit'),
set::id('dataform'),
setID('dataform'),
$stories ? set::data($stories) : null,
set::title($storyID ? $storyTitle . $lang->colon . $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")),
+2 -2
View File
@@ -27,10 +27,10 @@ $data = array();
foreach($stories2Link as $story) $data[] = $this->story->formatStoryForList($story);
modalHeader(set::title($story->type == 'story' ? $lang->story->linkStoriesAB : $lang->story->linkRequirementsAB));
div(setID('searchFormPanel'), set('data-module', 'story'), searchToggle(set::open(true), set::module('story')));
div(setID('searchFormPanel'), setData(array('module' => 'story')), searchToggle(set::open(true), set::module('story')));
dtable
(
set::id('linkStories'),
setID('linkStories'),
set::userMap($users),
set::cols($cols),
set::data($data),
+2 -2
View File
@@ -20,10 +20,10 @@ if(!$this->story->checkForceReview())
{
$needNotReviewBox = span
(
set('class', 'input-group-addon'),
setClass('input-group-addon'),
checkbox
(
set::id('needNotReview'),
setID('needNotReview'),
set::name('needNotReview'),
set::text($lang->story->needNotReview),
set::value(1)