2
0
forked from Wavyzz/dolibarr

Look and feel v18

This commit is contained in:
Laurent Destailleur
2023-02-19 12:10:59 +01:00
parent eaa0e5eb3e
commit 09b84f0837
2 changed files with 13 additions and 8 deletions

View File

@@ -75,15 +75,19 @@ if ($massaction == 'preaffecttag' && isModEnabled('category')) {
if (!empty($categ_types)) {
foreach ($categ_types as $categ_type) {
$cate_arbo = $form->select_all_categories($categ_type['code'], null, 'parent', null, null, 1);
$formquestion[] = array('type' => 'other',
'name' => 'affecttag_'.$categ_type['code'],
'label' => $langs->trans("Tag").' '.$categ_type['label'],
'value' => $form->multiselectarray('contcats_'.$categ_type['code'], $cate_arbo, GETPOST('contcats_'.$categ_type['code'], 'array'), null, null, null, null, '60%'));
}
$formquestion[] = array('type' => 'other',
'name' => 'affecttag_type',
$formquestion[] = array(
'type' => 'other',
'name' => 'affecttag_'.$categ_type['code'],
'label' => '',
'value' => '<input type="hidden" name="affecttag_type" id="affecttag_type" value="'.implode(",", array_keys($categ_types)).'"/>');
'value' => $form->multiselectarray('contcats_'.$categ_type['code'], $cate_arbo, GETPOST('contcats_'.$categ_type['code'], 'array'), null, null, '', 0, '60%', '', '', $langs->trans("SelectTheTagsToAssign"))
);
}
$formquestion[] = array(
'type' => 'other',
'name' => 'affecttag_type',
'label' => '',
'value' => '<input type="hidden" name="affecttag_type" id="affecttag_type" value="'.implode(",", array_keys($categ_types)).'"/>'
);
print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmAffectTag"), $langs->trans("ConfirmAffectTagQuestion", count($toselect)), "affecttag", $formquestion, 1, 0, 200, 500, 1);
} else {
setEventMessage('CategTypeNotFound');

View File

@@ -514,6 +514,7 @@ NotYetAvailable=Not yet available
NotAvailable=Not available
Categories=Tags/categories
Category=Tag/category
SelectTheTagsToAssign=Select the tags/categories to assign
By=By
From=From
FromDate=From