tecnologias.jsp 1.71 KB
Newer Older
1 2 3
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
4 5
<%@ taglib uri="http://kwonnam.pe.kr/jsp/template-inheritance" prefix="layout"%>
<layout:extends name="layouts/base.jsp">
willgonzz committed
6
    <layout:put block="cssDeclaracion" type="APPEND"><link href="../css/cargoStyle.css" rel="stylesheet" type="text/css"/></layout:put>
7
    <layout:put block="contents" type="REPLACE">
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
        <h2>Lista de Tecnologias</h2>

        <div>
            <form>
                <label for="tecnologias">Nombre:</label>
                <input type="text" name="nombre" id="nombre" value="${param.nombre}"/>
                <input type="submit" value="Buscar">
            </form>
            <a href="/tecnologia">Agregar Nueva Tecnologia</a>
        </div>
        <div>
            <table class="table">
                <thead>
                  <tr>
                    <th scope="col">#</th>
                    <th scope="col">Tecnologia</th>
                  </tr>
                </thead>
                <tbody>
                  
                    <c:forEach items="${tecnologias}" var="tecnologia" varStatus="sta">
                        <tr>
                            <th scope="row">${sta.index+1}</th>
                            <td>${tecnologia.getNombre()}</td>
                           
                            <td><a href="/tecnologia/${tecnologia.id}">Editar tecnologia</a></td>
                        </tr>
                    </c:forEach>
                    
                  
                 
                </tbody>
              </table>
        </div>
42 43
    </layout:put>
</layout:extends>