/**
     * Lists all Issues models.
     * @param string $type The parent type of the issue
     * @param int $id The id of the parent
     * @return mixed
     */
    public function actionIndex($type, $id)
    {
        Response::viewOptions(null, ['args' => ["content" => IssueTracker::widget(["parentId" => $id, "parentType" => $type, 'useModal' => false, 'enableComments' => \Yii::$app->request->get(Issues::COMMENT_PARAM)])], 'modalOptions' => ['contentOnly' => true], 'js' => \Yii::$app->request->isAjax ? new \yii\web\JsExpression('$nitm.onModuleLoad("tools", function (module) {
				module.initDefaults("[role=\\"entityIssues\\"]");
			});') : ''], true);
        return $this->renderResponse(null, null, \Yii::$app->request->isAjax);
    }
示例#2
0
 public function issueTrackerWidget($options)
 {
     return \nitm\widgets\issueTracker\IssueTracker::widget($options);
 }