PageRenderTime 19ms CodeModel.GetById 8ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/grails-app/views/poliza/nuevaEgreso.gsp

http://github.com/jdmr/mateo
text | 48 lines | 48 code | 0 blank | 0 comment | 0 complexity | 49a6c49958902b9af877009fc493453a MD5 | raw file
 1<%@ page import="contabilidad.Poliza" %>
 2<!doctype html>
 3<html>
 4	<head>
 5		<meta name="layout" content="main">
 6		<g:set var="entityName" value="${message(code: 'poliza.label', default: 'Poliza')}" />
 7		<title><g:message code="poliza.nueva.egreso.label" /></title>
 8        <r:require module="jquery" />
 9	</head>
10	<body>
11		<a href="#create-poliza" 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-poliza" class="content scaffold-create" role="main">
19			<h1><g:message code="poliza.nueva.egreso.label" /></h1>
20			<g:if test="${flash.message}">
21			<div class="message" role="status">${flash.message}</div>
22			</g:if>
23			<g:hasErrors bean="${poliza}">
24			<ul class="errors" role="alert">
25				<g:eachError bean="${poliza}" 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                <g:if test="${poliza.tipo}">
32                    <g:hiddenField name="tipo" value="${poliza.tipo}" />
33                </g:if>
34				<fieldset class="form">
35					<g:render template="form"/>
36				</fieldset>
37				<fieldset class="buttons">
38					<g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" />
39				</fieldset>
40			</g:form>
41		</div>
42        <r:script>
43            $(document).ready(function() {
44                $('#descripcion').focus();
45            });
46        </r:script>
47	</body>
48</html>