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

amelioration module document

parent 47a29c19
Loading
Loading
Loading
Loading
+1 −1
Changes for module/UnicaenDocument/config/merged/contenu.config.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ return [
                [
                    'controller' => ContenuController::class,
                    'action' => [
                        'supprimer',
                        'detruire',
                    ],
                    'privileges' => [
                        DocumentcontentPrivileges::DOCUMENTCONTENU_SUPPRIMER,
+1 −1
Changes for module/UnicaenDocument/src/UnicaenDocument/Controller/ContenuController.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ class ContenuController extends AbstractActionController {
            $vm->setVariables([
                'title' => "Suppression du contenu [" . $contenu->getCode() . "]",
                'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?",
                'action' => $this->url()->fromRoute('contenu/detruire', ["contenu" => $contenu->getId()], [], true),
                'action' => $this->url()->fromRoute('contenu/contenu/detruire', ["contenu" => $contenu->getId()], [], true),
            ]);
        }
        return $vm;
+10 −1
Changes for module/UnicaenDocument/view/unicaen-document/contenu/index.phtml: 10 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ $this->headTitle("Index des contenus");
        </thead>
        <tbody>
            <?php foreach ($contenus as $contenu) : ?>
                <tr>
                <tr class="<?php if ($contenu->estHistorise()) echo 'historise '; ?>">
                    <td>
                        <?php echo $contenu->getCode(); ?>
                        <?php if ($contenu->getDescription() !== null) : ?>
@@ -87,3 +87,12 @@ $this->headTitle("Index des contenus");
        </tbody>
    </table>
</div>

<script>
    $(function() {
        $("body").on("modification", function (event) {
            event.div.modal('hide');
            window.location.reload();
        });
    });
</script>
 No newline at end of file