@@ -32,144 +59,33 @@
-
- createLink('task', 'export', "execution=$executionID&orderBy=$orderBy&type=kanban");
- if(common::hasPriv('task', 'export')) echo html::a($link, " " . $lang->export, '', "class='btn btn-link iframe export' data-width='700'");
- ?>
-
-
';
- ?>
- execution = $executionID;
- $canCreateTask = common::hasPriv('task', 'create', $checkObject);
- $canBatchCreateTask = common::hasPriv('task', 'batchCreate', $checkObject);
- $canCreateBug = common::hasPriv('bug', 'create');
- $canBatchCreateBug = common::hasPriv('bug', 'batchCreate');
- $canCreateStory = ($productID and common::hasPriv('story', 'create'));
- $canBatchCreateStory = ($productID and common::hasPriv('story', 'batchCreate'));
- $canLinkStory = ($productID and common::hasPriv('execution', 'linkStory'));
- $canLinkStoryByPlane = ($productID and common::hasPriv('execution', 'importplanstories'));
- $hasStoryButton = ($canCreateStory or $canBatchCreateStory or $canLinkStory or $canLinkStoryByPlane);
- $hasTaskButton = ($canCreateTask or $canBatchCreateTask);
- $hasBugButton = ($canCreateBug or $canBatchCreateBug);
- ?>
-
-
-
-
-
- ";
- echo html::a('javascript:;', "", '', "data-toggle='dropdown' class='btn btn-link'");
- echo "-
- createLink('execution', 'importTask', "execution=$execution->id") : '#';
- echo "
- " . html::a($link, $lang->execution->importTask, '', $misc) . " "; - - $misc = common::hasPriv('execution', 'importBug') ? '' : "class=disabled"; - $link = common::hasPriv('execution', 'importBug') ? $this->createLink('execution', 'importBug', "execution=$execution->id") : '#'; - echo "
- " . html::a($link, $lang->execution->importBug, '', $misc) . " "; - ?> -
- ";
- if(common::hasPriv('execution', 'printKanban')) echo '
- ' .html::a($this->createLink('execution', 'printKanban', "executionID=$executionID"), " " . $lang->execution->printKanban, '', "class='iframe btn btn-link' id='printKanban' title='{$lang->execution->printKanban}' data-width='500'") . ' '; - echo '
- ' .html::a('javascript:fullScreen()', " " . $lang->execution->fullScreen, '', "class='btn btn-link' title='{$lang->execution->fullScreen}' data-width='500'") . ' '; - echo '
-
-
-
-
-
-
- -
- ' . html::a(helper::createLink('story', 'create', "productID=$productID&branch=0&moduleID=0&story=0&execution=$execution->id", '', true), $lang->execution->createStory, '', "class='iframe'") . '';?>
- ' . html::a(helper::createLink('story', 'batchCreate', "productID=$productID&branch=0&moduleID=0&story=0&execution=$execution->id", '', true), $lang->execution->batchCreateStroy, '', "class='iframe' data-width='90%'") . '';?>
- ' . html::a(helper::createLink('execution', 'linkStory', "execution=$execution->id", '', true), $lang->execution->linkStory, '', "class='iframe' data-width='90%'") . '';?>
- ' . html::a('#linkStoryByPlan', $lang->execution->linkStoryByPlan, '', 'data-toggle="modal"') . '';?>
- ';?>
- ' . html::a(helper::createLink('bug', 'create', "productID=$productID&branch=0&extra=executionID=$execution->id", '', true), $lang->bug->create, '', "class='iframe'") . '';?>
- ' . html::a(helper::createLink('bug', 'batchCreate', "productID=$productID&branch=0&executionID=$execution->id", '', true), $lang->bug->batchCreate, '', "class='iframe'") . '';?>
- ';?>
- ' . html::a(helper::createLink('task', 'create', "execution=$execution->id", '', true), $lang->task->create, '', "class='iframe'") . '';?>
- ' . html::a(helper::createLink('task', 'batchCreate', "execution=$execution->id", '', true), $lang->execution->batchCreateTask, '', "class='iframe'") . '';?>
-