+ prompt details view.
This commit is contained in:
@@ -135,6 +135,24 @@ class ai extends control
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/**
|
||||
* View prompt details.
|
||||
*
|
||||
* @param int $id
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function promptView($id)
|
||||
{
|
||||
$prompt = $this->ai->getPromptById($id);
|
||||
|
||||
$this->view->prompt = $prompt;
|
||||
$this->view->title = $this->lang->ai->prompts->common;
|
||||
$this->view->position[] = $this->lang->ai->prompts->common;
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a prompt.
|
||||
*
|
||||
|
||||
@@ -35,6 +35,7 @@ $lang->ai->prompts->createdBy = 'Creator';
|
||||
$lang->ai->prompts->createdDate = 'Created Date';
|
||||
$lang->ai->prompts->targetForm = 'Target Form';
|
||||
$lang->ai->prompts->funcDesc = 'Function Description';
|
||||
$lang->ai->prompts->deleted = 'Deleted';
|
||||
|
||||
$lang->ai->prompts->summary = 'There are %s prompts on this page.';
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ $lang->ai->prompts->createdBy = 'Creator';
|
||||
$lang->ai->prompts->createdDate = 'Created Date';
|
||||
$lang->ai->prompts->targetForm = 'Target Form';
|
||||
$lang->ai->prompts->funcDesc = 'Function Description';
|
||||
$lang->ai->prompts->deleted = 'Deleted';
|
||||
|
||||
$lang->ai->prompts->summary = 'There are %s prompts on this page.';
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ $lang->ai->prompts->createdBy = 'Creator';
|
||||
$lang->ai->prompts->createdDate = 'Created Date';
|
||||
$lang->ai->prompts->targetForm = 'Target Form';
|
||||
$lang->ai->prompts->funcDesc = 'Function Description';
|
||||
$lang->ai->prompts->deleted = 'Deleted';
|
||||
|
||||
$lang->ai->prompts->summary = 'There are %s prompts on this page.';
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ $lang->ai->prompts->createdBy = '创建者';
|
||||
$lang->ai->prompts->createdDate = '创建时间';
|
||||
$lang->ai->prompts->targetForm = '表单';
|
||||
$lang->ai->prompts->funcDesc = '功能描述';
|
||||
$lang->ai->prompts->deleted = '已删除';
|
||||
|
||||
$lang->ai->prompts->summary = '本页共 %s 个提词。';
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
<tr>
|
||||
<td class='c-id'><?php echo $prompt->id;?></td>
|
||||
<td class='c-name' title='<?php echo $prompt->name;?>'>
|
||||
<?php echo $prompt->name;?>
|
||||
<?php echo html::a(helper::createLink('ai', 'promptview', "id=$prompt->id"), $prompt->name, '_self', "title='$prompt->name'");?>
|
||||
<?php if($prompt->status == 'draft') echo "<span class='label label-light label-badge'>{$this->lang->ai->prompts->statuses[$prompt->status]}</span>";?>
|
||||
</td>
|
||||
<td class='c-createdby'><?php echo $prompt->createdBy;?></td>
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* The ai prompt details view file of ai module of ZenTaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
||||
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
||||
* @author Wenrui LI <liwenrui@easycorp.ltd>
|
||||
* @package ai
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php echo html::a(helper::createLink('ai', 'prompts'), '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-secondary'");?>
|
||||
<div class="divider"></div>
|
||||
<div class="page-title">
|
||||
<span class="label label-id"><?php echo $prompt->id?></span>
|
||||
<span class="text" title='<?php echo $prompt->name;?>'><?php echo $prompt->name;?></span>
|
||||
<?php if($prompt->deleted) echo "<span class='label label-danger'>{$lang->ai->prompts->deleted}</span>";?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-toolbar pull-right">
|
||||
<?php echo html::a(helper::createLink('ai', 'createprompt'), "<i class='icon icon-plus'></i> {$lang->ai->prompts->create}", '', "class='btn btn-primary iframe'");?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
Reference in New Issue
Block a user