Commit 5bf3053c authored by joriot221's avatar joriot221
Browse files

Modification du bouton de restauration et gestion de droit de modif etape

parent 41ef1e32
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ $this->headTitle()->append("Offre de formation");
$canExport      = $this->isAllowed(Privileges::getResourceId(Privileges::ODF_EXPORT_CSV)) && count($elements);
$canViewEtape   = $this->isAllowed(Privileges::getResourceId(Privileges::ODF_ETAPE_VISUALISATION));
$canEditElement = $this->isAllowed($structure, Privileges::ODF_ELEMENT_EDITION);
$canEditEtape   = $this->isAllowed($structure, Privileges::ODF_ETAPE_EDITION);
$canSyncElement = $this->isAllowed(Privileges::getResourceId(Privileges::ODF_ELEMENT_SYNCHRONISATION));
?>
<style>
@@ -211,8 +212,8 @@ $canSyncElement = $this->isAllowed(Privileges::getResourceId(Privileges::ODF_ELE
        <?php else: ?>

            <!---------------- Champ de recherche d'un élément pédagogique --------------->
            <?php if ($compl = $etape && $etape->estHistorise()):
                echo "<br />" . $this->tag('a', ['class' => 'no-intranavigation', 'href' => $this->url('of/etape/restaurer', ['etape' => $etape->getId()])])->html('Restaurer la formation');
            <?php if ($canEditEtape && $compl = $etape && $etape->estHistorise()):
                echo "<br />" . $this->tag('a', ['class' => 'btn btn-primary', 'href' => $this->url('of/etape/restaurer', ['etape' => $etape->getId()])])->html('Restaurer la formation');
            endif; ?>

            <div class="element-rech panel panel-default">