<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org" layout:decorate="~{base}"> <head> <meta charset="UTF-8"> <title>Solicitud licenia Casero</title> </head> <body layout:fragment="content"> <div class="container"> <div id="submitRow"></div> <div th:if="${requests.isEmpty()}"> <h5 class="center-align">No hay solicitudes que mostrar</h5> </div> <table id="tablaRequestsLic" class="leftTop responsive-table highlight centered" style="margin-top: 80px"> <thead class="header z-depth-1"> <tr> <th>No.</th> <th>Usuario</th> <th>Nombre</th> <th>Apellidos</th> <th>Correo</th> <th>Teléfono</th> <th>Acciones</th> </tr> </thead> <tbody class="z-depth-1"> <div th:if="${not #lists.isEmpty(requests)}"> <tr th:each="req : ${requests}"> <td th:text="${req.getId()}"></td> <td th:text="${req.getUser()}"></td> <td th:text="${req.getName()}"></td> <td th:text="${req.getLastName()}"></td> <td th:text="${req.getEmail()}"></td> <td th:text="${req.getPhoneNumber()}"></td> <td> <button class="license waves-effect tooltipped btn btn-small btn-floating white" th:id="'license'+${req.id}" type="submit" data-position="botton" data-tooltip="Crear licencia"> <i class="material-icons tiny light-blue-text">description</i> </button> <button class="delete waves-effect tooltipped btn btn-small btn-floating white modal-trigger" th:id="'delete'+${req.id}" type="submit" data-target="modalDeleteLic" data-position="botton" data-tooltip="Eliminar solicitud"> <i class="material-icons tiny red-text">delete</i> </button> </td> </tr> <div th:id="modalDelete" id="modalDelete" class="modal"> <div class="modal-content"> <h4>Eliminar solicitud</h4> <p>¿ Desea eliminar la solicitud seleccionada ?</p> </div> <div class="modal-footer"> <button onclick="deleteRequestLic()" class="modal-close waves-effect btn-small"><i class="material-icons">check</i>Aceptar</button> <button class="modal-close waves-effect red waves-red btn-small"><i class="material-icons">cancel</i>Cancelar </button> </div> </div> </div> </tbody> </table> </div> <script type="text/javascript" th:src="@{/js/casero/casero_requests_lic.js}" src="../static/js/casero/casero_requests_lic.js"></script> </body> </html>