From 07fc85c222616d1713d75b8cf7c86e77232b0637 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 4 Sep 2020 12:25:16 +0200 Subject: [PATCH] Fix minor --- htdocs/comm/action/index.php | 11 ++-- htdocs/theme/eldy/global.inc.php | 96 ++++---------------------------- htdocs/ticket/card.php | 4 +- 3 files changed, 19 insertions(+), 92 deletions(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index ce3a9f26509..b2c38b3e13e 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -1207,7 +1207,7 @@ if (empty($action) || $action == 'show_month') // View by month print_actions_filter($form, $canedit, $status, $year, $month, $day, $showbirthday, 0, $filtert, 0, $pid, $socid, $action, -1, $actioncode, $usergroup, '', $resourceid); print ''; - print '
'; + print '
'; print ''; print ' '; // Column title of weeks numbers @@ -1215,7 +1215,7 @@ if (empty($action) || $action == 'show_month') // View by month $i = 0; while ($i < 7) { - print '
'; + print ' '; $numdayinweek = (($i + (isset($conf->global->MAIN_START_WEEK) ? $conf->global->MAIN_START_WEEK : 1)) % 7); if (!empty($conf->dol_optimize_smallscreen)) { @@ -1308,12 +1308,12 @@ if (empty($action) || $action == 'show_month') // View by month print_actions_filter($form, $canedit, $status, $year, $month, $day, $showbirthday, 0, $filtert, 0, $pid, $socid, $action, -1, $actioncode, $usergroup, '', $resourceid); print ''; - print '
'; + print '
'; print ''; print ' '; $i = 0; while ($i < 7) { - echo ' \n"; + echo ' \n"; $i++; } echo " \n"; @@ -1368,11 +1368,10 @@ if (empty($action) || $action == 'show_month') // View by month print_actions_filter($form, $canedit, $status, $year, $month, $day, $showbirthday, 0, $filtert, 0, $pid, $socid, $action, -1, $actioncode, $usergroup, '', $resourceid); print ''; - print '
'; + print '
'; echo '
'.$langs->trans("Day".(($i + (isset($conf->global->MAIN_START_WEEK) ? $conf->global->MAIN_START_WEEK : 1)) % 7))."'.$langs->trans("Day".(($i + (isset($conf->global->MAIN_START_WEEK) ? $conf->global->MAIN_START_WEEK : 1)) % 7))."
'; echo ' '; - echo ' '; echo ' \n"; echo " \n"; diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 2b985bde752..8185ddbec92 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -1077,6 +1077,15 @@ table[summary="list_of_modules"] .fa-cog { height: 100px; } +.maxscreenheightless200 { + max-height: px; /* we guarantee height of 500 */ +} +.maxscreenheightless300 { + max-height: px; /* we guarantee height of 500 */ +} + + + /* ============================================================================== */ /* Styles to hide objects */ @@ -2074,90 +2083,7 @@ a.tmenuimage:hover{ /* Do not load menu img for other if hidden to save bandwidth */ - - - - div.mainmenu.home{ - background-image: url(); - background-position-x: center; - } - - div.mainmenu.billing { - background-image: url(); - } - - div.mainmenu.accountancy { - background-image: url(); - } - - div.mainmenu.agenda { - background-image: url(); - } - - div.mainmenu.bank { - background-image: url(); - } - - div.mainmenu.cashdesk { - background-image: url(); - } - - div.mainmenu.takepos { - background-image: url(); - } - - div.mainmenu.companies { - background-image: url(); - } - - div.mainmenu.commercial { - background-image: url(); - } - - div.mainmenu.ecm { - background-image: url(); - } - - div.mainmenu.externalsite { - background-image: url(); - } - - div.mainmenu.ftp { - background-image: url(); - } - - div.mainmenu.hrm { - background-image: url(); - } - - div.mainmenu.members { - background-image: url(); - } - - div.mainmenu.products { - background-image: url(); - } - - div.mainmenu.mrp { - background-image: url(); - } - - div.mainmenu.project { - background-image: url(); - } - - div.mainmenu.ticket { - background-image: url(); - } - - div.mainmenu.tools { - background-image: url(); - } - - div.mainmenu.website { - background-image: url(); - } - + 'name of class for div') @@ -4514,7 +4440,9 @@ table.cal_event td.cal_event_right { padding: 4px 4px !important; } .cal_event_notbusy a.cal_event_title:hover { color: #111111; font-weight: normal !important; color:rgba(255,255,255,.75); } .cal_event_busy { } .cal_peruserviewname { max-width: 140px; height: 22px; } +.cal_event span.badge.badge-status { border: 1px solid #aaa; } table.cal_month tr td table.nobordernopadding tr td { padding: 0 2px 0 2px; } +table.cal_month tr.liste_titre td.tdfordaytitle { min-width: 120px; } a.dayevent-aday { padding-left: 8px; } diff --git a/htdocs/ticket/card.php b/htdocs/ticket/card.php index d5da98b4a84..e5d4a4f6fd9 100644 --- a/htdocs/ticket/card.php +++ b/htdocs/ticket/card.php @@ -179,7 +179,7 @@ if (empty($reshook)) { $id = $object->create($user); if ($id <= 0) { $error++; - setEventMessage($object->error, $object->errors, 'errors'); + setEventMessages($object->error, $object->errors, 'errors'); $action = 'create'; } @@ -305,7 +305,7 @@ if (empty($reshook)) { $ret = $object->update($user); if ($ret <= 0) { $error++; - setEventMessage($object->error, $object->errors, 'errors'); + setEventMessages($object->error, $object->errors, 'errors'); $action = 'edit'; }
'.$langs->trans("Day".$arraytimestamp['wday'])."