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 (!isset($_GET["id"])) { |
| 6 | security::notFound(); |
| 7 | } |
| 8 | |
| 9 | $id = (int)$_GET["id"]; |
| 10 | |
| 11 | if (!schedules::exists($id)) { |
| 12 | security::notFound(); |
| 13 | } |
| 14 | ?> |
| 15 | |
| 16 | <form action="dodeleteschedule.php" method="POST" autocomplete="off"> |
| 17 | <input type="hidden" name="id" value="<?=(int)$id?>"> |
| 18 | <h4 class="mdl-dialog__title">Eliminar horario</h4> |
| 19 | <div class="mdl-dialog__content"> |
| 20 | <p>¿Estás seguro que quieres eliminar este horario? <span style="color:#EF5350;font-weight:bold;">Esta acción es irreversible</span></p> |
| 21 | </div> |
| 22 | <div class="mdl-dialog__actions"> |
| 23 | <button type="submit" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--accent">Eliminar</button> |
| 24 | <button data-dyndialog-close class="mdl-button mdl-js-button mdl-js-ripple-effect cancel">Cancelar</button> |
| 25 | </div> |
| 26 | </form> |