From aaa054e2434a85f6e2df40e9b5feee7c87e95aa9 Mon Sep 17 00:00:00 2001 From: Nicolas Domenech Date: Fri, 12 Apr 2024 17:06:31 +0200 Subject: [PATCH] #1963 [Risk] fix: CSS for multiselect array --- admin/config/riskassessmentdocument.php | 10 +++++----- .../risk/digiriskdolibarr_risklist_view.tpl.php | 6 +++--- langs/fr_FR/digiriskdolibarr.lang | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/admin/config/riskassessmentdocument.php b/admin/config/riskassessmentdocument.php index 7aa763f79..a906c1240 100644 --- a/admin/config/riskassessmentdocument.php +++ b/admin/config/riskassessmentdocument.php @@ -193,6 +193,11 @@ 'name' => 'RiskListParentView', 'description' => 'RiskListParentViewDescription', 'code' => 'DIGIRISKDOLIBARR_RISK_LIST_PARENT_VIEW', + ], + 'CategoryOnRisk' => [ + 'name' => 'CategoryOnRisk', + 'description' => 'CategoryOnRiskDescription', + 'code' => 'DIGIRISKDOLIBARR_CATEGORY_ON_RISK', ], 'ShowInheritedRisksInDocuments' => [ 'name' => 'ShowInheritedRisksInDocuments', @@ -210,11 +215,6 @@ 'code' => 'DIGIRISKDOLIBARR_SHOW_SHARED_RISKS', 'disabled' => !$areRisksSharable ], - 'CategoryOnRisk' => [ - 'name' => 'CategoryOnRisk', - 'description' => 'CategoryOnRiskDescription', - 'code' => 'DIGIRISKDOLIBARR_CATEGORY_ON_RISK', - ], ]; require __DIR__ . '/../../../saturne/core/tpl/admin/object/object_const_view.tpl.php'; diff --git a/core/tpl/riskanalysis/risk/digiriskdolibarr_risklist_view.tpl.php b/core/tpl/riskanalysis/risk/digiriskdolibarr_risklist_view.tpl.php index dc03a2c2c..c68f6eb3f 100644 --- a/core/tpl/riskanalysis/risk/digiriskdolibarr_risklist_view.tpl.php +++ b/core/tpl/riskanalysis/risk/digiriskdolibarr_risklist_view.tpl.php @@ -739,7 +739,7 @@ class="risk-evaluation-cotation cotation"> if (!empty($conf->categorie->enabled) && getDolGlobalInt('DIGIRISKDOLIBARR_CATEGORY_ON_RISK') > 0) { print '
'.$langs->trans("Categories") . ''; $categoryArborescence = $form->select_all_categories('risk', '', 'parent', 64, 0, 1); - print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('categories', $categoryArborescence, GETPOST('categories', 'array'), '', 0, 'maxwidth300'); + print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('categories', $categoryArborescence, GETPOST('categories', 'array'), '', 0, 'minwidth100imp widthcentpercentminusxx maxwidth400'); print ''; print "
"; } @@ -855,7 +855,7 @@ class="risk-evaluation-cotation cotation"> if (!empty($conf->categorie->enabled) && getDolGlobalInt('DIGIRISKDOLIBARR_CATEGORY_ON_RISK') > 0) { print '
'.$langs->trans("Categories") . ''; $categoryArborescence = $form->select_all_categories('risk', '', 'parent', 64, 0, 1); - print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('categories', $categoryArborescence, GETPOST('categories', 'array'), '', 0, 'maxwidth300'); + print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('categories', $categoryArborescence, GETPOST('categories', 'array'), '', 0, 'minwidth100imp widthcentpercentminusxx maxwidth400'); print ''; print "

"; } ?> @@ -1327,7 +1327,7 @@ class="risk-evaluation-cotation cotation"> $arrayselected[] = $cat->id; } } - print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('categories_risk' . $risk->id, $categoryArborescence, $arrayselected, '', 0, 'maxwidth300'); + print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('categories_risk' . $risk->id, $categoryArborescence, $arrayselected, '', 0, 'minwidth100imp widthcentpercentminusxx maxwidth400'); print ''; print '
'; } ?> diff --git a/langs/fr_FR/digiriskdolibarr.lang b/langs/fr_FR/digiriskdolibarr.lang index a98ed9398..155dbc90c 100644 --- a/langs/fr_FR/digiriskdolibarr.lang +++ b/langs/fr_FR/digiriskdolibarr.lang @@ -959,7 +959,7 @@ DefaultTaskContactType = Rôle par défaut attribué aux tâch RiskListParentView = Afficher tous les éléments parents RiskListParentViewDescription = Afficher tous les éléments parents d'un risque dans la liste des risques CategoryOnRisk = Afficher les tags/catégories sur les risques -CategoryOnRiskDescription = Permet d'attribuer des tags/catégories aux risques et de les afficher - à minipuler avec précaution. +CategoryOnRiskDescription = Permet d'attribuer des tags/catégories aux risques et de les afficher - à manipuler avec précaution # Stats - Statistiques GreyRisk = Risque faible