PageRenderTime 82ms CodeModel.GetById 41ms app.highlight 0ms RepoModel.GetById 40ms app.codeStats 0ms

/grails-app/views/empresa/nueva.gsp

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