PageRenderTime 57ms CodeModel.GetById 33ms app.highlight 0ms RepoModel.GetById 23ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 44 lines | 34 code | 10 blank | 0 comment | 0 complexity | c12f122a07250e14146cf3deabdb5d6a MD5 | raw file
 1<%@ page import="general.TipoCliente" %>
 2
 3
 4
 5<div class="fieldcontain ${hasErrors(bean: tipoClienteInstance, field: 'nombre', 'error')} required">
 6	<label for="nombre">
 7		<g:message code="tipoCliente.nombre.label" default="Nombre" />
 8		<span class="required-indicator">*</span>
 9	</label>
10	<g:textField name="nombre" maxlength="16" required="" value="${tipoClienteInstance?.nombre}"/>
11</div>
12
13<div class="fieldcontain ${hasErrors(bean: tipoClienteInstance, field: 'descripcion', 'error')} ">
14	<label for="descripcion">
15		<g:message code="tipoCliente.descripcion.label" default="Descripcion" />
16		
17	</label>
18	<g:textField name="descripcion" maxlength="128" value="${tipoClienteInstance?.descripcion}"/>
19</div>
20
21<div class="fieldcontain ${hasErrors(bean: tipoClienteInstance, field: 'margenUtilidad', 'error')} required">
22	<label for="margenUtilidad">
23		<g:message code="tipoCliente.margenUtilidad.label" default="Margen Utilidad" />
24		<span class="required-indicator">*</span>
25	</label>
26	<g:field type="number" name="margenUtilidad" required="" value="${fieldValue(bean: tipoClienteInstance, field: 'margenUtilidad')}"/>
27</div>
28
29<div class="fieldcontain ${hasErrors(bean: tipoClienteInstance, field: 'base', 'error')} ">
30	<label for="base">
31		<g:message code="tipoCliente.base.label" default="Base" />
32		
33	</label>
34	<g:checkBox name="base" value="${tipoClienteInstance?.base}" />
35</div>
36
37<div class="fieldcontain ${hasErrors(bean: tipoClienteInstance, field: 'empresa', 'error')} required">
38	<label for="empresa">
39		<g:message code="tipoCliente.empresa.label" default="Empresa" />
40		<span class="required-indicator">*</span>
41	</label>
42	<g:select id="empresa" name="empresa.id" from="${general.Empresa.list()}" optionKey="id" required="" value="${tipoClienteInstance?.empresa?.id}" class="many-to-one"/>
43</div>
44