PageRenderTime 47ms CodeModel.GetById 21ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 82 lines | 65 code | 17 blank | 0 comment | 0 complexity | 8caac29bd93074f3e8c73a6d40bf21bf MD5 | raw file
 1<%@ page import="inventario.Entrada" %>
 2
 3<div class="fieldcontain ${hasErrors(bean: entrada, field: 'iva', 'error')} required">
 4	<label for="iva">
 5		<g:message code="entrada.iva.label" default="Iva" />
 6		<span class="required-indicator">*</span>
 7	</label>
 8	<g:field type="number" name="iva" min="0" required="" value="${fieldValue(bean: entrada, field: 'iva')}"/>
 9</div>
10
11<div class="fieldcontain ${hasErrors(bean: entrada, field: 'tipoCambio', 'error')} ">
12	<label for="tipoCambio">
13		<g:message code="entrada.tipoCambio.label" default="Tipo Cambio" />
14		
15	</label>
16	<g:field type="number" name="tipoCambio" value="${fieldValue(bean: entrada, field: 'tipoCambio')}"/>
17</div>
18
19<div class="fieldcontain ${hasErrors(bean: entrada, field: 'estatus', 'error')} ">
20	<label for="estatus">
21		<g:message code="entrada.estatus.label" default="Estatus" />
22		
23	</label>
24	<g:select name="estatus" from="${entrada.constraints.estatus.inList}" value="${entrada?.estatus}" valueMessagePrefix="entrada.estatus" noSelection="['': '']"/>
25</div>
26
27<div class="fieldcontain ${hasErrors(bean: entrada, field: 'comentarios', 'error')} ">
28	<label for="comentarios">
29		<g:message code="entrada.comentarios.label" default="Comentarios" />
30		
31	</label>
32	<g:textField name="comentarios" maxlength="128" value="${entrada?.comentarios}"/>
33</div>
34
35<div class="fieldcontain ${hasErrors(bean: entrada, field: 'facturaAlmacen', 'error')} ">
36	<label for="facturaAlmacen">
37		<g:message code="entrada.facturaAlmacen.label" default="Factura Almacen" />
38		
39	</label>
40	<g:select id="facturaAlmacen" name="facturaAlmacen.id" from="${inventario.FacturaAlmacen.list()}" optionKey="id" value="${entrada?.facturaAlmacen?.id}" class="many-to-one" noSelection="['null': '']"/>
41</div>
42
43<div class="fieldcontain ${hasErrors(bean: entrada, field: 'almacen', 'error')} required">
44	<label for="almacen">
45		<g:message code="entrada.almacen.label" default="Almacen" />
46		<span class="required-indicator">*</span>
47	</label>
48	<g:select id="almacen" name="almacen.id" from="${inventario.Almacen.list()}" optionKey="id" required="" value="${entrada?.almacen?.id}" class="many-to-one"/>
49</div>
50
51<div class="fieldcontain ${hasErrors(bean: entrada, field: 'devolucion', 'error')} ">
52	<label for="devolucion">
53		<g:message code="entrada.devolucion.label" default="Devolucion" />
54		
55	</label>
56	<g:checkBox name="devolucion" value="${entrada?.devolucion}" />
57</div>
58
59<div class="fieldcontain ${hasErrors(bean: entrada, field: 'lotes', 'error')} ">
60	<label for="lotes">
61		<g:message code="entrada.lotes.label" default="Lotes" />
62		
63	</label>
64	
65<ul class="one-to-many">
66<g:each in="${entrada?.lotes?}" var="l">
67    <li><g:link controller="loteEntrada" action="ver" id="${l.id}">${l?.encodeAsHTML()}</g:link></li>
68</g:each>
69<li class="add">
70<g:link controller="loteEntrada" action="nueva" params="['entrada.id': entrada?.id]">${message(code: 'default.add.label', args: [message(code: 'loteEntrada.label', default: 'LoteEntrada')])}</g:link>
71</li>
72</ul>
73
74</div>
75
76<div class="fieldcontain ${hasErrors(bean: entrada, field: 'proveedor', 'error')} required">
77	<label for="proveedor">
78		<g:message code="entrada.proveedor.label" default="Proveedor" />
79		<span class="required-indicator">*</span>
80	</label>
81	<g:select id="proveedor" name="proveedor.id" from="${general.Proveedor.list()}" optionKey="id" required="" value="${entrada?.proveedor?.id}" class="many-to-one"/>
82</div>