diff --git a/module/testcase/view/create.html.php b/module/testcase/view/create.html.php
index 7be3d420a8..9712cd7476 100644
--- a/module/testcase/view/create.html.php
+++ b/module/testcase/view/create.html.php
@@ -34,6 +34,18 @@ foreach(explode(',', $config->testcase->create->requiredFields) as $field)
testcase->create;?>
+
+ app->loadLang('ai');
+ $prompt = $_SESSION['aiPrompt']['prompt'];
+ $objectId = $_SESSION['aiPrompt']['objectId'];
+ $isAudit = isset($_SESSION['auditPrompt']) && time() - $_SESSION['auditPrompt']['time'] < 10 * 60;
+ ?>
+ id&objectId=$objectId"), ' ' . $lang->ai->audit->regenerate, '', 'id="promptRegenerate" class="btn btn-link"'); ?>
+
+ id&objectId=$objectId"), $lang->ai->audit->designPrompt, '', 'id="promptAudit" class="btn btn-info iframe"'); ?>
+
+
createLink('custom', 'ajaxSaveCustomFields', 'module=testcase§ion=custom&key=createFields');?>
@@ -260,8 +272,12 @@ foreach(explode(',', $config->testcase->create->requiredFields) as $field)
|
-
- goback, '', 'class="btn btn-wide"') : html::backButton();?>
+ status == 'draft'): ?>
+ ai->prompts->action->publish, "id='promptPublish' data-promptId=$prompt->id", 'btn btn-primary btn-wide'); ?>
+
+
+ goback, '', 'class="btn btn-wide"') : html::backButton(); ?>
+
|