diff --git a/view/unicaen-parametre/categorie/index.phtml b/view/unicaen-parametre/categorie/index.phtml index 62cc9a518414c7c31a1e497379e3c6b32a2d4a7b..000b0a1f13979a9931a4fec26faec318c72515e4 100644 --- a/view/unicaen-parametre/categorie/index.phtml +++ b/view/unicaen-parametre/categorie/index.phtml @@ -25,6 +25,7 @@ $this->headTitle("Affichage des paramètres"); if ($selection !== null) $categories = [ $selection ]; ?> +<div <h1 class="page-header"> Affichage des paramètres </h1> @@ -42,10 +43,7 @@ if ($selection !== null) $categories = [ $selection ]; <?php $id = $categorie->getId(); ?> <div class="row"> - <div class="col-md-12"> - <h2 title="<?php echo $categorie->getDescription(); ?>" data-toggle="tooltip" data-html="true" style="cursor: help;"> Catégorie : <?php echo $categorie->getLibelle(); ?> </h2> - </div> - <div class="pull-right"> + <h2 title="<?php echo $categorie->getDescription(); ?>" data-bs-toggle="tooltip" data-bs-html="true" style="cursor: help;"> Catégorie : <?php echo $categorie->getLibelle(); ?> </h2> <br/> <a <?php /** @see \Application\Controller\ParametreController::ajouterAction() */?> href="<?php echo $this->url('parametre/ajouter', ['categorie' => $categorie->getId()], [], true); ?>" @@ -65,15 +63,16 @@ if ($selection !== null) $categories = [ $selection ]; <i class="fas fa-times"></i> Supprimer la catégorie </a> <?php else : ?> - <span class="btn btn-danger action disabled" data-toggle="tooltip" data-html="true" + <span class="btn btn-danger action disabled" data-bs-toggle="tooltip" data-bs-html="true" title="La catégorie est non vide et ne peut être supprimée" > <i class="fas fa-times"></i> Supprimer la catégorie </span> <?php endif; ?> <?php endif; ?> - </div> </div> +<br/> + <?php if (!isset($array_parametre[$id])) : ?> Aucun paramètre pour cette catégorie @@ -96,7 +95,7 @@ if ($selection !== null) $categories = [ $selection ]; <?php foreach ($array_parametre[$id] as $parametre) : ?> <tr> <td> - <span title="<?php echo $parametre->getDescription(); ?>" data-toggle="tooltip" data-html="true" style="cursor: help;"> + <span title="<?php echo $parametre->getDescription(); ?>" data-bs-toggle="tooltip" data-bs-html="true" style="cursor: help;"> <?php echo $parametre->getLibelle(); ?> </span> </td> @@ -121,15 +120,15 @@ if ($selection !== null) $categories = [ $selection ]; <td> <a <?php /** @see \Application\Controller\ParametreController::modifierValeurAction() */?> href="<?php echo $this->url('parametre/modifier-valeur', ['parametre' => $parametre->getId()], [], true); ?>" title="Modifier la valeur du paramètre <strong><?php echo $parametre->getCode(); ?></strong" - class="ajax-modal" data-event="modification" data-toggle="tooltip" data-html="true"> + class="ajax-modal" data-event="modification" > <i class="fas fa-pencil-alt"></i></a> <a <?php /** @see \Application\Controller\ParametreController::modifierAction() */?> href="<?php echo $this->url('parametre/modifier', ['parametre' => $parametre->getId()], [], true); ?>" title="Modifier le paramètre <strong><?php echo $parametre->getCode(); ?></strong" - class="ajax-modal" data-event="modification" data-toggle="tooltip" data-html="true"> + class="ajax-modal" data-event="modification"> <i class="fas fa-cog"></i></a> <a <?php /** @see \Application\Controller\ParametreController::supprimerAction() */?> href="<?php echo $this->url('parametre/supprimer', ['parametre' => $parametre->getId()], [], true); ?>" title="Supprimer le paramètre <strong><?php echo $parametre->getCode(); ?></strong" - class="ajax-modal disabled" data-event="modification" data-toggle="tooltip" data-html="true" disabled> + class="ajax-modal disabled" data-event="modification" disabled> <i class="fas fa-times disabled"></i></a> </td> </tr> @@ -137,6 +136,7 @@ if ($selection !== null) $categories = [ $selection ]; </tbody> </table> <?php endif;?> + <br/> <?php endforeach; ?> <script> @@ -147,7 +147,7 @@ if ($selection !== null) $categories = [ $selection ]; window.location.reload(); }) .tooltip({ - selector: '[data-toggle="tooltip"]', + selector: '[data-bs-toggle="tooltip"]', placement: "bottom", html: true });