* refactor.
This commit is contained in:
+26
-52
@@ -123,6 +123,7 @@ $config->ai->targetFormVars['execution'] = array();
|
||||
$config->ai->menuPrint = new stdclass();
|
||||
/**
|
||||
* Menu location definations, defines acceptable module-methods and on page menu locations, etc.
|
||||
* Some are identical except for module name, reuse them as much as possible.
|
||||
*
|
||||
* @param string $module prompt module name (actual module could differ from prompt module name)
|
||||
* @param string $targetContainer injection target container selector
|
||||
@@ -135,71 +136,44 @@ $config->ai->menuPrint = new stdclass();
|
||||
* @see ./view/promptmenu.html.php
|
||||
*/
|
||||
$config->ai->menuPrint->locations = array();
|
||||
$config->ai->menuPrint->locations['story']['view'] = (object)array(
|
||||
$config->ai->menuPrint->locations['story']['view'] = (object)array(
|
||||
'module' => 'story',
|
||||
'targetContainer' => '#mainContent .cell:first-of-type .detail:first-of-type .detail-title',
|
||||
'class' => 'pull-right',
|
||||
'stylesheet' => '#mainContent .cell:first-of-type .detail:first-of-type .detail-title>button {margin-left: 10px;} #mainContent .cell:first-of-type .detail:first-of-type .detail-content {margin-top: 12px;}'
|
||||
);
|
||||
$config->ai->menuPrint->locations['projectstory']['view'] = $config->ai->menuPrint->locations['story']['view'];
|
||||
$config->ai->menuPrint->locations['execution']['storyView'] = $config->ai->menuPrint->locations['story']['view'];
|
||||
$config->ai->menuPrint->locations['execution']['view'] = (object)array(
|
||||
$config->ai->menuPrint->locations['task']['view'] = $config->ai->menuPrint->locations['story']['view'];
|
||||
$config->ai->menuPrint->locations['task']['view']->module = 'task';
|
||||
$config->ai->menuPrint->locations['testcase']['view'] = $config->ai->menuPrint->locations['story']['view'];
|
||||
$config->ai->menuPrint->locations['testcase']['view']->module = 'case';
|
||||
$config->ai->menuPrint->locations['bug']['view'] = $config->ai->menuPrint->locations['story']['view'];
|
||||
$config->ai->menuPrint->locations['bug']['view']->module = 'bug';
|
||||
$config->ai->menuPrint->locations['projectstory']['view'] = $config->ai->menuPrint->locations['story']['view'];
|
||||
$config->ai->menuPrint->locations['execution']['storyView'] = $config->ai->menuPrint->locations['story']['view'];
|
||||
|
||||
$config->ai->menuPrint->locations['execution']['view'] = (object)array(
|
||||
'module' => 'execution',
|
||||
'injectMethod' => 'prepend',
|
||||
'targetContainer' => '#mainContent.main-row > .col-4.side-col .detail:first-child',
|
||||
'class' => 'pull-right'
|
||||
);
|
||||
$config->ai->menuPrint->locations['product']['view'] = (object)array(
|
||||
'module' => 'product',
|
||||
'injectMethod' => 'prepend',
|
||||
'targetContainer' => '#mainContent.main-row > .col-8.main-col .detail:first-child',
|
||||
'class' => 'pull-right'
|
||||
);
|
||||
$config->ai->menuPrint->locations['productplan']['view'] = (object)array(
|
||||
$config->ai->menuPrint->locations['product']['view'] = $config->ai->menuPrint->locations['execution']['view'];
|
||||
$config->ai->menuPrint->locations['product']['view']->module = 'product';
|
||||
$config->ai->menuPrint->locations['project']['view'] = $config->ai->menuPrint->locations['execution']['view'];
|
||||
$config->ai->menuPrint->locations['project']['view']->module = 'project';
|
||||
|
||||
$config->ai->menuPrint->locations['productplan']['view'] = (object)array(
|
||||
'module' => 'productplan',
|
||||
'injectMethod' => 'append',
|
||||
'targetContainer' => '#mainMenu>.btn-toolbar.pull-right',
|
||||
);
|
||||
$config->ai->menuPrint->locations['projectplan']['view'] = $config->ai->menuPrint->locations['productplan']['view'];
|
||||
$config->ai->menuPrint->locations['project']['view'] = (object)array(
|
||||
'module' => 'project',
|
||||
'injectMethod' => 'append',
|
||||
'targetContainer' => '#mainMenu>.btn-toolbar.pull-right',
|
||||
);
|
||||
$config->ai->menuPrint->locations['release']['view'] = (object)array(
|
||||
'module' => 'release',
|
||||
'injectMethod' => 'append',
|
||||
'targetContainer' => '#mainMenu>.btn-toolbar.pull-right',
|
||||
);;
|
||||
$config->ai->menuPrint->locations['projectrelease']['view'] = $config->ai->menuPrint->locations['release']['view'];
|
||||
$config->ai->menuPrint->locations['project']['view'] = (object)array(
|
||||
'module' => 'project',
|
||||
'injectMethod' => 'prepend',
|
||||
'targetContainer' => '#mainContent.main-row > .col-4.side-col .detail:first-child',
|
||||
'class' => 'pull-right'
|
||||
);
|
||||
$config->ai->menuPrint->locations['task']['view'] = (object)array(
|
||||
'module' => 'task',
|
||||
'injectMethod' => 'append',
|
||||
'targetContainer' => '#mainContent .cell:first-of-type .detail:first-of-type .detail-title',
|
||||
'class' => 'pull-right',
|
||||
'stylesheet' => '#mainContent .cell:first-of-type .detail:first-of-type .detail-title>button {margin-left: 10px;} #mainContent .cell:first-of-type .detail:first-of-type .detail-content {margin-top: 12px;}'
|
||||
);
|
||||
$config->ai->menuPrint->locations['testcase']['view'] = (object)array(
|
||||
'module' => 'case',
|
||||
'injectMethod' => 'append',
|
||||
'targetContainer' => '#mainContent .cell:first-of-type .detail:first-of-type .detail-title',
|
||||
'class' => 'pull-right',
|
||||
'stylesheet' => '#mainContent .cell:first-of-type .detail:first-of-type .detail-title>button {margin-left: 10px;} #mainContent .cell:first-of-type .detail:first-of-type .detail-content {margin-top: 12px;}'
|
||||
);
|
||||
$config->ai->menuPrint->locations['bug']['view'] = (object)array(
|
||||
'module' => 'bug',
|
||||
'injectMethod' => 'append',
|
||||
'targetContainer' => '#mainContent .cell:first-of-type .detail:first-of-type .detail-title',
|
||||
'class' => 'pull-right',
|
||||
'stylesheet' => '#mainContent .cell:first-of-type .detail:first-of-type .detail-title>button {margin-left: 10px;} #mainContent .cell:first-of-type .detail:first-of-type .detail-content {margin-top: 12px;}'
|
||||
);
|
||||
$config->ai->menuPrint->locations['doc']['view'] = (object)array(
|
||||
$config->ai->menuPrint->locations['projectplan']['view'] = $config->ai->menuPrint->locations['productplan']['view'];
|
||||
$config->ai->menuPrint->locations['project']['view'] = $config->ai->menuPrint->locations['productplan']['view'];
|
||||
$config->ai->menuPrint->locations['project']['view']->module = 'project';
|
||||
$config->ai->menuPrint->locations['release']['view'] = $config->ai->menuPrint->locations['productplan']['view'];
|
||||
$config->ai->menuPrint->locations['release']['view']->module = 'release';
|
||||
$config->ai->menuPrint->locations['projectrelease']['view'] = $config->ai->menuPrint->locations['productplan']['view'];
|
||||
|
||||
$config->ai->menuPrint->locations['doc']['view'] = (object)array(
|
||||
'module' => 'doc',
|
||||
'injectMethod' => 'prepend',
|
||||
'targetContainer' => '#mainMenu>.btn-toolbar.pull-right',
|
||||
|
||||
Reference in New Issue
Block a user