diff --git a/view/unicaen-indicateur/categorie/index.phtml b/view/unicaen-indicateur/categorie/index.phtml index c0dd4e9783f178d31e908955606f992d97ed0fac..7076ce59525dbcdedf43ac519d140dd19cdd44a8 100644 --- a/view/unicaen-indicateur/categorie/index.phtml +++ b/view/unicaen-indicateur/categorie/index.phtml @@ -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) : ?> diff --git a/view/unicaen-indicateur/default/default-form.phtml b/view/unicaen-indicateur/default/default-form.phtml index e531e71ae49855a487efb19a42a4430f64b03246..5e528e2911aadf8f998ff758daa711ed320c6796 100644 --- a/view/unicaen-indicateur/default/default-form.phtml +++ b/view/unicaen-indicateur/default/default-form.phtml @@ -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 () { diff --git a/view/unicaen-indicateur/indicateur/index.phtml b/view/unicaen-indicateur/indicateur/index.phtml index 56038326cfe96113471a0e486642603138c933da..f042aa56754aa4d8615710592e783dd4240c19ed 100644 --- a/view/unicaen-indicateur/indicateur/index.phtml +++ b/view/unicaen-indicateur/indicateur/index.phtml @@ -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; ?> diff --git a/view/unicaen-indicateur/tableau-de-bord/index.phtml b/view/unicaen-indicateur/tableau-de-bord/index.phtml index ee14510ba9073741a990ea41953d54fd7d667426..5e73c21c8066482b6d9bfe2b6eb5929506d320c8 100644 --- a/view/unicaen-indicateur/tableau-de-bord/index.phtml +++ b/view/unicaen-indicateur/tableau-de-bord/index.phtml @@ -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>