* add jump back location input radio.
This commit is contained in:
@@ -325,3 +325,8 @@ $lang->ai->execute->fail = 'Prompt execution failed.';
|
||||
|
||||
$lang->ai->audit = new stdclass();
|
||||
$lang->ai->audit->designPrompt = 'Prompt Design';
|
||||
$lang->ai->audit->afterSave = 'After saving,';
|
||||
|
||||
$lang->ai->audit->backLocationList = array();
|
||||
$lang->ai->audit->backLocationList[0] = 'back to audit page.';
|
||||
$lang->ai->audit->backLocationList[1] = 'back to audit page and regenerate.';
|
||||
|
||||
@@ -325,3 +325,8 @@ $lang->ai->execute->fail = '提词执行失败';
|
||||
|
||||
$lang->ai->audit = new stdclass();
|
||||
$lang->ai->audit->designPrompt = '提词设计';
|
||||
$lang->ai->audit->afterSave = '保存后';
|
||||
|
||||
$lang->ai->audit->backLocationList = array();
|
||||
$lang->ai->audit->backLocationList[0] = '返回调试页面';
|
||||
$lang->ai->audit->backLocationList[1] = '返回调试页面并重新生成';
|
||||
|
||||
@@ -10,19 +10,19 @@
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<?php include '../../common/view/header.lite.html.php'; ?>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='center-block'>
|
||||
<div class="main-header">
|
||||
<p>
|
||||
<?php echo $this->lang->ai->audit->designPrompt;?>
|
||||
<strong><?php echo $object->{$prompt->module}->title ?></strong>
|
||||
<span class='label label-id'> <?php echo $object->{$prompt->module}->id;?></span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="bg-gray-3" style="display: flex;">
|
||||
<div style="flex-basis: 50%; flex-grow: 1;padding: 5px 10px; border-right: #E6EAF1 1px solid">
|
||||
<form method="post" class="main-form form-ajax" target="hiddenwin">
|
||||
<form method="post" class="main-form form-ajax" target="hiddenwin">
|
||||
<div class='center-block'>
|
||||
<div class="main-header">
|
||||
<p>
|
||||
<?php echo $this->lang->ai->audit->designPrompt; ?>
|
||||
<strong><?php echo $object->{$prompt->module}->title ?></strong>
|
||||
<span class='label label-id'> <?php echo $object->{$prompt->module}->id; ?></span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="bg-gray-3" style="display: flex;">
|
||||
<div style="flex-basis: 50%; flex-grow: 1;padding: 5px 10px; border-right: #E6EAF1 1px solid">
|
||||
<h4><?php echo $this->lang->ai->prompts->assignRole; ?></h4>
|
||||
<div class='content-row'>
|
||||
<div class='input-label'><span><?php echo $this->lang->ai->prompts->role; ?></span></div>
|
||||
@@ -74,29 +74,34 @@
|
||||
<div class='input-label'
|
||||
style="text-align: left;"><?php echo $this->lang->ai->targetForm[$prompt->module][explode('.', $prompt->targetForm)[1]]; ?></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div style="flex-basis: 50%; flex-grow: 1; display: flex; flex-direction: column; word-break: break-all;">
|
||||
<div style="padding: 5px 10px; border-bottom: #E6EAF1 1px solid">
|
||||
<h4 style="margin-bottom: 24px;"><?php echo sprintf($this->lang->ai->models->promptFor, $this->lang->ai->models->typeList['openai-gpt35']);?></h4>
|
||||
<p class="text-gray"><?php echo $this->lang->ai->prompts->assignRole;?></p>
|
||||
<p id="roleDisplay"><?php echo $prompt->role; ?></p>
|
||||
<p id="characterizationDisplay"><?php echo $prompt->characterization; ?></p>
|
||||
</div>
|
||||
<div style="padding: 5px 10px; border-bottom: #E6EAF1 1px solid">
|
||||
<p class="text-gray"><?php echo $this->lang->ai->prompts->selectDataSource;?></p>
|
||||
<p><?php echo $dataPrompt; ?></p>
|
||||
</div>
|
||||
<div style="padding: 5px 10px;">
|
||||
<p class="text-gray"><?php echo $this->lang->ai->prompts->setPurpose;?></p>
|
||||
<p id="purposeDisplay"><?php echo $prompt->purpose;?></p>
|
||||
<p id="elaborationDisplay"><?php echo $prompt->elaboration;?></p>
|
||||
<div style="flex-basis: 50%; flex-grow: 1; display: flex; flex-direction: column; word-break: break-all;">
|
||||
<div style="padding: 5px 10px; border-bottom: #E6EAF1 1px solid">
|
||||
<h4
|
||||
style="margin-bottom: 24px;"><?php echo sprintf($this->lang->ai->models->promptFor, $this->lang->ai->models->typeList['openai-gpt35']); ?></h4>
|
||||
<p class="text-gray"><?php echo $this->lang->ai->prompts->assignRole; ?></p>
|
||||
<p id="roleDisplay"><?php echo $prompt->role; ?></p>
|
||||
<p id="characterizationDisplay"><?php echo $prompt->characterization; ?></p>
|
||||
</div>
|
||||
<div style="padding: 5px 10px; border-bottom: #E6EAF1 1px solid">
|
||||
<p class="text-gray"><?php echo $this->lang->ai->prompts->selectDataSource; ?></p>
|
||||
<p><?php echo $dataPrompt; ?></p>
|
||||
</div>
|
||||
<div style="padding: 5px 10px;">
|
||||
<p class="text-gray"><?php echo $this->lang->ai->prompts->setPurpose; ?></p>
|
||||
<p id="purposeDisplay"><?php echo $prompt->purpose; ?></p>
|
||||
<p id="elaborationDisplay"><?php echo $prompt->elaboration; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-top: 15px;">
|
||||
<p style="display: inline-block"><?php echo $this->lang->ai->audit->afterSave; ?></p>
|
||||
<?php echo html::radio('backLocation', $this->lang->ai->audit->backLocationList, 1); ?>
|
||||
</div>
|
||||
<div style="display: flex; justify-content: center; margin-top: 10px;">
|
||||
<?php echo html::submitButton($this->lang->save, '', 'btn btn-primary disabled'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; justify-content: center; margin-top: 10px;">
|
||||
<?php echo html::submitButton($this->lang->save, '', 'btn btn-primary disabled');?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.lite.html.php';?>
|
||||
<?php include '../../common/view/footer.lite.html.php'; ?>
|
||||
|
||||
Reference in New Issue
Block a user