* show status on ai prompt buttons.
This commit is contained in:
@@ -290,3 +290,6 @@ $lang->ai->formSchema['story']['change']->properties->spec->description = 'Des
|
||||
$lang->ai->formSchema['story']['change']->properties->verify->type = 'string';
|
||||
$lang->ai->formSchema['story']['change']->properties->verify->description = 'Acceptance criteria of the story';
|
||||
$lang->ai->formSchema['story']['change']->required = array('title', 'spec', 'verify');
|
||||
|
||||
$lang->ai->promptMenu = new stdclass();
|
||||
$lang->ai->promptMenu->dropdownTitle = 'AI';
|
||||
|
||||
@@ -296,3 +296,6 @@ $lang->ai->formSchema['story']['change']->properties->spec->description = 'Des
|
||||
$lang->ai->formSchema['story']['change']->properties->verify->type = 'string';
|
||||
$lang->ai->formSchema['story']['change']->properties->verify->description = 'Acceptance criteria of the story';
|
||||
$lang->ai->formSchema['story']['change']->required = array('title', 'spec', 'verify');
|
||||
|
||||
$lang->ai->promptMenu = new stdclass();
|
||||
$lang->ai->promptMenu->dropdownTitle = 'AI';
|
||||
|
||||
@@ -290,3 +290,6 @@ $lang->ai->formSchema['story']['change']->properties->spec->description = 'Des
|
||||
$lang->ai->formSchema['story']['change']->properties->verify->type = 'string';
|
||||
$lang->ai->formSchema['story']['change']->properties->verify->description = 'Acceptance criteria of the story';
|
||||
$lang->ai->formSchema['story']['change']->required = array('title', 'spec', 'verify');
|
||||
|
||||
$lang->ai->promptMenu = new stdclass();
|
||||
$lang->ai->promptMenu->dropdownTitle = 'AI';
|
||||
|
||||
@@ -296,3 +296,6 @@ $lang->ai->formSchema['story']['change']->properties->spec->description = '需
|
||||
$lang->ai->formSchema['story']['change']->properties->verify->type = 'string';
|
||||
$lang->ai->formSchema['story']['change']->properties->verify->description = '需求的验收标准';
|
||||
$lang->ai->formSchema['story']['change']->required = array('title', 'spec', 'verify');
|
||||
|
||||
$lang->ai->promptMenu = new stdclass();
|
||||
$lang->ai->promptMenu->dropdownTitle = 'AI';
|
||||
|
||||
@@ -28,14 +28,14 @@
|
||||
$html = '';
|
||||
if(count($prompts) > 1)
|
||||
{
|
||||
$html .= '<div class="dropdown' . ((isset($menuOptions->class) ? ' ' . $menuOptions->class : '') . (isset($menuOptions->dropdownClass) ? ' ' . $menuOptions->dropdownClass : '')) . '"><button class="btn btn-link' . (isset($menuOptions->buttonClass) ? ' ' . $menuOptions->buttonClass : '') . '" type="button" data-toggle="dropdown">AI <i class="icon-caret-down"></i></button><ul class="dropdown-menu">';
|
||||
foreach($prompts as $prompt) $html .= '<li>' . html::commonButton($prompt->name, "title='{$prompt->desc}' style='width: 100%;'", 'btn btn-link') . '</li>';
|
||||
$html .= '<div class="dropdown' . ((isset($menuOptions->class) ? ' ' . $menuOptions->class : '') . (isset($menuOptions->dropdownClass) ? ' ' . $menuOptions->dropdownClass : '')) . '"><button class="btn btn-link' . (isset($menuOptions->buttonClass) ? ' ' . $menuOptions->buttonClass : '') . '" type="button" data-toggle="dropdown">' . $lang->ai->promptMenu->dropdownTitle . ' <i class="icon-caret-down"></i></button><ul class="dropdown-menu">';
|
||||
foreach($prompts as $prompt) $html .= '<li>' . html::commonButton($prompt->name . ($prompt->status != 'active' ? '<span class="label label-info label-badge">' . $lang->ai->prompts->statuses[$prompt->status] . '</span>' : ''), "title='{$prompt->desc}' style='width: 100%;'", 'btn btn-link text-left') . '</li>';
|
||||
$html .= '</ul></div>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$prompt = current($prompts);
|
||||
$html .= html::commonButton($prompt->name, "title='{$prompt->desc}'", 'btn btn-link' . ((isset($menuOptions->class) ? ' ' . $menuOptions->class : '') . (isset($menuOptions->buttonClass) ? ' ' . $menuOptions->buttonClass : '')));
|
||||
$html .= html::commonButton($prompt->name . ($prompt->status != 'active' ? '<span class="label label-info label-badge">' . $lang->ai->prompts->statuses[$prompt->status] . '</span>' : ''), "title='{$prompt->desc}'", 'btn btn-link' . ((isset($menuOptions->class) ? ' ' . $menuOptions->class : '') . (isset($menuOptions->buttonClass) ? ' ' . $menuOptions->buttonClass : '')));
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user