add tooltips helper on product card

This commit is contained in:
jpb 2021-07-20 15:18:14 +02:00
parent 1237c5ba55
commit dc90a62d90
3 changed files with 10 additions and 0 deletions

View File

@ -402,3 +402,4 @@ PMPValueShort=WAP
mandatoryperiod=Mandatory periods
mandatoryPeriodNeedTobeSet=Attention periods not entered and mandatory
mandatoryPeriodNeedTobeSetMsgValidate=A service requires a start and end period
mandatoryHelper=Message to the user on the need to enter a start date and an end date on a service when creating / validating an invoice, commercial proposal, sales order. <br> This action is not blocking in the process of confirmation

View File

@ -402,3 +402,4 @@ PMPValueShort=PMP
mandatoryperiod=Périodes obligatoires
mandatoryPeriodNeedTobeSet=Attention périodes non saisies et obligatoires
mandatoryPeriodNeedTobeSetMsgValidate=Un service nécessite une période de début et de fin
mandatoryHelper=Message à l'utilisateur sur la necessité de saisir une date de début et une date de fin sur un service lors de la création/validation de facture, proposition commerciale , commande client.<br>Cette action n'est pas bloquante dans le processus de validation

View File

@ -2279,7 +2279,15 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '<tr><td class="titlefield">'.$langs->trans("mandatoryperiod").'</td><td>';
print '<input type="checkbox" name="mandatoryperiod"'.($object->mandatory_period == 1 ? ' checked="checked"' : '').' disabled/> ';
print '</td>';
$htmltooltip = '<br>'.$langs->trans("mandatoryHelper");
print '<td class="center">';
print $form->textwithpicto('', $htmltooltip, 1, 0);
print '</td></tr>';
} else {
if (empty($conf->global->PRODUCT_DISABLE_NATURE)) {
// Nature