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");
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,7 +63,7 @@ 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
......@@ -73,7 +71,8 @@ if ($selection !== null) $categories = [ $selection ];
<?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
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment