Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame^] | 1 | <?php |
| 2 | require_once("core.php"); |
| 3 | security::checkType(security::WORKER); |
| 4 | |
| 5 | $id = people::userData("id"); |
| 6 | ?> |
| 7 | <!DOCTYPE html> |
| 8 | <html> |
| 9 | <head> |
| 10 | <title><?php echo $conf["appName"]; ?></title> |
| 11 | <?php visual::includeHead(); ?> |
| 12 | <link rel="stylesheet" href="css/dashboard.css"> |
| 13 | <link rel="stylesheet" href="css/incidents.css"> |
| 14 | </head> |
| 15 | <?php visual::printBodyTag(); ?> |
| 16 | <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-layout--fixed-drawer"> |
| 17 | <?php visual::includeNav(); ?> |
| 18 | <main class="mdl-layout__content"> |
| 19 | <div class="page-content"> |
| 20 | <div class="main mdl-shadow--4dp"> |
| 21 | <?php helpView::renderHelpButton(help::PLACE_VALIDATION_PAGE, true); ?> |
| 22 | <h2>Validaciones</h2> |
| 23 | <p>Selecciona todas las incidencias y registros de horario a los cuales quieres dar validez.</p> |
| 24 | <?php |
| 25 | validationsView::renderPendingValidations($id); |
| 26 | ?> |
| 27 | </div> |
| 28 | </div> |
| 29 | </main> |
| 30 | </div> |
| 31 | |
| 32 | <div class="mdl-snackbar mdl-js-snackbar"> |
| 33 | <div class="mdl-snackbar__text"></div> |
| 34 | <button type="button" class="mdl-snackbar__action"></button> |
| 35 | </div> |
| 36 | |
| 37 | <?php |
| 38 | visual::smartSnackbar([ |
| 39 | ["unexpected", "Ha ocurrido un error inesperado. Inténtelo de nuevo en unos segundos."], |
| 40 | ["success", "Se ha realizado la validación correctamente."], |
| 41 | ["partialsuccess", "Ha ocurrido un error validando alguno de los elementos. Inténtelo de nuevo en unos segundos."] |
| 42 | ], 10000, false); |
| 43 | ?> |
| 44 | |
| 45 | <script src="js/incidentsgeneric.js"></script> |
| 46 | <script src="js/validations.js"></script> |
| 47 | </body> |
| 48 | </html> |