From ba7a288abba4d8bbfb94cb115ca9193ab5844e7e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 1 Oct 2019 23:28:13 +0200 Subject: [PATCH 01/10] Fix colspan and columns of contact of thirdparties --- htdocs/core/lib/company.lib.php | 28 ++++++++++++++-------------- htdocs/societe/card.php | 5 ++--- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php index 2b5a3271b4a..084c543a8c2 100644 --- a/htdocs/core/lib/company.lib.php +++ b/htdocs/core/lib/company.lib.php @@ -917,18 +917,18 @@ function show_contacts($conf, $langs, $db, $object, $backtopage = '') $contactstatic->fields=array( 'name' =>array('type'=>'varchar(128)', 'label'=>'Name', 'enabled'=>1, 'visible'=>1, 'notnull'=>1, 'showoncombobox'=>1, 'index'=>1, 'position'=>10, 'searchall'=>1), - 'poste' =>array('type'=>'varchar(128)', 'label'=>'PostOfFunction', 'enabled'=>1, 'visible'=>1, 'notnull'=>1, 'showoncombobox'=>1, 'index'=>1, 'position'=>20), + 'poste' =>array('type'=>'varchar(128)', 'label'=>'PostOrFunction', 'enabled'=>1, 'visible'=>1, 'notnull'=>1, 'showoncombobox'=>1, 'index'=>1, 'position'=>20), 'address' =>array('type'=>'varchar(128)', 'label'=>'Address', 'enabled'=>1, 'visible'=>1, 'notnull'=>1, 'showoncombobox'=>1, 'index'=>1, 'position'=>30), 'statut' =>array('type'=>'integer', 'label'=>'Status', 'enabled'=>1, 'visible'=>1, 'notnull'=>1, 'default'=>0, 'index'=>1, 'position'=>40, 'arrayofkeyval'=>array(0=>$contactstatic->LibStatut(0, 1), 1=>$contactstatic->LibStatut(1, 1))), ); // Definition of fields for list $arrayfields=array( - 't.rowid'=>array('label'=>"TechnicalID", 'checked'=>($conf->global->MAIN_SHOW_TECHNICAL_ID?1:0), 'enabled'=>($conf->global->MAIN_SHOW_TECHNICAL_ID?1:0), 'position'=>1), - 't.name'=>array('label'=>"Name", 'checked'=>1, 'position'=>10), - 't.poste'=>array('label'=>"PostOrFunction", 'checked'=>1, 'position'=>20), - 't.address'=>array('label'=>(empty($conf->dol_optimize_smallscreen) ? $langs->trans("Address").' / '.$langs->trans("Phone").' / '.$langs->trans("Email") : $langs->trans("Address")), 'checked'=>1, 'position'=>30), - 't.statut'=>array('label'=>"Status", 'checked'=>1, 'position'=>40, 'class'=>'center'), + 't.rowid'=>array('label'=>"TechnicalID", 'checked'=>($conf->global->MAIN_SHOW_TECHNICAL_ID?1:0), 'enabled'=>($conf->global->MAIN_SHOW_TECHNICAL_ID?1:0), 'position'=>1), + 't.name'=>array('label'=>"Name", 'checked'=>1, 'position'=>10), + 't.poste'=>array('label'=>"PostOrFunction", 'checked'=>1, 'position'=>20), + 't.address'=>array('label'=>(empty($conf->dol_optimize_smallscreen) ? $langs->trans("Address").' / '.$langs->trans("Phone").' / '.$langs->trans("Email") : $langs->trans("Address")), 'checked'=>1, 'position'=>30), + 't.statut'=>array('label'=>"Status", 'checked'=>1, 'position'=>40, 'class'=>'center'), ); // Extra fields if (is_array($extrafields->attributes[$contactstatic->table_element]['label']) && count($extrafields->attributes[$contactstatic->table_element]['label'])) @@ -939,7 +939,7 @@ function show_contacts($conf, $langs, $db, $object, $backtopage = '') $arrayfields["ef.".$key]=array( 'label'=>$extrafields->attributes[$contactstatic->table_element]['label'][$key], 'checked'=>(($extrafields->attributes[$contactstatic->table_element]['list'][$key]<0)?0:1), - 'position'=>$extrafields->attributes[$contactstatic->table_element]['pos'][$key], + 'position'=>1000+$extrafields->attributes[$contactstatic->table_element]['pos'][$key], 'enabled'=>(abs($extrafields->attributes[$contactstatic->table_element]['list'][$key])!=3 && $extrafields->attributes[$contactstatic->table_element]['perms'][$key])); } } @@ -1036,16 +1036,16 @@ function show_contacts($conf, $langs, $db, $object, $backtopage = '') // Fields title search // -------------------------------------------------------------------- print ''; - foreach($arrayfields as $key => $val) + foreach($contactstatic->fields as $key => $val) { $align=''; - if (in_array($val['type'], array('t.date','t.datetime','t.timestamp'))) $align.=($align?' ':'').'center'; - if (in_array($val['type'], array('t.timestamp'))) $align.=($align?' ':'').'nowrap'; - if ($key == 't.status' || $key == 't.statut') $align.=($align?' ':'').'center'; - if (! empty($arrayfields[$key]['checked'])) + if (in_array($val['type'], array('date','datetime','timestamp'))) $align.=($align?' ':'').'center'; + if (in_array($val['type'], array('timestamp'))) $align.=($align?' ':'').'nowrap'; + if ($key == 'status' || $key == 'statut') $align.=($align?' ':'').'center'; + if (! empty($arrayfields['t.'.$key]['checked'])) { print ''; - if (in_array($key, array('t.statut'))){ + if (in_array($key, array('statut'))){ print $form->selectarray('search_status', array('-1'=>'','0'=>$contactstatic->LibStatut(0, 1),'1'=>$contactstatic->LibStatut(1, 1)), $search_status); }else{ $fieldName = substr($key, 2); @@ -1078,7 +1078,7 @@ function show_contacts($conf, $langs, $db, $object, $backtopage = '') if (in_array($val['type'], array('date','datetime','timestamp'))) $align.=($align?' ':'').'center'; if (in_array($val['type'], array('timestamp'))) $align.=($align?' ':'').'nowrap'; if ($key == 'status' || $key == 'statut') $align.=($align?' ':'').'center'; - if (! empty($arrayfields['t.'.$key]['checked'])) print getTitleFieldOfList($arrayfields['t.'.$key]['label'], 0, $_SERVER['PHP_SELF'], 't.'.$key, '', $param, ($align?'class="'.$align.'"':''), $sortfield, $sortorder, $align.' ')."\n"; + if (! empty($arrayfields['t.'.$key]['checked'])) print getTitleFieldOfList($val['label'], 0, $_SERVER['PHP_SELF'], 't.'.$key, '', $param, ($align?'class="'.$align.'"':''), $sortfield, $sortorder, $align.' ')."\n"; } // Extra fields $extrafieldsobjectkey=$contactstatic->table_element; diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 44f95cfd513..d0eb73ff481 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -2568,14 +2568,13 @@ else // Parent company if (empty($conf->global->SOCIETE_DISABLE_PARENTCOMPANY)) { - // Payment term print ''; print ''; if ($action != 'editparentcompany') print ''; print '
'; print $langs->trans('ParentCompany'); print 'id.'">'.img_edit($langs->transnoentitiesnoconv('Edit'), 1).'
'; - print ''; + print ''; if ($action == 'editparentcompany') { $form->form_thirdparty($_SERVER['PHP_SELF'].'?socid='.$object->id, $object->parent, 'editparentcompany', 's.rowid <> '.$object->id, 1); @@ -2596,7 +2595,7 @@ else { $langs->load("members"); print ''.$langs->trans("LinkedToDolibarrMember").''; - print ''; + print ''; $adh=new Adherent($db); $result=$adh->fetch('', '', $object->id); if ($result > 0) From 9a28da5fdb5df3f77b04243d64e6771487ba4ca0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 1 Oct 2019 23:40:56 +0200 Subject: [PATCH 02/10] Align search inputs --- htdocs/main.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 3b432fa239d..13f2e2f2550 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -2198,11 +2198,12 @@ function printSearchForm($urlaction, $urlobject, $title, $htmlmorecss, $htmlinpu global $conf,$langs,$user; $ret=''; - $ret.='
'; + $ret.=''; $ret.=''; $ret.=''; $ret.=''; - if ($showtitlebefore) $ret.=$title.' '; + if ($showtitlebefore) $ret.='
'.$title.'
'; + $ret.='
'; $ret.=' Date: Tue, 1 Oct 2019 23:47:24 +0200 Subject: [PATCH 03/10] Cleaner badge --- htdocs/theme/eldy/theme_vars.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/theme/eldy/theme_vars.inc.php b/htdocs/theme/eldy/theme_vars.inc.php index 4794cd7ad45..0858c74cf62 100644 --- a/htdocs/theme/eldy/theme_vars.inc.php +++ b/htdocs/theme/eldy/theme_vars.inc.php @@ -87,7 +87,7 @@ $colorblind_deuteranopes_textWarning = $textWarning; // currently not tested wit // Badges colors $badgePrimary ='#007bff'; -$badgeSecondary ='#999999'; +$badgeSecondary ='#cccccc'; $badgeSuccess ='#28a745'; $badgeDanger ='#9f4705'; $badgeWarning ='#ffc107'; From 66829aa6152446560ffc2a6799cf317cad0c6746 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 2 Oct 2019 14:33:31 +0200 Subject: [PATCH 04/10] Use span instead of div by default for the tooltip picto. --- htdocs/core/class/html.form.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index bf0aceced22..a70338e6f70 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -442,7 +442,7 @@ class Form * @see textwithpicto() Use thisfunction if you can. * TODO Move this as static as soon as everybody use textwithpicto or @Form::textwithtooltip */ - public function textwithtooltip($text, $htmltext, $tooltipon = 1, $direction = 0, $img = '', $extracss = '', $notabs = 2, $incbefore = '', $noencodehtmltext = 0, $tooltiptrigger = '', $forcenowrap = 0) + public function textwithtooltip($text, $htmltext, $tooltipon = 1, $direction = 0, $img = '', $extracss = '', $notabs = 3, $incbefore = '', $noencodehtmltext = 0, $tooltiptrigger = '', $forcenowrap = 0) { global $conf; @@ -458,8 +458,8 @@ class Form $htmltext=str_replace("\n", "", $htmltext); $extrastyle=''; - if ($direction < 0) { $extracss=($extracss?$extracss.' ':'').'inline-block'; $extrastyle='padding: 0px; padding-left: 3px !important;'; } - if ($direction > 0) { $extracss=($extracss?$extracss.' ':'').'inline-block'; $extrastyle='padding: 0px; padding-right: 3px !important;'; } + if ($direction < 0) { $extracss=($extracss?$extracss.' ':'').($notabs != 3 ? 'inline-block' : ''); $extrastyle='padding: 0px; padding-left: 3px !important;'; } + if ($direction > 0) { $extracss=($extracss?$extracss.' ':'').($notabs != 3 ? 'inline-block' : ''); $extrastyle='padding: 0px; padding-right: 3px !important;'; } $classfortooltip='classfortooltip'; @@ -476,7 +476,7 @@ class Form } if ($tooltipon == 2 || $tooltipon == 3) { - $paramfortooltipimg=' class="'.$classfortooltip.' inline-block'.($extracss?' '.$extracss:'').'" style="padding: 0px;'.($extrastyle?' '.$extrastyle:'').'"'; + $paramfortooltipimg=' class="'.$classfortooltip.($notabs != 3 ? ' inline-block' : '').($extracss?' '.$extracss:'').'" style="padding: 0px;'.($extrastyle?' '.$extrastyle:'').'"'; if ($tooltiptrigger == '') $paramfortooltipimg.=' title="'.($noencodehtmltext?$htmltext:dol_escape_htmltag($htmltext, 1)).'"'; // Attribut to put on img tag to store tooltip else $paramfortooltipimg.=' dolid="'.$tooltiptrigger.'"'; } @@ -527,7 +527,7 @@ class Form * @param int $forcenowrap Force no wrap between text and picto (works with notabs=2 only) * @return string HTML code of text, picto, tooltip */ - public function textwithpicto($text, $htmltext, $direction = 1, $type = 'help', $extracss = '', $noencodehtmltext = 0, $notabs = 2, $tooltiptrigger = '', $forcenowrap = 0) + public function textwithpicto($text, $htmltext, $direction = 1, $type = 'help', $extracss = '', $noencodehtmltext = 0, $notabs = 3, $tooltiptrigger = '', $forcenowrap = 0) { global $conf, $langs; From c6d38227b6f49beac267fcc00e83f0247a1c4ab3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 2 Oct 2019 14:44:38 +0200 Subject: [PATCH 05/10] NEW Use a dedicated css for the pencil to edit a field --- htdocs/comm/mailing/card.php | 13 +++++++++---- htdocs/core/class/html.form.class.php | 2 +- htdocs/theme/eldy/global.inc.php | 7 +++++++ htdocs/theme/md/style.css.php | 8 ++++++++ 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/htdocs/comm/mailing/card.php b/htdocs/comm/mailing/card.php index e2410846f00..5b5e9e96520 100644 --- a/htdocs/comm/mailing/card.php +++ b/htdocs/comm/mailing/card.php @@ -73,7 +73,6 @@ $object->substitutionarrayfortest = $substitutionarray; // List of sending methods $listofmethods=array(); $listofmethods['mail']='PHP mail function'; -//$listofmethods['simplemail']='Simplemail class'; $listofmethods['smtps']='SMTP/SMTPS socket library'; @@ -896,17 +895,23 @@ else print ''; // Description - print ''; // From - print ''; // Errors to - print ''; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index a70338e6f70..703cbe4b5ac 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -136,7 +136,7 @@ class Form if (! empty($notabletag)) $ret.=' '; if (empty($notabletag) && GETPOST('action', 'aZ09') != 'edit'.$htmlname && $perm) $ret.=''; if (empty($notabletag) && GETPOST('action', 'aZ09') != 'edit'.$htmlname && $perm) $ret.=''; diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 7e1a52bf59b..f7c9b1bb4b6 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -508,6 +508,13 @@ body[class*="colorblind-"] .text-success{ color : } +.editfielda span.fa-pencil-alt { + color: #ccc !important; +} +.editfielda span.fa-pencil-alt:hover { + color: rgb() !important; +} + /* Themes for badges */ diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 24e7582fac3..46d28579df8 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -708,6 +708,14 @@ body[class*="colorblind-"] .text-success{ color : } +.editfielda span.fa-pencil-alt { + color: #ccc !important; +} +.editfielda span.fa-pencil-alt:hover { + color: rgb() !important; +} + + /* Themes for badges */ From 65d68a9de0b884e867548ef73cfb921e9244691c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 2 Oct 2019 15:03:15 +0200 Subject: [PATCH 06/10] css --- htdocs/theme/eldy/global.inc.php | 4 ++++ htdocs/theme/md/style.css.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index f7c9b1bb4b6..5b5ef6dec21 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -778,6 +778,10 @@ select.selectarrowonleft option { direction: ltr; } +table[summary="list_of_modules"] .fa-cog { + font-size: 1.5em; +} + /* ============================================================================== */ /* Styles to hide objects */ diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 46d28579df8..ec1f04ab9db 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -947,6 +947,10 @@ select.selectarrowonleft option { direction: ltr; } +table[summary="list_of_modules"] .fa-cog { + font-size: 1.5em; +} + /* ============================================================================== */ /* Styles to hide objects */ From 320e9bbeec8bc77472c1af7d4dc38c4b40586681 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 2 Oct 2019 15:54:42 +0200 Subject: [PATCH 07/10] Text on tooltip can also be clickable --- htdocs/comm/mailing/card.php | 2 +- htdocs/core/class/html.form.class.php | 11 ++++++----- htdocs/theme/eldy/global.inc.php | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/htdocs/comm/mailing/card.php b/htdocs/comm/mailing/card.php index 5b5e9e96520..9609038ca41 100644 --- a/htdocs/comm/mailing/card.php +++ b/htdocs/comm/mailing/card.php @@ -1122,7 +1122,7 @@ else $htmltext.=''; // Print mail content - print load_fiche_titre($langs->trans("EMail"), $form->textwithpicto(''.$langs->trans("AvailableVariables").'', $htmltext, 1, 'help', '', 0, 2, 'emailsubstitionhelp'), 'generic'); + print load_fiche_titre($langs->trans("EMail"), $form->textwithpicto(''.$langs->trans("AvailableVariables").'', $htmltext, 1, 'helpclickable', '', 0, 2, 'emailsubstitionhelp'), 'generic'); dol_fiche_head('', '', '', -1); diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 703cbe4b5ac..ae347b9c672 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -519,11 +519,11 @@ class Form * @param string $text Text to show * @param string $htmltext Content of tooltip * @param int $direction 1=Icon is after text, -1=Icon is before text, 0=no icon - * @param string $type Type of picto ('info', 'help', 'warning', 'superadmin', 'mypicto@mymodule', ...) or image filepath or 'none' + * @param string $type Type of picto ('info', 'infoclickable', 'help', 'helpclickable', 'warning', 'superadmin', 'mypicto@mymodule', ...) or image filepath or 'none' * @param string $extracss Add a CSS style to td, div or span tag * @param int $noencodehtmltext Do not encode into html entity the htmltext * @param int $notabs 0=Include table and tr tags, 1=Do not include table and tr tags, 2=use div, 3=use span - * @param string $tooltiptrigger ''=Tooltip on hover, 'abc'=Tooltip on click (abc is a unique key, clickable link is on image or on link if param $type='none') + * @param string $tooltiptrigger ''=Tooltip on hover, 'abc'=Tooltip on click (abc is a unique key, clickable link is on image or on link if param $type='none' or on both if $type='xxxclickable') * @param int $forcenowrap Force no wrap between text and picto (works with notabs=2 only) * @return string HTML code of text, picto, tooltip */ @@ -541,7 +541,7 @@ class Form // If info or help with no javascript, show only text if (empty($conf->use_javascript_ajax)) { - if ($type == 'info' || $type == 'help') return $text; + if ($type == 'info' || $type == 'infoclickable' || $type == 'help' || $type == 'helpclickable') return $text; else { $alt = $htmltext; @@ -552,7 +552,7 @@ class Form // If info or help with smartphone, show only text (tooltip hover can't works) if (! empty($conf->dol_no_mouse_hover) && empty($tooltiptrigger)) { - if ($type == 'info' || $type == 'help') return $text; + if ($type == 'info' || $type == 'infoclickable' || $type == 'help' || $type == 'helpclickable') return $text; } // If info or help with smartphone, show only text (tooltip on click does not works with dialog on smaprtphone) //if (! empty($conf->dol_no_mouse_hover) && ! empty($tooltiptrigger)) @@ -563,12 +563,13 @@ class Form $img=''; if ($type == 'info') $img = img_help(0, $alt); elseif ($type == 'help') $img = img_help(($tooltiptrigger != '' ? 2 : 1), $alt); + elseif ($type == 'helpclickable') $img = img_help(($tooltiptrigger != '' ? 2 : 1), $alt); elseif ($type == 'superadmin') $img = img_picto($alt, 'redstar'); elseif ($type == 'admin') $img = img_picto($alt, 'star'); elseif ($type == 'warning') $img = img_warning($alt); elseif ($type != 'none') $img = img_picto($alt, $type); // $type can be an image path - return $this->textwithtooltip($text, $htmltext, (($tooltiptrigger && ! $img)?3:2), $direction, $img, $extracss, $notabs, '', $noencodehtmltext, $tooltiptrigger, $forcenowrap); + return $this->textwithtooltip($text, $htmltext, ((($tooltiptrigger && ! $img) || strpos($type, 'clickable'))?3:2), $direction, $img, $extracss, $notabs, '', $noencodehtmltext, $tooltiptrigger, $forcenowrap); } /** diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 5b5ef6dec21..6c476863041 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -791,7 +791,7 @@ table[summary="list_of_modules"] .fa-cog { .hideobject { display: none; } .minwidth50 { min-width: 50px; } /* rule for not too small screen only */ -@media only screen and (min-width: global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3) ? round($nbtopmenuentries * 47, 0) + 40 : $conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3; ?>px) +@media only screen and (min-width: global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3) ? round($nbtopmenuentries * 47, 0) + 140 : $conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3; ?>px) { .width25 { width: 25px; } .width50 { width: 50px; } @@ -1143,7 +1143,7 @@ div.vmenu, td.vmenu { .menuhider { display: none !important; } /* rule to reduce top menu - 3rd reduction: The menu for user is on left */ -@media only screen and (max-width: global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3) ? round($nbtopmenuentries * 47, 0) + 40 : $conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3; ?>px) /* reduction 3 */ +@media only screen and (max-width: global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3) ? round($nbtopmenuentries * 47, 0) + 140 : $conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3; ?>px) /* reduction 3 */ { body.sidebar-collapse .side-nav { display: none; From 34c4de328753ed8546ba5ea187edce3c9ab2e6a8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 2 Oct 2019 16:18:33 +0200 Subject: [PATCH 08/10] Better responsive for website toolbar --- htdocs/theme/eldy/global.inc.php | 5 ++-- htdocs/website/index.php | 44 ++++++++++++++++---------------- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 6c476863041..6164012c842 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -3842,6 +3842,7 @@ tr.visible { border-bottom: 1px solid #ccc; background: #e6e6e6; display: inline-block; + padding: 4px 0 4px 0; } .websitebar .buttonDelete, .websitebar .button { text-shadow: none; @@ -3853,10 +3854,10 @@ tr.visible { line-height: normal; } .websiteselection { - display: inline-block; + /* display: inline-block; */ padding-left: 10px; vertical-align: middle; - line-height: 28px; + /* line-height: 28px; */ } .websitetools { float: right; diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 3008b865b7e..777201707ad 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -1953,18 +1953,18 @@ if (! GETPOST('hide_websitemenu')) // ***** Part for web sites print ''; - print '
'; + print ''; print $langs->trans("Website").' : '; - print '
'; + print ''; - print '
'; + print ''; print ' '; - print '
'; + print ''; // List of website - print '
'; + print ''; $out=''; - $out.=''; if (empty($object->records)) $out.=''; // Loop on each sites $i=0; @@ -2050,19 +2050,19 @@ if (! GETPOST('hide_websitemenu')) print 'ref.'" class="button bordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("ReplaceWebsiteContent")).'">'; } - print '
'; + print ''; // Toolbar for websites - print '
'; + print ''; if ($action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite') { $urlext=$virtualurl; $urlint=$urlwithroot.'/public/website/index.php?website='.$websitekey; - print '
'; + print ''; $linktotestonwebserver = ''; $linktotestonwebserver.= $langs->trans("TestDeployOnWeb", $virtualurl).' '.img_picto('', 'object_globe'); $linktotestonwebserver.= ''; @@ -2096,8 +2096,8 @@ if (! GETPOST('hide_websitemenu')) $htmltext.='
'; $htmltext.=$langs->trans("YouCanAlsoDeployToAnotherWHP"); } - print $form->textwithpicto($linktotestonwebserver, $htmltext, 1, 'none', 'valignmiddle', 0, 2, 'helpvirtualhost'); - print '
'; + print $form->textwithpicto($linktotestonwebserver, $htmltext, 1, 'none', 'valignmiddle', 0, 3, 'helpvirtualhost'); + print '
'; } if (in_array($action, array('editcss','editmenu','file_manager','replacesite','replacesiteconfirm'))) @@ -2107,7 +2107,7 @@ if (! GETPOST('hide_websitemenu')) if ($action != 'preview') print ''; } - print '
'; + print ''; // Toolbar for pages @@ -2119,15 +2119,15 @@ if (! GETPOST('hide_websitemenu')) print ''; print '
'; - print '
'; + print ''; print $langs->trans("PageContainer").': '; - print '
'; + print ''; - print '
'; + print ''; print ''; - print '
'; + print ''; - print '
'; + print ''; if ($action != 'addcontainer') { @@ -2395,9 +2395,9 @@ if (! GETPOST('hide_websitemenu')) } } - print '
'; // end website selection + print ''; // end website selection - print '
'; + print ''; if (($pageid > 0 && $atleastonepage) && ($action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite')) { @@ -2437,9 +2437,9 @@ if (! GETPOST('hide_websitemenu')) if ($action != 'preview') print ''; } - print '
'; // end websitetools + print ''; // end websitetools - print '
'; + print ''; if (GETPOST('editsource', 'alpha') || GETPOST('editcontent', 'alpha')) { $htmltext=$langs->transnoentitiesnoconv("YouCanEditHtmlSource").'
'; @@ -2453,7 +2453,7 @@ if (! GETPOST('hide_websitemenu')) print $form->textwithpicto($langs->trans("SyntaxHelp").' '.img_help(2, $langs->trans("SyntaxHelp")), $htmltext, 1, 'none', 'inline-block', 1, 2, 'tooltipsubstitution'); } } - print '
'; // end websitehelp + print ''; // end websitehelp From 24570f7165fe9bc68fef9caaa17c35b13204b5e2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 2 Oct 2019 18:14:41 +0200 Subject: [PATCH 09/10] Look and feel v11. Picto are fontawesome. --- htdocs/accountancy/admin/export.php | 9 +- htdocs/accountancy/admin/index.php | 8 +- htdocs/admin/dict.php | 25 ++- htdocs/asset/card.php | 2 +- htdocs/asset/list.php | 2 +- htdocs/asset/type.php | 3 +- htdocs/barcode/codeinit.php | 2 +- htdocs/bom/bom_card.php | 4 +- htdocs/bom/bom_list.php | 2 +- htdocs/comm/propal/index.php | 2 +- htdocs/commande/index.php | 3 +- htdocs/compta/bank/bankentries_list.php | 2 +- htdocs/compta/bank/releve.php | 171 +----------------- htdocs/compta/bank/various_payment/card.php | 2 +- htdocs/compta/bank/various_payment/list.php | 2 +- .../compta/cashcontrol/cashcontrol_card.php | 2 +- .../compta/cashcontrol/cashcontrol_list.php | 2 +- htdocs/compta/facture/card.php | 2 +- htdocs/compta/facture/fiche-rec.php | 2 +- .../compta/facture/invoicetemplate_list.php | 2 +- htdocs/compta/facture/list.php | 2 +- htdocs/compta/facture/stats/index.php | 2 +- htdocs/compta/localtax/index.php | 2 +- htdocs/compta/localtax/list.php | 2 +- htdocs/compta/paiement/cheque/index.php | 2 +- htdocs/compta/paiement/list.php | 2 +- htdocs/compta/paiement/rapport.php | 4 +- htdocs/compta/prelevement/create.php | 2 +- htdocs/compta/sociales/list.php | 4 +- htdocs/compta/tva/index.php | 2 +- htdocs/contact/card.php | 2 +- htdocs/contact/list.php | 2 +- htdocs/core/class/extrafields.class.php | 2 +- htdocs/core/lib/functions.lib.php | 10 +- htdocs/don/card.php | 4 +- htdocs/don/index.php | 2 +- htdocs/don/list.php | 2 +- htdocs/fourn/commande/index.php | 2 +- htdocs/fourn/facture/list.php | 2 +- htdocs/fourn/facture/paiement.php | 2 +- htdocs/fourn/facture/rapport.php | 2 +- htdocs/mrp/index.php | 2 +- .../canvas/product/tpl/card_create.tpl.php | 2 +- .../canvas/service/tpl/card_create.tpl.php | 2 +- htdocs/product/card.php | 2 +- htdocs/product/inventory/card.php | 2 +- htdocs/product/inventory/list.php | 2 +- htdocs/product/list.php | 2 +- htdocs/product/popuprop.php | 2 +- htdocs/product/reassort.php | 2 +- htdocs/product/reassortlot.php | 2 +- htdocs/product/stats/card.php | 2 +- htdocs/product/stock/productlot_list.php | 2 +- htdocs/projet/activity/index.php | 4 +- htdocs/projet/activity/perday.php | 2 +- htdocs/projet/activity/perweek.php | 2 +- htdocs/projet/card.php | 2 +- htdocs/projet/list.php | 2 +- htdocs/projet/stats/index.php | 2 +- htdocs/projet/tasks.php | 2 +- htdocs/projet/tasks/list.php | 2 +- htdocs/projet/tasks/stats/index.php | 2 +- htdocs/societe/card.php | 2 +- htdocs/societe/list.php | 2 +- htdocs/supplier_proposal/index.php | 2 +- htdocs/theme/eldy/global.inc.php | 8 +- htdocs/theme/eldy/main_menu_fa_icons.inc.php | 2 +- htdocs/variants/list.php | 2 +- 68 files changed, 103 insertions(+), 264 deletions(-) diff --git a/htdocs/accountancy/admin/export.php b/htdocs/accountancy/admin/export.php index dc4146aae8e..e13a66998b7 100644 --- a/htdocs/accountancy/admin/export.php +++ b/htdocs/accountancy/admin/export.php @@ -132,12 +132,15 @@ if ($action == 'update') { * View */ -llxHeader(); - $form = new Form($db); +$title = $langs->trans('ConfigAccountingExpert'); +llxHeader('', $title); + + +$linkback=''; // $linkback = '' . $langs->trans("BackToModuleList") . ''; -print load_fiche_titre($langs->trans('ConfigAccountingExpert'), $linkback, 'title_setup'); +print load_fiche_titre($langs->trans('ConfigAccountingExpert'), $linkback, 'accountancy'); print "\n".'
'.$form->editfieldkey("MailTitle", 'titre', $object->titre, $object, $user->rights->mailing->creer && $object->statut < 3, 'string').''; + print '
'; + print $form->editfieldkey("MailTitle", 'titre', $object->titre, $object, $user->rights->mailing->creer && $object->statut < 3, 'string'); + print ''; print $form->editfieldval("MailTitle", 'titre', $object->titre, $object, $user->rights->mailing->creer && $object->statut < 3, 'string'); print '
'.$form->editfieldkey("MailFrom", 'email_from', $object->email_from, $object, $user->rights->mailing->creer && $object->statut < 3, 'string').''; + print '
'; + print $form->editfieldkey("MailFrom", 'email_from', $object->email_from, $object, $user->rights->mailing->creer && $object->statut < 3, 'string'); + print ''; print $form->editfieldval("MailFrom", 'email_from', $object->email_from, $object, $user->rights->mailing->creer && $object->statut < 3, 'string'); print '
'.$form->editfieldkey("MailErrorsTo", 'email_errorsto', $object->email_errorsto, $object, $user->rights->mailing->creer && $object->statut < 3, 'string').''; + print '
'; + print $form->editfieldkey("MailErrorsTo", 'email_errorsto', $object->email_errorsto, $object, $user->rights->mailing->creer && $object->statut < 3, 'string'); + print ''; print $form->editfieldval("MailErrorsTo", 'email_errorsto', $object->email_errorsto, $object, $user->rights->mailing->creer && $object->statut < 3, 'string'); print '
'; - if ($htmlname && GETPOST('action', 'aZ09') != 'edit'.$htmlname && $perm) $ret.='id.$moreparam.'">'.img_edit($langs->trans('Edit'), ($notabletag ? 0 : 1)).''; + if ($htmlname && GETPOST('action', 'aZ09') != 'edit'.$htmlname && $perm) $ret.='id.$moreparam.'">'.img_edit($langs->trans('Edit'), ($notabletag ? 0 : 1)).''; if (! empty($notabletag) && $notabletag == 1) $ret.=' : '; if (! empty($notabletag) && $notabletag == 3) $ret.=' '; if (empty($notabletag) && GETPOST('action', 'aZ09') != 'edit'.$htmlname && $perm) $ret.='