Add tooltip help in CSS edition

This commit is contained in:
Laurent Destailleur 2019-08-14 23:47:01 +02:00
parent f753799810
commit 2b805cc63d
2 changed files with 4 additions and 2 deletions

View File

@ -106,4 +106,5 @@ DeleteAlsoJs=Delete also all javascript files specific to this website?
DeleteAlsoMedias=Delete also all medias files specific to this website?
MyWebsitePages=My website pages
SearchReplaceInto=Search | Replace into
ReplaceString=New string
ReplaceString=New string
CSSContentTooltipHelp=Enter here CSS content. To avoid any conflict with the CSS of the application, be sure to prepend all declaration with the .bodywebsite class. For example:<br><br>#mycssselector, input.myclass:hover { ... }<br>must be<br>.bodywebsite #mycssselector, .bodywebsite input.myclass:hover { ... }<br><br>Note: If you have a large file without this prefix, you can use 'lessc' to convert it to append the .bodywebsite prefix everywhere.

View File

@ -2557,7 +2557,8 @@ if ($action == 'editcss')
// CSS file
print '<tr><td class="tdtop">';
print $langs->trans('WEBSITE_CSS_INLINE');
$htmlhelp=$langs->trans("CSSContentTooltipHelp");
print $form->textwithpicto($langs->trans('WEBSITE_CSS_INLINE'), $htmlhelp, 1, 'help', '', 0, 2, 'csstooltip');
print '</td><td>';
$doleditor=new DolEditor('WEBSITE_CSS_INLINE', $csscontent, '', '220', 'ace', 'In', true, false, 'ace', 0, '100%', '');