PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/grails-app/views/producto/nuevo.gsp

http://github.com/jdmr/mateo
text | 39 lines | 39 code | 0 blank | 0 comment | 0 complexity | b1a979b61fe4a6cfb36348258c12a6aa MD5 | raw file
 1<%@ page import="inventario.Producto" %>
 2<!doctype html>
 3<html>
 4	<head>
 5		<meta name="layout" content="main">
 6		<g:set var="entityName" value="${message(code: 'producto.label', default: 'Producto')}" />
 7		<title><g:message code="default.create.label" args="[entityName]" /></title>
 8	</head>
 9	<body>
10		<a href="#create-producto" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
11		<div class="nav" role="navigation">
12			<ul>
13				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
14				<li><g:link class="list" action="lista"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
15			</ul>
16		</div>
17		<div id="create-producto" class="content scaffold-create" role="main">
18			<h1><g:message code="default.create.label" args="[entityName]" /></h1>
19			<g:if test="${flash.message}">
20			<div class="message" role="status">${flash.message}</div>
21			</g:if>
22			<g:hasErrors bean="${producto}">
23			<ul class="errors" role="alert">
24				<g:eachError bean="${producto}" var="error">
25				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
26				</g:eachError>
27			</ul>
28			</g:hasErrors>
29			<g:form action="crea" >
30				<fieldset class="form">
31					<g:render template="form"/>
32				</fieldset>
33				<fieldset class="buttons">
34					<g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" />
35				</fieldset>
36			</g:form>
37		</div>
38	</body>
39</html>