* task #7126, add program create guide modal page.

This commit is contained in:
Catouse
2020-05-07 16:40:32 +08:00
parent 8c8b845cda
commit 58c44db0f7
8 changed files with 74 additions and 11 deletions
+6 -1
View File
@@ -27,7 +27,7 @@ class program extends control
{
$this->commonAction();
if(common::hasPriv('program', 'create')) $this->lang->pageActions = html::a($this->createLink('program', 'create'), "<i class='icon icon-sm icon-plus'></i> " . $this->lang->program->create, '', "class='btn btn-primary'");
if(common::hasPriv('program', 'create')) $this->lang->pageActions = html::a($this->createLink('program', 'createguide'), "<i class='icon icon-sm icon-plus'></i> " . $this->lang->program->create, '', "class='btn btn-primary' data-toggle='modal' data-type='ajax'");
$programType = $this->cookie->programType;
@@ -45,6 +45,11 @@ class program extends control
$this->display();
}
public function createGuide()
{
$this->display();
}
public function create($type = 'scrum', $copyProgramID = '')
{
$this->commonAction();