PageRenderTime 24ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 45 lines | 45 code | 0 blank | 0 comment | 0 complexity | b1a979b61fe4a6cfb36348258c12a6aa MD5 | raw file
  1. <%@ page import="contabilidad.Libro" %>
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta name="layout" content="main">
  6. <g:set var="entityName" value="${message(code: 'libro.label', default: 'Libro')}" />
  7. <title><g:message code="default.create.label" args="[entityName]" /></title>
  8. <r:require module="jquery" />
  9. </head>
  10. <body>
  11. <a href="#create-libro" 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-libro" 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="${libro}">
  24. <ul class="errors" role="alert">
  25. <g:eachError bean="${libro}" 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. $('#nombre').focus();
  42. });
  43. </r:script>
  44. </body>
  45. </html>