Loading src/Controller/EnqueteController.php +1 −1 Original line number Diff line number Diff line Loading @@ -118,7 +118,7 @@ class EnqueteController extends AbstractActionController $vm = new ViewModel(); if ($enquete !== null) { $vm->setTemplate('default/confirmation'); $vm->setTemplate('unicaen-enquete/default/confirmation'); $vm->setVariables([ 'title' => "Suppression de l'enquête [" . $enquete->getTitre() . "]", 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", Loading src/Controller/GroupeController.php +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ class GroupeController extends AbstractActionController $vm = new ViewModel(); if ($groupe !== null) { $vm->setTemplate('default/confirmation'); $vm->setTemplate('unicaen-enquete/default/confirmation'); $vm->setVariables([ 'title' => "Suppression du groupe [" . $groupe->getLibelle() . "]", 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", Loading src/Controller/InstanceController.php +1 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ class InstanceController extends AbstractActionController $vm = new ViewModel(); if ($instance !== null) { $vm->setTemplate('default/confirmation'); $vm->setTemplate('unicaen-enquete/default/confirmation'); $vm->setVariables([ 'title' => "Suppression de l'instance [" . $instance->getId() . "]", 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", Loading src/Controller/QuestionController.php +1 −1 Original line number Diff line number Diff line Loading @@ -126,7 +126,7 @@ class QuestionController extends AbstractActionController $vm = new ViewModel(); if ($question !== null) { $vm->setTemplate('default/confirmation'); $vm->setTemplate('unicaen-enquete/default/confirmation'); $vm->setVariables([ 'title' => "Suppression d'une question [" . $question->getLibelle() . "]", 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", Loading view/unicaen-enquete/default/confirmation.phtml 0 → 100644 +51 −0 Original line number Diff line number Diff line <?php /** * @var string $title * @var string $text * @var string $warning * @var string $action */ ?> <?php if (isset($warning)) : ?> <div class="alert alert-warning"> <p class="lead"> <?php echo $warning; ?> </p> </div> <?php endif; ?> <?php if (isset($text)) : ?> <p class="lead"> <?php echo $text; ?> </p> <?php endif; ?> <table> <tr> <td> <form method="post" action="<?php echo $action; ?>"> <input type="hidden" name="reponse" value="oui"> <input type="submit" name="oui" class="btn btn-success action" value="Oui, je suis sûr·e"> </form> </td> <td> <form method="post" action="<?php echo $action; ?>"> <input type="hidden" name="reponse" value="non"> <input type="submit" id="non" name="non" class="btn btn-danger action" value="Non, je ne veux pas"> </form> </td> </tr> </table> <script> $(function () { $("input#non").click(function (e) { $('div.modal').modal('hide'); e.preventDefault(e); }); }); </script> Loading
src/Controller/EnqueteController.php +1 −1 Original line number Diff line number Diff line Loading @@ -118,7 +118,7 @@ class EnqueteController extends AbstractActionController $vm = new ViewModel(); if ($enquete !== null) { $vm->setTemplate('default/confirmation'); $vm->setTemplate('unicaen-enquete/default/confirmation'); $vm->setVariables([ 'title' => "Suppression de l'enquête [" . $enquete->getTitre() . "]", 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", Loading
src/Controller/GroupeController.php +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ class GroupeController extends AbstractActionController $vm = new ViewModel(); if ($groupe !== null) { $vm->setTemplate('default/confirmation'); $vm->setTemplate('unicaen-enquete/default/confirmation'); $vm->setVariables([ 'title' => "Suppression du groupe [" . $groupe->getLibelle() . "]", 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", Loading
src/Controller/InstanceController.php +1 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ class InstanceController extends AbstractActionController $vm = new ViewModel(); if ($instance !== null) { $vm->setTemplate('default/confirmation'); $vm->setTemplate('unicaen-enquete/default/confirmation'); $vm->setVariables([ 'title' => "Suppression de l'instance [" . $instance->getId() . "]", 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", Loading
src/Controller/QuestionController.php +1 −1 Original line number Diff line number Diff line Loading @@ -126,7 +126,7 @@ class QuestionController extends AbstractActionController $vm = new ViewModel(); if ($question !== null) { $vm->setTemplate('default/confirmation'); $vm->setTemplate('unicaen-enquete/default/confirmation'); $vm->setVariables([ 'title' => "Suppression d'une question [" . $question->getLibelle() . "]", 'text' => "La suppression est définitive êtes-vous sûr·e de vouloir continuer ?", Loading
view/unicaen-enquete/default/confirmation.phtml 0 → 100644 +51 −0 Original line number Diff line number Diff line <?php /** * @var string $title * @var string $text * @var string $warning * @var string $action */ ?> <?php if (isset($warning)) : ?> <div class="alert alert-warning"> <p class="lead"> <?php echo $warning; ?> </p> </div> <?php endif; ?> <?php if (isset($text)) : ?> <p class="lead"> <?php echo $text; ?> </p> <?php endif; ?> <table> <tr> <td> <form method="post" action="<?php echo $action; ?>"> <input type="hidden" name="reponse" value="oui"> <input type="submit" name="oui" class="btn btn-success action" value="Oui, je suis sûr·e"> </form> </td> <td> <form method="post" action="<?php echo $action; ?>"> <input type="hidden" name="reponse" value="non"> <input type="submit" id="non" name="non" class="btn btn-danger action" value="Non, je ne veux pas"> </form> </td> </tr> </table> <script> $(function () { $("input#non").click(function (e) { $('div.modal').modal('hide'); e.preventDefault(e); }); }); </script>