* Change to new writing method.
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace zin;
|
||||
|
||||
formPanel
|
||||
(
|
||||
set::id('flowForm'),
|
||||
setID('flowForm'),
|
||||
set::actions(array('submit')),
|
||||
set::actionsClass('w-1/3'),
|
||||
span
|
||||
|
||||
@@ -15,7 +15,7 @@ div
|
||||
setClass('flex'),
|
||||
formPanel
|
||||
(
|
||||
set::id('closedExecutionForm'),
|
||||
setID('closedExecutionForm'),
|
||||
set::actions(array('submit')),
|
||||
setClass('flex-auto'),
|
||||
formGroup
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -11,7 +11,7 @@ declare(strict_types=1);
|
||||
namespace zin;
|
||||
formPanel
|
||||
(
|
||||
set::id('percentForm'),
|
||||
setID('percentForm'),
|
||||
set::actions(array('submit')),
|
||||
formRow
|
||||
(
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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¶ms=' . helper::safe64Encode("productID=$productID&branch=$branch&moduleID=$moduleID&storyID=$storyID&executionID=$executionID&plan=&type=$type")),
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user