Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 1 | <?php |
| 2 | require_once(__DIR__."/../core.php"); |
| 3 | security::checkType(security::ADMIN, security::METHOD_NOTFOUND); |
| 4 | |
| 5 | if (!security::checkParams("GET", [ |
| 6 | ["incidents", security::PARAM_ISARRAY] |
| 7 | ])) { |
| 8 | security::notFound(); |
| 9 | } |
| 10 | ?> |
| 11 | |
| 12 | <style> |
| 13 | #dynDialog, #dynDialog .mdl-dialog__content { |
| 14 | background: #FFCDD2; |
| 15 | } |
| 16 | </style> |
| 17 | |
| 18 | <form action="dodeleteincidentsbulk.php" method="POST" autocomplete="off"> |
| 19 | <?php |
| 20 | foreach ($_GET["incidents"] as $incident) { |
| 21 | echo "<input type='hidden' name='incidents[]' value='".(int)$incident."'></li>"; |
| 22 | } |
| 23 | ?> |
| 24 | <h4 class="mdl-dialog__title">Eliminar/invalidar incidencias</h4> |
| 25 | <div class="mdl-dialog__content"> |
| 26 | <p>¿Estás seguro que quieres eliminar/invalidar estas incidencias? <span style="color:#EF5350;font-weight:bold;">Esta acción es irreversible</span></p> |
| 27 | <p>Dependiendo del estado de cada incidencia, esta se eliminará o se invalidará.</p> |
| 28 | </div> |
| 29 | <div class="mdl-dialog__actions"> |
| 30 | <button type="submit" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--accent">Eliminar</button> |
| 31 | <button data-dyndialog-close class="mdl-button mdl-js-button mdl-js-ripple-effect cancel">Cancelar</button> |
| 32 | </div> |
| 33 | </form> |