* @package ai * @link https://www.zentao.net */ ?> app->tab = 'admin'; // Force tab to be `admin` so that feature menu will be printed correctly. ?>
ai->prompts->role;?>
role;?>
ai->prompts->characterization;?>
characterization;?>
ai->prompts->object;?>
module ? $this->lang->ai->dataSource[$prompt->module]['common'] : ''; ?>
ai->prompts->field;?>
ai->prompts->setPurpose;?>
purpose;?>
ai->prompts->elaboration;?>
elaboration;?>
ai->prompts->selectTargetForm;?>
targetForm)) echo ''; else { $targetForm = explode('.', $prompt->targetForm); echo $this->lang->ai->targetForm[$targetForm[0]][$targetForm[1]]; } ?>
config->edition != 'open'): ?>
' . $lang->goback, '', "class='btn'"); ?> deleted): ?> status == 'draft' && (common::hasPriv('ai', 'promptassignrole') || common::hasPriv('ai', 'promptaudit') || common::hasPriv('ai', 'publish'))) || ($prompt->status != 'draft' && common::hasPriv('ai', 'unpublish'))): ?>
status == 'draft') echo html::a(helper::createLink('ai', 'promptassignrole', "prompt=$prompt->id"), ' ' . $lang->ai->prompts->action->design, '', "class='btn'"); ?> status == 'draft' && $this->ai->isExecutable($prompt)) echo html::a($this->ai->getTestingLocation($prompt), ' ' . $lang->ai->prompts->action->test, '', "class='btn prompt-audit-btn'"); ?> status == 'draft' && $this->ai->isExecutable($prompt)) echo html::a(helper::createLink('ai', 'promptpublish', "id={$prompt->id}"), ' ' . $lang->ai->prompts->action->publish, '', "class='btn'"); ?> status == 'active') echo html::a(helper::createLink('ai', 'promptunpublish', "id={$prompt->id}"), ' ' . $lang->ai->prompts->action->unpublish, '', "class='btn' id='unpublish-btn'"); ?>
id"), '', '', "class='btn' title='{$lang->ai->prompts->action->edit}'"); ?> id"), '', '', "class='btn deleter' title='{$lang->ai->prompts->action->delete}'"); ?>
prompt->module; ?> module ? $this->lang->ai->dataSource[$prompt->module]['common'] : ''; ?>
prompt->desc; ?> desc; ?>
prompt->status; ?> ai->prompts->statuses[$prompt->status]; ?>
prompt->model; ?> ai->models->typeList['openai-gpt35']; ?>
action, array('published', 'unpublished'))) $lastPublishAction = $action; break; } ?> status == 'active'):?>
prompt->createdBy; ?> createdBy) . $lang->at . $prompt->createdDate;?>
ai->prompts->publishedBy; ?> createdBy : $lastPublishAction->actor);?>
ai->prompts->publishedBy : $lang->ai->prompts->draftedBy;?> actor);?>
prompt->editedBy; ?> editedBy ? zget($users, $prompt->editedBy) . $lang->at . $prompt->editedDate : '';?>