* add step variable.
This commit is contained in:
@@ -161,6 +161,7 @@ class ai extends control
|
||||
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->inlink('promptSelectDataSource', "promptID=$promptID") . '#app=admin'));
|
||||
}
|
||||
|
||||
$this->view->step = 'role';
|
||||
$this->view->prompt = $prompt;
|
||||
$this->view->promptID = $promptID;
|
||||
$this->view->title = $this->lang->ai->prompts->assignRole . " {$this->lang->colon} " . $this->lang->ai->prompts->common;
|
||||
@@ -192,6 +193,7 @@ class ai extends control
|
||||
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->inlink('promptSetPurpose', "promptID=$promptID") . '#app=admin'));
|
||||
}
|
||||
|
||||
$this->view->step = 'data';
|
||||
$this->view->activeDataSource = empty($prompt->module) ? 'story' : $prompt->module;
|
||||
$this->view->dataSource = $this->config->ai->dataSource;
|
||||
$this->view->prompt = $prompt;
|
||||
@@ -225,10 +227,11 @@ class ai extends control
|
||||
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->inlink('promptSetTargetForm', "promptID=$promptID") . '#app=admin'));
|
||||
}
|
||||
|
||||
$this->view->step = 'purpose';
|
||||
$this->view->dataPreview = ''; // TODO: Provide data preview with model method.
|
||||
$this->view->prompt = $prompt;
|
||||
$this->view->promptID = $promptID;
|
||||
$this->view->title = $this->lang->ai->prompts->setPurpose . " {$this->lang->colon} " . $this->lang->ai->prompts->common;
|
||||
$this->view->title = $this->lang->ai->prompts->setPurpose . " {$this->lang->colon} " . $this->lang->ai->prompts->common;
|
||||
$this->view->position[] = $this->lang->ai->prompts->common;
|
||||
$this->display();
|
||||
}
|
||||
@@ -242,6 +245,7 @@ class ai extends control
|
||||
*/
|
||||
public function promptSetTargetForm($promptID)
|
||||
{
|
||||
$this->view->step = 'target';
|
||||
$this->view->promptID = $promptID;
|
||||
$this->view->title = $this->lang->ai->prompts->setTargetForm . " {$this->lang->colon} " . $this->lang->ai->prompts->common;
|
||||
$this->view->position[] = $this->lang->ai->prompts->common;
|
||||
@@ -257,6 +261,7 @@ class ai extends control
|
||||
*/
|
||||
public function promptFinalize($promptID)
|
||||
{
|
||||
$this->view->step = 'finalize';
|
||||
$this->view->promptID = $promptID;
|
||||
$this->view->title = $this->lang->ai->prompts->finalize . " {$this->lang->colon} " . $this->lang->ai->prompts->common;
|
||||
$this->view->position[] = $this->lang->ai->prompts->common;
|
||||
|
||||
Reference in New Issue
Block a user