* show targetForm properly in prompts list.

This commit is contained in:
liwenrui
2023-07-05 16:04:13 +08:00
parent 2d39c0e364
commit fdbf04147f
+9 -1
View File
@@ -72,7 +72,15 @@
</td>
<td class='c-createdby'><?php echo $prompt->createdBy;?></td>
<td class='c-createddate'><?php echo $prompt->createdDate;?></td>
<td class='c-targetform'><?php echo $prompt->targetForm;?></td>
<td class='c-targetform'>
<?php
if($prompt->targetForm)
{
$targetFormPath = explode('.', $prompt->targetForm);
if(count($targetFormPath) == 2) echo $lang->ai->targetForm[$targetFormPath[0]]['common'] . ' / ' . $lang->ai->targetForm[$targetFormPath[0]][$targetFormPath[1]];
}
?>
</td>
<td class='c-description'><?php echo $prompt->desc;?></td>
<td class='text-center c-actions'>
<?php