Debug v22

This commit is contained in:
ldestailleur 2025-03-27 14:18:52 +01:00
parent 6f9d1a50dd
commit 6361c1032b
7 changed files with 15 additions and 5 deletions

View file

@ -799,7 +799,7 @@ if ($action == 'create') { // aaa
// Print mail form
print load_fiche_titre($langs->trans("NewMailing"), $availablelink, 'object_email');
print dol_get_fiche_head(array(), '', '', 0, '', 0, '', '');
print dol_get_fiche_head(array(), '', '', -3, '', 0, '', 'noborderbottom');
print '<table class="border centpercent">';

View file

@ -112,7 +112,7 @@ class FormAI extends Form
$out .= '<div id="ai_dropdown'.$htmlContent.'" class="dropdown-menu ai_dropdown ai_dropdown'.$htmlContent.' paddingtop paddingbottom">';
$out .= '<div id="ai_textgeneration'.$htmlContent.'" class="ai_textgeneration'.$htmlContent.' paddingtop paddingbottom ai_feature">';
//$out .= '<span>'.$langs->trans("FillMessageWithAIContent").'</span>';
$out .= '<textarea class="centpercent" data-functionai="textgeneration" id="ai_instructions'.$htmlContent.'" name="instruction" placeholder="'.$langs->trans("EnterYourAIPromptHere").'..." /></textarea>';
$out .= '<textarea class="centpercent textarea-ai_feature" data-functionai="textgeneration" id="ai_instructions'.$htmlContent.'" name="instruction" placeholder="'.$langs->trans("EnterYourAIPromptHere").'..." /></textarea>';
$out .= '<input id="generate_button'.$htmlContent.'" type="button" class="button smallpaddingimp" disabled data-functionai="textgeneration" value="'.$langs->trans('Generate').'"/>';
$out .= '</div>';
$out .= '<br>';

View file

@ -118,6 +118,10 @@ if ($showlinktolayout) {
$out .= '<!-- No link to the layout feature, $formmail->withlayout must be set to a string use case, module WYSIWYG must be enabled and MAIN_EMAIL_USE_LAYOUT must be set -->';
}
if ($showlinktoai) {
if (empty($formai) || $formai instanceof FormAI) {
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formai.class.php';
$formai = new FormAI($db);
}
$out .= $formai->getAjaxAICallFunction();
$out .= $formai->getSectionForAIEnhancement($showlinktoai, $formmail->withaiprompt, $htmlname);
} else {

View file

@ -649,7 +649,7 @@ div.quickaddblock:focus {
.side-nav-vert .user-menu .dropdown-menu, .topnav .user-menu .dropdown-menu {
width: 300px;
}
.dropdown-menu:not(#ai_dropdownmessage) {
.dropdown-menu:not(.ai_dropdown) {
border: none;
-webkit-box-shadow: none;
box-shadow: none;

View file

@ -18,7 +18,7 @@ if (!defined('ISLOADEDBYSTEELSHEET')) {
.template-option {
text-align: center;
padding: 10px;
margin: 0 5px;
margin: 4px 5px;
background: var(--colorbackgrey);
border-radius: 5px;
cursor: pointer;

View file

@ -474,7 +474,7 @@ section.setupsection {
.field-error-icon { color: #ea1212 !important; }
/* Focus definitions must be after standard definition */
div.tabBar textarea:focus {
div.tabBar textarea:focus:not(.textarea-ai_feature) {
border: 1px solid #aaa !important;
}
input:focus:not(.button):not(.buttonwebsite):not(.buttonreset):not(.select2-search__field):not(#top-bookmark-search-input):not(.search_component_input):not(.input-nobottom),
@ -8636,6 +8636,7 @@ table.jPicker {
{
.ai_dropdown{
min-width : 280px !important;
width: calc(100% - 50px);
}
.imgopensurveywizard, .imgautosize { width:95%; height: auto; }

View file

@ -708,6 +708,11 @@ div.quickaddblock:focus {
color: var(--colortextbackvmenu);
}
.dropdown-menu:not(.ai_dropdown) {
border: none;
-webkit-box-shadow: none;
box-shadow: none;
}
#topmenu-global-search-dropdown a.login-dropdown-a,
#topmenu-quickadd-dropdown a.login-dropdown-a,