tecnologia-form.jsp 1.49 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">
6 7
    <layout:put block="cssDeclaracion" type="APPEND"></layout:put>
    <layout:put block="cssDeclaracion" type="APPEND"></layout:put>
8 9
    <layout:put block="contents" type="REPLACE">
        <h2>${tecnologia.id == null ? "Agregar" : "Modificar"} Tecnologia</h2>
10
        <div class="p-3 mb-2 bg-light text-dark  bg-transparent">
11 12 13

            <form:form action="/tecnologia/${tecnologia.id == null ? '' : tecnologia.id}"  method="post" modelAttribute="tecnologia" class="row row-cols-lg-auto g-3 align-items-center">
            <div class="col-12">
14 15 16 17 18
                <form:label class="form-label visually-hidden"  path="nombre">Nombre: </form:label> 
                <form:input type="text" path="nombre" class="form-control ${ mismoNombre ? 'is-invalid' : ''}" required="true" placeholder="Nombre de la tecnologia"/>
                <div id="validationServerUsernameFeedback" class="invalid-feedback">
                    Este nombre ya existe
                  </div>
19 20 21 22 23 24
            </div>
            <div class="col-12">
                <input type="submit" value="Guardar" class="btn btn-primary"/>
            </div>
            </form:form>
        </div>
25 26
    </layout:put>
</layout:extends>