* show actions on prompt detail page, task #97648.
This commit is contained in:
@@ -155,6 +155,7 @@ class ai extends control
|
||||
$this->view->dataPreview = $this->ai->generateDemoDataPrompt($prompt->module, $prompt->source);
|
||||
$this->view->prompt = $prompt;
|
||||
$this->view->preAndNext = $this->loadModel('common')->getPreAndNextObject('prompt', $id);
|
||||
$this->view->actions = $this->loadModel('action')->getList('prompt', $id);
|
||||
$this->view->title = "{$this->lang->ai->prompts->common}#{$prompt->id} $prompt->name";
|
||||
$this->view->position[] = $this->lang->ai->prompts->common;
|
||||
$this->view->users = $this->user->getPairs('noletter');
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
.detail-title {
|
||||
.prompt-details .detail-title {
|
||||
font-weight: normal;
|
||||
color:#838a9d;
|
||||
}
|
||||
.detail-title::before {
|
||||
.prompt-details .detail-title::before {
|
||||
content: '[';
|
||||
}
|
||||
.detail-title::after {
|
||||
.prompt-details .detail-title::after {
|
||||
content: ']';
|
||||
}
|
||||
|
||||
.detail-content + .detail-title {
|
||||
.prompt-details .detail-content + .detail-title {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
<div id="mainContent" class="main-row">
|
||||
<div class="main-col col-8">
|
||||
<div class="cell">
|
||||
<div class="cell prompt-details">
|
||||
<div class="detail">
|
||||
<div class="detail-title"><?php echo $lang->ai->prompts->role?></div>
|
||||
<div class="detail-content article-content"><?php echo $prompt->role?></div>
|
||||
@@ -60,6 +60,7 @@
|
||||
?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell"><?php include '../../common/view/action.html.php';?></div>
|
||||
<div class='main-actions'>
|
||||
<div class="btn-toolbar">
|
||||
<?php echo html::a(helper::createLink('ai', 'prompts'), '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn'");?>
|
||||
|
||||
Reference in New Issue
Block a user