Loading module/Application/src/Application/Service/Competence/CompetenceService.php +5 −3 Changes for module/Application/src/Application/Service/Competence/CompetenceService.php: 5 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -176,15 +176,17 @@ class CompetenceService { /** * @param Competence $competence * @param int $max_length * @return array */ private function competenceOptionify(Competence $competence) { private function competenceOptionify(Competence $competence, $max_length=60) { $texte = (strlen($competence->getLibelle())>$max_length)?substr($competence->getLibelle(),0,$max_length)." ...":$competence->getLibelle(); $this_option = [ 'value' => $competence->getId(), 'attributes' => [ 'data-content' => ($competence->getType())?"<span class='badge ".$competence->getType()->getLibelle()."'>".$competence->getType()->getLibelle()."</span> ". $competence->getLibelle():"", 'data-content' => ($competence->getType())?"<span class='badge ".$competence->getType()->getLibelle()."'>".$competence->getType()->getLibelle()."</span> ". $texte:"", ], 'label' => $competence->getLibelle(), 'label' => $texte, ]; return $this_option; } Loading module/Application/view/application/metier/index.phtml +1 −1 Changes for module/Application/view/application/metier/index.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ $droits = [ <script> $(document).ready(function() { $('.datatable').DataTable( { sorting: false, // sorting: false, // paging: false, language: { url: '/localisation/fr_FR.json' Loading Loading
module/Application/src/Application/Service/Competence/CompetenceService.php +5 −3 Changes for module/Application/src/Application/Service/Competence/CompetenceService.php: 5 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -176,15 +176,17 @@ class CompetenceService { /** * @param Competence $competence * @param int $max_length * @return array */ private function competenceOptionify(Competence $competence) { private function competenceOptionify(Competence $competence, $max_length=60) { $texte = (strlen($competence->getLibelle())>$max_length)?substr($competence->getLibelle(),0,$max_length)." ...":$competence->getLibelle(); $this_option = [ 'value' => $competence->getId(), 'attributes' => [ 'data-content' => ($competence->getType())?"<span class='badge ".$competence->getType()->getLibelle()."'>".$competence->getType()->getLibelle()."</span> ". $competence->getLibelle():"", 'data-content' => ($competence->getType())?"<span class='badge ".$competence->getType()->getLibelle()."'>".$competence->getType()->getLibelle()."</span> ". $texte:"", ], 'label' => $competence->getLibelle(), 'label' => $texte, ]; return $this_option; } Loading
module/Application/view/application/metier/index.phtml +1 −1 Changes for module/Application/view/application/metier/index.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ $droits = [ <script> $(document).ready(function() { $('.datatable').DataTable( { sorting: false, // sorting: false, // paging: false, language: { url: '/localisation/fr_FR.json' Loading