From 49dae0aed2223d2af81fdf720c2d6ce186b4e605 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 1 Jan 2022 18:15:22 +0100 Subject: [PATCH] Look and feel v15 --- htdocs/core/class/html.formprojet.class.php | 5 ++-- htdocs/projet/card.php | 8 +++--- htdocs/projet/contact.php | 4 +-- htdocs/projet/element.php | 31 ++++++++++++++------- htdocs/projet/tasks.php | 2 +- htdocs/projet/tasks/time.php | 2 +- htdocs/salaries/card.php | 4 ++- htdocs/theme/eldy/global.inc.php | 1 + htdocs/theme/md/btn.inc.php | 7 ++++- htdocs/theme/md/style.css.php | 3 +- 10 files changed, 44 insertions(+), 23 deletions(-) diff --git a/htdocs/core/class/html.formprojet.class.php b/htdocs/core/class/html.formprojet.class.php index 022bf55f243..5f2029410ab 100644 --- a/htdocs/core/class/html.formprojet.class.php +++ b/htdocs/core/class/html.formprojet.class.php @@ -502,9 +502,10 @@ class FormProjets * @param string $morecss More CSS * @param int $limitonstatus Add filters to limit length of list to opened status (for example to avoid ERR_RESPONSE_HEADERS_TOO_BIG on project/element.php page). TODO To implement * @param string $projectkey Equivalent key to fk_projet for actual table_element + * @param string $placeholder Placeholder * @return int|string The HTML select list of element or '' if nothing or -1 if KO */ - public function select_element($table_element, $socid = 0, $morecss = '', $limitonstatus = -2, $projectkey = "fk_projet") + public function select_element($table_element, $socid = 0, $morecss = '', $limitonstatus = -2, $projectkey = "fk_projet", $placeholder = '') { // phpcs:enable global $conf, $langs; @@ -612,7 +613,7 @@ class FormProjets $i = 0; if ($num > 0) { $sellist = ''; $addform .= ''; $addform .= ''; - $addform .= ''; + $addform .= '
'.$langs->trans("SelectElement").'
'; + //$addform .= ''; $addform .= ''; - $addform .= ''; + $addform .= ''; $addform .= '
'.$langs->trans("SelectElement").''.$selectList.'
'; $addform .= ''; $addform .= ''; @@ -1043,9 +1044,9 @@ foreach ($listofreferent as $key => $value) { if (empty($conf->global->PROJECT_CREATE_ON_OVERVIEW_DISABLED) && $urlnew) { $addform .= '
'; if ($testnew) { - $addform .= ''.($buttonnew ? $langs->trans($buttonnew) : $langs->trans("Create")).''; + $addform .= ''; } elseif (empty($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED)) { - $addform .= ''.($buttonnew ? $langs->trans($buttonnew) : $langs->trans("Create")).''; + $addform .= ''; } $addform .= '
'; } @@ -1389,7 +1390,7 @@ foreach ($listofreferent as $key => $value) { if (!$qualifiedfortotal) { print ''; } - print price($total_ht_by_line); + print ''.price($total_ht_by_line).''; if (!$qualifiedfortotal) { print ''; } @@ -1440,7 +1441,7 @@ foreach ($listofreferent as $key => $value) { if (!$qualifiedfortotal) { print ''; } - print price($total_ttc_by_line); + print ''.price($total_ttc_by_line).''; if (!$qualifiedfortotal) { print ''; } @@ -1513,6 +1514,7 @@ foreach ($listofreferent as $key => $value) { if (in_array($tablename, array('projet_task'))) { $colspan = 2; } + print ''.$langs->trans("Number").': '.$i.''; if (in_array($tablename, array('projet_task'))) { print ''; @@ -1551,7 +1553,16 @@ foreach ($listofreferent as $key => $value) { print ''; } else { if (!is_array($elementarray)) { // error - print $elementarray; + print ''.$elementarray.''; + } else { + $colspan = 7; + if (in_array($tablename, array('projet_task'))) { + $colspan = 5; + } + if ($tablename == 'fichinter') { + $colspan++; + } + print ''.$langs->trans("None").''; } } print ""; diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php index cff8fb952f8..e8c938d2156 100644 --- a/htdocs/projet/tasks.php +++ b/htdocs/projet/tasks.php @@ -626,7 +626,7 @@ if ($id > 0 || !empty($ref)) { // Budget print ''.$langs->trans("Budget").''; if (strcmp($object->budget_amount, '')) { - print price($object->budget_amount, '', $langs, 1, 0, 0, $conf->currency); + print ''.price($object->budget_amount, '', $langs, 1, 0, 0, $conf->currency).''; } print ''; diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index 9a4fd0a9174..f9f3a2aca43 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -826,7 +826,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser // Budget print ''.$langs->trans("Budget").''; if (strcmp($projectstatic->budget_amount, '')) { - print price($projectstatic->budget_amount, '', $langs, 1, 0, 0, $conf->currency); + print ''.price($projectstatic->budget_amount, '', $langs, 1, 0, 0, $conf->currency).''; } print ''; diff --git a/htdocs/salaries/card.php b/htdocs/salaries/card.php index 5048e01735d..4cf5caf97ce 100755 --- a/htdocs/salaries/card.php +++ b/htdocs/salaries/card.php @@ -25,6 +25,7 @@ * \ingroup salaries * \brief Page of salaries payments */ + require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; require_once DOL_DOCUMENT_ROOT.'/salaries/class/salary.class.php'; @@ -555,7 +556,8 @@ if ($action == 'create') { $formproject = new FormProjets($db); print ''.$langs->trans("Project").''; - $formproject->select_projects(-1, $projectid, 'fk_project', 0, 0, 1, 1); + print img_picto('', 'project', 'class="pictofixedwidth"'); + print $formproject->select_projects(-1, $projectid, 'fk_project', 0, 0, 1, 1, 0, 0, 0, '', 1); print ''; } diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index b42a6813a30..3071b59a419 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -6115,6 +6115,7 @@ span#select2-boxbookmark-container { box-shadow: none; -webkit-box-shadow: none !important; box-shadow: none !important; + margin-bottom: 0 !important; } span.noborderoncategories a, li.noborderoncategories a { line-height: normal; diff --git a/htdocs/theme/md/btn.inc.php b/htdocs/theme/md/btn.inc.php index 0269bba74f2..17ab4d83f28 100644 --- a/htdocs/theme/md/btn.inc.php +++ b/htdocs/theme/md/btn.inc.php @@ -320,7 +320,7 @@ div.pagination li:first-child a.btnTitle { border: none; font-size: 12px; font-weight: 300; - background-color: #fbfbfb; + /* background-color: #fbfbfb; */ } a.btnTitle.btnTitleSelected { @@ -371,6 +371,11 @@ div.pagination .btnTitle:hover .btnTitle-label{ display: block; } +.paginationafterarrows a.btnTitlePlus, .titre_right a.btnTitlePlus { + border: 1px solid var(--colorbackbody); +} + + /* rule to reduce top menu - 2nd reduction: Reduce width of top menu icons again */ @media only screen and (max-width: global->THEME_ELDY_WITDHOFFSET_FOR_REDUC2) ? round($nbtopmenuentries * 69, 0) + 130 : $conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC2; ?>px) /* reduction 2 */ { diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 8f5fc141b32..5a419d4a39a 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -5943,7 +5943,7 @@ span#select2-boxbookmark-container, span#select2-boxcombo-container { /* To emulate select 2 style */ .select2-container-multi-dolibarr .select2-choices-dolibarr .select2-search-choice-dolibarr { - padding: 2px 5px 1px 5px; + padding: 3px 5px 2px 5px; margin: 0 0 2px 3px; position: relative; line-height: 13px; @@ -5993,6 +5993,7 @@ span#select2-boxbookmark-container, span#select2-boxcombo-container { box-shadow: none; -webkit-box-shadow: none !important; box-shadow: none !important; + margin-bottom: 0 !important; } span.noborderoncategories a, li.noborderoncategories a { line-height: normal;