PageRenderTime 273ms CodeModel.GetById 191ms app.highlight 1ms RepoModel.GetById 80ms app.codeStats 0ms

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

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