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

/grails-app/views/imagen/create.gsp

http://github.com/jdmr/mateo
text | 39 lines | 39 code | 0 blank | 0 comment | 0 complexity | f7eec0b56bc0af4d71b997a34a1799b1 MD5 | raw file
  1. <%@ page import="general.Imagen" %>
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta name="layout" content="main">
  6. <g:set var="entityName" value="${message(code: 'imagen.label', default: 'Imagen')}" />
  7. <title><g:message code="default.create.label" args="[entityName]" /></title>
  8. </head>
  9. <body>
  10. <a href="#create-imagen" 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="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
  15. </ul>
  16. </div>
  17. <div id="create-imagen" 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="${imagenInstance}">
  23. <ul class="errors" role="alert">
  24. <g:eachError bean="${imagenInstance}" 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="save" enctype="multipart/form-data">
  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>