PageRenderTime 41ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

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

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