From 049080991d38453b715071126dc3643442ccd06f Mon Sep 17 00:00:00 2001 From: x Date: Wed, 3 Mar 2021 14:13:36 +0100 Subject: [PATCH] FIX : label must be over user --- htdocs/salaries/card.php | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) mode change 100644 => 100755 htdocs/salaries/card.php diff --git a/htdocs/salaries/card.php b/htdocs/salaries/card.php old mode 100644 new mode 100755 index 72148a30c35..91330cf318e --- a/htdocs/salaries/card.php +++ b/htdocs/salaries/card.php @@ -614,10 +614,24 @@ if ($id) $morehtmlref = '
'; + // Label + if ($action != 'editlabel') { + $morehtmlref .= $form->editfieldkey("Label", 'label', $object->label, $object, $user->rights->salaries->write, 'string', '', 0, 1); + $morehtmlref .= $object->label; + } else { + $morehtmlref .= '
'.$langs->trans('Label').' : '; + $morehtmlref .= '
'; + $morehtmlref .= ''; + $morehtmlref .= ''; + $morehtmlref .= ''; + $morehtmlref .= ''; + $morehtmlref .= '
'; + } + // Employee $userstatic = new User($db); $userstatic->fetch($object->fk_user); - $morehtmlref .= $langs->trans('Employee').' : '.$userstatic->getNomUrl(1); + $morehtmlref .= '
' .$langs->trans('Employee').' : '.$userstatic->getNomUrl(1); // Project if (!empty($conf->projet->enabled)) @@ -652,22 +666,6 @@ if ($id) } } - // Label - if ($action != 'editlabel') { - $morehtmlref .= '
' . $form->editfieldkey("Label", 'label', $object->label, $object, $user->rights->salaries->write, 'string', '', 0, 1); - $morehtmlref .= $object->label; - } else { - $morehtmlref .= '
'.$langs->trans('Label').' : '; - $morehtmlref .= '
'; - $morehtmlref .= ''; - $morehtmlref .= ''; - $morehtmlref .= ''; - $morehtmlref .= ''; - $morehtmlref .= '
'; - } - - - $morehtmlref .= '
'; $totalpaye = $object->getSommePaiement();