PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 48 lines | 48 code | 0 blank | 0 comment | 0 complexity | 85e3c359d536db557b88dbe97a094b16 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.ingreso.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.ingreso.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>