Skip to content
Snippets Groups Projects
Commit 0742adb5 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Problème de tooltip

parent 04311ff0
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,7 @@ $this->headTitle("Affichage des paramètres"); ...@@ -25,6 +25,7 @@ $this->headTitle("Affichage des paramètres");
if ($selection !== null) $categories = [ $selection ]; if ($selection !== null) $categories = [ $selection ];
?> ?>
<div
<h1 class="page-header"> <h1 class="page-header">
Affichage des paramètres Affichage des paramètres
</h1> </h1>
...@@ -42,10 +43,7 @@ if ($selection !== null) $categories = [ $selection ]; ...@@ -42,10 +43,7 @@ if ($selection !== null) $categories = [ $selection ];
<?php $id = $categorie->getId(); ?> <?php $id = $categorie->getId(); ?>
<div class="row"> <div class="row">
<div class="col-md-12"> <h2 title="<?php echo $categorie->getDescription(); ?>" data-bs-toggle="tooltip" data-bs-html="true" style="cursor: help;"> Catégorie : <?php echo $categorie->getLibelle(); ?> </h2>
<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">
<br/> <br/>
<a <?php /** @see \Application\Controller\ParametreController::ajouterAction() */?> <a <?php /** @see \Application\Controller\ParametreController::ajouterAction() */?>
href="<?php echo $this->url('parametre/ajouter', ['categorie' => $categorie->getId()], [], true); ?>" href="<?php echo $this->url('parametre/ajouter', ['categorie' => $categorie->getId()], [], true); ?>"
...@@ -65,7 +63,7 @@ if ($selection !== null) $categories = [ $selection ]; ...@@ -65,7 +63,7 @@ if ($selection !== null) $categories = [ $selection ];
<i class="fas fa-times"></i> Supprimer la catégorie <i class="fas fa-times"></i> Supprimer la catégorie
</a> </a>
<?php else : ?> <?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" title="La catégorie est non vide et ne peut être supprimée"
> >
<i class="fas fa-times"></i> Supprimer la catégorie <i class="fas fa-times"></i> Supprimer la catégorie
...@@ -73,7 +71,8 @@ if ($selection !== null) $categories = [ $selection ]; ...@@ -73,7 +71,8 @@ if ($selection !== null) $categories = [ $selection ];
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> <br/>
<?php if (!isset($array_parametre[$id])) : ?> <?php if (!isset($array_parametre[$id])) : ?>
Aucun paramètre pour cette catégorie Aucun paramètre pour cette catégorie
...@@ -96,7 +95,7 @@ if ($selection !== null) $categories = [ $selection ]; ...@@ -96,7 +95,7 @@ if ($selection !== null) $categories = [ $selection ];
<?php foreach ($array_parametre[$id] as $parametre) : ?> <?php foreach ($array_parametre[$id] as $parametre) : ?>
<tr> <tr>
<td> <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(); ?> <?php echo $parametre->getLibelle(); ?>
</span> </span>
</td> </td>
...@@ -121,15 +120,15 @@ if ($selection !== null) $categories = [ $selection ]; ...@@ -121,15 +120,15 @@ if ($selection !== null) $categories = [ $selection ];
<td> <td>
<a <?php /** @see \Application\Controller\ParametreController::modifierValeurAction() */?> <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" 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> <i class="fas fa-pencil-alt"></i></a>
<a <?php /** @see \Application\Controller\ParametreController::modifierAction() */?> <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" 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> <i class="fas fa-cog"></i></a>
<a <?php /** @see \Application\Controller\ParametreController::supprimerAction() */?> <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" 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> <i class="fas fa-times disabled"></i></a>
</td> </td>
</tr> </tr>
...@@ -137,6 +136,7 @@ if ($selection !== null) $categories = [ $selection ]; ...@@ -137,6 +136,7 @@ if ($selection !== null) $categories = [ $selection ];
</tbody> </tbody>
</table> </table>
<?php endif;?> <?php endif;?>
<br/>
<?php endforeach; ?> <?php endforeach; ?>
<script> <script>
...@@ -147,7 +147,7 @@ if ($selection !== null) $categories = [ $selection ]; ...@@ -147,7 +147,7 @@ if ($selection !== null) $categories = [ $selection ];
window.location.reload(); window.location.reload();
}) })
.tooltip({ .tooltip({
selector: '[data-toggle="tooltip"]', selector: '[data-bs-toggle="tooltip"]',
placement: "bottom", placement: "bottom",
html: true html: true
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment