PageRenderTime 64ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 100 lines | 78 code | 22 blank | 0 comment | 0 complexity | 1baae6d87e1a69203cbc7463ef7568ec MD5 | raw file
  1<%@ page import="general.Cliente" %>
  2
  3
  4
  5<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'nombre', 'error')} required">
  6	<label for="nombre">
  7		<g:message code="cliente.nombre.label" default="Nombre" />
  8		<span class="required-indicator">*</span>
  9	</label>
 10	<g:textField name="nombre" maxlength="64" required="" value="${clienteInstance?.nombre}"/>
 11</div>
 12
 13<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'nombreCompleto', 'error')} required">
 14	<label for="nombreCompleto">
 15		<g:message code="cliente.nombreCompleto.label" default="Nombre Completo" />
 16		<span class="required-indicator">*</span>
 17	</label>
 18	<g:textField name="nombreCompleto" maxlength="128" required="" value="${clienteInstance?.nombreCompleto}"/>
 19</div>
 20
 21<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'rfc', 'error')} required">
 22	<label for="rfc">
 23		<g:message code="cliente.rfc.label" default="Rfc" />
 24		<span class="required-indicator">*</span>
 25	</label>
 26	<g:textField name="rfc" maxlength="13" required="" value="${clienteInstance?.rfc}"/>
 27</div>
 28
 29<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'curp', 'error')} ">
 30	<label for="curp">
 31		<g:message code="cliente.curp.label" default="Curp" />
 32		
 33	</label>
 34	<g:textField name="curp" value="${clienteInstance?.curp}"/>
 35</div>
 36
 37<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'direccion', 'error')} ">
 38	<label for="direccion">
 39		<g:message code="cliente.direccion.label" default="Direccion" />
 40		
 41	</label>
 42	<g:textArea name="direccion" cols="40" rows="5" maxlength="500" value="${clienteInstance?.direccion}"/>
 43</div>
 44
 45<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'telefono', 'error')} ">
 46	<label for="telefono">
 47		<g:message code="cliente.telefono.label" default="Telefono" />
 48		
 49	</label>
 50	<g:textField name="telefono" maxlength="25" value="${clienteInstance?.telefono}"/>
 51</div>
 52
 53<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'fax', 'error')} ">
 54	<label for="fax">
 55		<g:message code="cliente.fax.label" default="Fax" />
 56		
 57	</label>
 58	<g:textField name="fax" maxlength="25" value="${clienteInstance?.fax}"/>
 59</div>
 60
 61<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'contacto', 'error')} ">
 62	<label for="contacto">
 63		<g:message code="cliente.contacto.label" default="Contacto" />
 64		
 65	</label>
 66	<g:textField name="contacto" maxlength="64" value="${clienteInstance?.contacto}"/>
 67</div>
 68
 69<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'correo', 'error')} ">
 70	<label for="correo">
 71		<g:message code="cliente.correo.label" default="Correo" />
 72		
 73	</label>
 74	<g:field type="email" name="correo" maxlength="128" value="${clienteInstance?.correo}"/>
 75</div>
 76
 77<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'base', 'error')} ">
 78	<label for="base">
 79		<g:message code="cliente.base.label" default="Base" />
 80		
 81	</label>
 82	<g:checkBox name="base" value="${clienteInstance?.base}" />
 83</div>
 84
 85<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'empresa', 'error')} required">
 86	<label for="empresa">
 87		<g:message code="cliente.empresa.label" default="Empresa" />
 88		<span class="required-indicator">*</span>
 89	</label>
 90	<g:select id="empresa" name="empresa.id" from="${general.Empresa.list()}" optionKey="id" required="" value="${clienteInstance?.empresa?.id}" class="many-to-one"/>
 91</div>
 92
 93<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'tipoCliente', 'error')} required">
 94	<label for="tipoCliente">
 95		<g:message code="cliente.tipoCliente.label" default="Tipo Cliente" />
 96		<span class="required-indicator">*</span>
 97	</label>
 98	<g:select id="tipoCliente" name="tipoCliente.id" from="${general.TipoCliente.list()}" optionKey="id" required="" value="${clienteInstance?.tipoCliente?.id}" class="many-to-one"/>
 99</div>
100