diff --git a/htdocs/core/class/html.formwebsite.class.php b/htdocs/core/class/html.formwebsite.class.php index 2569cd7ebef..0a942534c05 100644 --- a/htdocs/core/class/html.formwebsite.class.php +++ b/htdocs/core/class/html.formwebsite.class.php @@ -341,7 +341,7 @@ class FormWebsite $templates = array( 'empty' => 'empty', - 'text' => 'dynamic', + //'text' => 'dynamic', 'basic' => 'basic', //'news' => 'news', //'commerce' => 'commerce', diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 147758437b0..7da49f58c07 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -1277,12 +1277,13 @@ Encrypted=Encrypted Settings=Settings FillMessageWithALayout=Fill message with a layout FillMessageWithAIContent=Fill message with AI content +FillPageWithALayout=Fill page with a layout +FillPageWithAIContent=Fill page with AI content EnterYourAIPromptHere=Enter your AI prompt here UseOrOperatorShort=or GoOnList=Go on list ShowSearchFields=Do a search MyUserCard=My user file PublicFile=Public file -FillPageWithALayout=Fill page with a layout EntityNameNotDefined=No entity name AllEntities=All entities diff --git a/htdocs/website/index.php b/htdocs/website/index.php index af92ea638bb..d87fb687442 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -4309,7 +4309,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') { // Edit properties print ''; $out = ''; - // Add link to add layout + // Add link to add a predefined layout $out .= ''; $out .= img_picto($langs->trans("FillMessageWithALayout"), 'layout', 'class="paddingrightonly"'); $out .= $langs->trans("FillPageWithALayout").'...'; @@ -4333,7 +4333,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') { // Edit properties if ($formmail->withaiprompt && isModEnabled('ai')) { $out .= ''; $out .= img_picto($langs->trans("FillMessageWithAIContent"), 'ai', 'class="paddingrightonly"'); - $out .= $langs->trans("FillMessageWithAIContent").'...'; + $out .= $langs->trans("FillPageWithAIContent").'...'; $out .= ''; $out .= ' + '; + } // Keywords print ''; @@ -4542,49 +4559,42 @@ if ($action == 'editmeta' || $action == 'createcontainer') { // Edit properties $fuser = new User($db); - print ''; - print $langs->trans('Author'); - print ''; - if ($pageauthorid > 0) { - $fuser->fetch($pageauthorid); - print $fuser->getNomUrl(1); - } else { - print ''.$langs->trans("Unknown").''; - } - print ''; - - print ''; - print $langs->trans('PublicAuthorAlias'); - print ''; - print ''; - print ''; - - print ''; - print $langs->trans('DateCreation'); - print ''; - print $form->selectDate($pagedatecreation, 'datecreation', 1, 1, 0, '', 1, 1); - //print dol_print_date($pagedatecreation, 'dayhour'); - print ''; - if ($action != 'createcontainer') { print ''; - print $langs->trans('UserModif'); + print $langs->trans('DateLastModification'); print ''; - if ($pageusermodifid > 0) { - $fuser->fetch($pageusermodifid); - print $fuser->getNomUrl(1); - } + print dol_print_date($pagedatemodification, 'dayhour', 'tzuser'); print ''; print ''; - print $langs->trans('DateModification'); + print $langs->trans('UserModification'); print ''; - print dol_print_date($pagedatemodification, 'dayhour', 'tzuser'); + if ($pageusermodifid > 0) { + $fuser->fetch($pageusermodifid); + print $fuser->getNomUrl(-1); + } else { + print ''.$langs->trans("Unknown").''; + } print ''; } print ''; - print $langs->trans('PreviewPageContent'); + $url = 'https://wiki.dolibarr.org/index.php/Module_Website'; + + $htmltext = ''; + $htmltext .= $langs->transnoentitiesnoconv("YouCanEditHtmlSource", $url); + $htmltext .= $langs->transnoentitiesnoconv("YouCanEditHtmlSource1", $url); + $htmltext .= $langs->transnoentitiesnoconv("YouCanEditHtmlSource2", $url); + $htmltext .= $langs->transnoentitiesnoconv("YouCanEditHtmlSource3", $url); + $htmltext .= $langs->transnoentitiesnoconv("YouCanEditHtmlSourceMore", $url); + $htmltext .= '
'; + $htmltext .= '
'; + if ($conf->browser->layout == 'phone') { + print $form->textwithpicto('', $htmltext, 1, 'help', 'inline-block', 1, 2, 'tooltipsubstitution'); + } else { + //img_help(($tooltiptrigger != '' ? 2 : 1), $alt) + print $form->textwithpicto($langs->trans("PreviewPageContent").' '.img_help(2, $langs->trans("PreviewPageContent")), $htmltext, 1, 'none', 'inline-block', 1, 2, 'tooltipsubstitution'); + } print ''; //$doleditor = new DolEditor('content', GETPOST('content', 'restricthtmlallowunvalid'), '', 200, 'dolibarr_mailings', 'In', true, true, true, 40, '90%'); $doleditor = new DolEditor('contentpreview', GETPOST('content', 'none'), '', 200, 'dolibarr_mailings', 'In', true, true, true, 40, '90%'); @@ -4594,6 +4604,33 @@ if ($action == 'editmeta' || $action == 'createcontainer') { // Edit properties print ''; print ''; + // Date creation + print ''; + print $langs->trans('DateCreation'); + print ''; + print $form->selectDate($pagedatecreation, 'datecreation', 1, 1, 0, '', 1, 1); + //print dol_print_date($pagedatecreation, 'dayhour'); + print ''; + + // Author + print ''; + print $langs->trans('Author'); + print ''; + if ($pageauthorid > 0) { + $fuser->fetch($pageauthorid); + print $fuser->getNomUrl(-1); + } else { + print ''.$langs->trans("Unknown").''; + } + print ''; + + // Author - public alias + print ''; + print $langs->trans('PublicAuthorAlias'); + print ''; + print ''; + print ''; + print ''; $htmlhelp = $langs->trans("EditTheWebSiteForACommonHeader").'

'; $htmlhelp .= $langs->trans("Example").' :
'; @@ -4658,6 +4695,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') { // Edit properties var disableautofillofalias = 0; var selectedm = \'\'; var selectedf = \'\'; + jQuery("#WEBSITE_TITLE").keyup(function() { if (disableautofillofalias == 0) {