Commit 29975df8 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

ajout de l'action export des fiches de postes

parent 1381775b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ $this->headTitle('Accueil de '.$user->getDisplayName());


$canVoirFichePoste  = true;
$canExporterFichePoste  = true;
$canVoirFicheSigner = true;
?>

@@ -104,6 +105,13 @@ $canVoirFicheSigner = true;
                        <?php else : ?>
                            <span class="icon voir" style="color:lightgray;"></span>
                        <?php endif; ?>
                        <?php if ($canExporterFichePoste) : ?>
                            <a href="<?php echo $this->url('fiche-poste/export', ['fiche-poste' => $fiche->getId()], [], true); ?>"
                               class="ajax-modal">
                                <span class="icon pdf" title="Exporter la fiche"></span></a>
                        <?php else : ?>
                            <span class="icon pdf" style="color:lightgray;"></span>
                        <?php endif; ?>

                        <?php if ($canVoirFicheSigner) : ?>
                            <a href="">
+8 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ $this->headTitle('Ma structure');
/** PRIVILEGE */
$canEditerDescription               = $this->isAllowed(StructurePrivileges::getResourceId(StructurePrivileges::EDITER_DESCRIPTION));
$canVoirFichePoste                  = $this->isAllowed(FichePostePrivileges::getResourceId(FichePostePrivileges::AFFICHER));
$canExporterFichePoste              = $canVoirFichePoste;
$canEditerFichePoste                = $this->isAllowed(FichePostePrivileges::getResourceId(FichePostePrivileges::EDITER));
$canDetruireFichePoste              = $this->isAllowed(FichePostePrivileges::getResourceId(FichePostePrivileges::DETRUIRE));
//TODO creer les privileges
@@ -167,6 +168,13 @@ $canDetruireMissionSpecifique = $this->isAllowed(FichePostePrivileges::get
                        <?php else : ?>
                            <span class="icon voir" style="color:lightgray;"></span>
                        <?php endif; ?>
                        <?php if ($canExporterFichePoste) : ?>
                            <a href="<?php echo $this->url('fiche-poste/export', ['fiche-poste' => $fiche->getId()], [], true); ?>"
                               class="ajax-modal">
                                <span class="icon pdf" title="Exporter la fiche"></span></a>
                        <?php else : ?>
                            <span class="icon pdf" style="color:lightgray;"></span>
                        <?php endif; ?>
                        <?php if ($canEditerFichePoste) : ?>
                            <a href="<?php echo $this->url('fiche-poste/editer', ['fiche-poste' => $fiche->getId()], ["query" => ["structure" => $structure->getId()]], true); ?>"
                               class="">

readme.md

0 → 100644
+0 −0

Empty file added.