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

CSS des indexes et ajustement tinyMCE

parent 8378e373
No related branches found
No related tags found
No related merge requests found
Pipeline #35529 failed
......@@ -63,7 +63,13 @@ $canTableaux = $this->isAllowed(TableaudebordPrivileges::getResourceId(Tableaude
<?php foreach ($categories as $categorie) : ?>
<tr>
<td> <?php echo $categorie->getCode(); ?> </td>
<td> <?php echo $categorie->getLibelle(); ?> </td>
<td> <?php echo $categorie->getLibelle(); ?>
<?php if ($categorie->getDescription()) : ?>
<small>
<?php echo $categorie->getDescription(); ?>
</small>
<?php endif; ?>
</td>
<td> <?php echo count($categorie->getIndicateurs()); ?> </td>
<td class="action">
<?php if ($canAfficher) : ?>
......
......@@ -23,6 +23,7 @@ use Laminas\Form\Form;
browser_spellcheck : true,
branding: false,
menu: {},
menubar: false,
body_id: 'description',
setup: function (editor) {
editor.on("focusout", function () {
......
......@@ -79,7 +79,7 @@ $canCategories = $this->isAllowed(IndicateurPrivileges::getResourceId(Indicateur
<th> Titre </th>
<th> Entity </th>
<th> #Abonnement </th>
<th> Action </th>
<th class="action"> Action </th>
</tr>
</thead>
<tbody>
......@@ -90,8 +90,10 @@ $canCategories = $this->isAllowed(IndicateurPrivileges::getResourceId(Indicateur
<td>
<?php echo $indicateur->getTitre(); ?>
<?php if ($indicateur->getDescription()) : ?>
<span class="icon icon-information" data-bs-toggle='tooltip' data-bs-html='true'
title="<?php echo $indicateur->getDescription(); ?> "></span>
<br>
<small>
<?php echo $indicateur->getDescription(); ?>
</small>
<?php endif; ?>
</td>
<td> <?php echo $indicateur->getEntity(); ?> </td>
......@@ -109,31 +111,33 @@ $canCategories = $this->isAllowed(IndicateurPrivileges::getResourceId(Indicateur
</a>
<?php endif;?>
</td>
<td>
<td class="action">
<?php if ($canVoir): ?>
<?php /** @see IndicateurController::afficherAction() */?>
<a href="<?php echo $this->url("indicateur/afficher", ['indicateur' => $indicateur->getId()], [], true); ?>">
<span class="icon icon-voir" title="Visualiser l'indicateur"></span></a>
<?php else : ?>
<span class="icon icon-voir" style="color:lightgray"></span>
<a href="<?php echo $this->url("indicateur/afficher", ['indicateur' => $indicateur->getId()], [], true); ?>"
class="action secondary"
>
<span class="icon icon-voir"></span> Afficher</a>
<?php endif; ?>
<?php if ($canEditer): ?>
<br>
<?php /** @see IndicateurController::modifierAction() */?>
<a href="<?php echo $this->url("indicateur/modifier", ['indicateur' => $indicateur->getId()], [], true); ?>" >
<span class="icon icon-editer" title="Modifier l'indicateur"></span></a>
<?php else : ?>
<span class="icon icon-editer" style="color:lightgray"></span>
<a href="<?php echo $this->url("indicateur/modifier", ['indicateur' => $indicateur->getId()], [], true); ?>"
class="action primary"
>
<span class="icon icon-editer"></span>
Modifier
</a>
<?php endif; ?>
<?php if ($canDetruire): ?>
<br>
<?php /** @see IndicateurController::detruireAction() */?>
<a href="<?php echo $this->url("indicateur/detruire", ['indicateur' => $indicateur->getId()], [], true); ?>"
class="ajax-modal" data-event="modification"
class="ajax-modal action danger" data-event="modification"
>
<span class="text-danger icon icon-unchecked" title="Détruire l'indicateur"></span></a>
<?php else : ?>
<span class="icon icon-unchecked" style="color:lightgray"></span>
<span class="icon icon-unchecked"></span>
Supprimer
</a>
<?php endif; ?>
......
......@@ -57,7 +57,7 @@ $canIndicateurs = $this->isAllowed(IndicateurPrivileges::getResourceId(Indicateu
<tr>
<th>Titre</th>
<th>#indicateurs</th>
<th>Action</th>
<th class="action">Action</th>
</tr>
</thead>
<tbody>
......@@ -66,27 +66,39 @@ $canIndicateurs = $this->isAllowed(IndicateurPrivileges::getResourceId(Indicateu
<td>
<?php echo $tableau->getTitre(); ?>
<?php if ($tableau->getDescription()) : ?>
<span class="icon icon-information" data-bs-toggle="tooltip" data-bs-html="true"
title="<?php echo $tableau->getDescription(); ?>"></span>
<br>
<small>
<?php echo $tableau->getDescription(); ?>
</small>
<?php endif; ?>
</td>
<td>
<?php echo count($tableau->getIndicateurs()); ?>
</td>
<td>
<td class="action">
<?php if ($canAfficher) : ?>
<a href="<?php echo $this->url('tableau-de-bord/afficher', ['tableau-de-bord' => $tableau->getId()], [], true); ?>">
<span class="icon icon-voir" title="Afficher le tableau de bord"></span></a>
<a href="<?php echo $this->url('tableau-de-bord/afficher', ['tableau-de-bord' => $tableau->getId()], [], true); ?>"
class="action secondary"
>
<span class="icon icon-voir" title="Afficher le tableau de bord"></span>
Afficher
</a>
<?php endif; ?>
<?php if ($canModifier) : ?>
<br>
<a href="<?php echo $this->url('tableau-de-bord/modifier', ['tableau-de-bord' => $tableau->getId()], [], true); ?>"
class="ajax-modal" data-event="modification">
<span class="icon icon-editer" title="Modifier le tableau de bord"></span></a>
class="ajax-modal action primary" data-event="modification">
<span class="icon icon-editer" title="Modifier le tableau de bord"></span>
Modifier
</a>
<?php endif; ?>
<?php if ($canSupprimer) : ?>
<br>
<a href="<?php echo $this->url('tableau-de-bord/supprimer', ['tableau-de-bord' => $tableau->getId()], [], true); ?>"
class="ajax-modal" data-event="modification">
<span class="icon icon-unchecked text-danger"></span></a>
class="ajax-modal action danger" data-event="modification">
<span class="icon icon-unchecked"></span>
Supprimer
</a>
<?php endif; ?>
</td>
</tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment