blob: ad3a1aedf21ae1541cbf32da71b3d13a4ab3001e [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001<?php
2require_once(__DIR__."/../core.php");
3security::checkType(security::ADMIN, security::METHOD_NOTFOUND);
4
5if (!isset($_GET["id"])) {
6 security::notFound();
7}
8
9$id = (int)$_GET["id"];
10
11if (!schedules::templateExists($id)) {
12 security::notFound();
13}
14?>
15
16<form action="dodeletescheduletemplate.php" method="POST" autocomplete="off">
17 <input type="hidden" name="id" value="<?=(int)$id?>">
18 <h4 class="mdl-dialog__title">Eliminar plantilla</h4>
19 <div class="mdl-dialog__content">
20 <p>¿Estás seguro que quieres eliminar esta plantilla? <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>