PageRenderTime 42ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/grails-app/views/loteSalida/_form.gsp

http://github.com/jdmr/mateo
text | 36 lines | 29 code | 7 blank | 0 comment | 0 complexity | 83f1cd8022ef440e576f764a4ed3dda0 MD5 | raw file
  1. <%@ page import="inventario.LoteSalida" %>
  2. <div class="fieldcontain ${hasErrors(bean: loteSalida, field: 'cantidad', 'error')} required">
  3. <label for="cantidad">
  4. <g:message code="loteSalida.cantidad.label" default="Cantidad" />
  5. <span class="required-indicator">*</span>
  6. </label>
  7. <g:field type="number" name="cantidad" required="" value="${fieldValue(bean: loteSalida, field: 'cantidad')}"/>
  8. </div>
  9. <div class="fieldcontain ${hasErrors(bean: loteSalida, field: 'iva', 'error')} required">
  10. <label for="iva">
  11. <g:message code="loteSalida.iva.label" default="Iva" />
  12. <span class="required-indicator">*</span>
  13. </label>
  14. <g:field type="number" name="iva" required="" value="${fieldValue(bean: loteSalida, field: 'iva')}"/>
  15. </div>
  16. <div class="fieldcontain ${hasErrors(bean: loteSalida, field: 'producto', 'error')} required">
  17. <label for="producto">
  18. <g:message code="loteSalida.producto.label" default="Producto" />
  19. <span class="required-indicator">*</span>
  20. </label>
  21. <g:select id="producto" name="producto.id" from="${inventario.Producto.list()}" optionKey="id" required="" value="${loteSalida?.producto?.id}" class="many-to-one"/>
  22. </div>
  23. <div class="fieldcontain ${hasErrors(bean: loteSalida, field: 'salida', 'error')} required">
  24. <label for="salida">
  25. <g:message code="loteSalida.salida.label" default="Salida" />
  26. <span class="required-indicator">*</span>
  27. </label>
  28. <g:select id="salida" name="salida.id" from="${inventario.Salida.list()}" optionKey="id" required="" value="${loteSalida?.salida?.id}" class="many-to-one"/>
  29. </div>