PageRenderTime 26ms CodeModel.GetById 21ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 144 lines | 106 code | 38 blank | 0 comment | 0 complexity | c4bfe313e77f9a0a3a89419ba542c1e0 MD5 | raw file
  1
  2<%@ page import="general.Cliente" %>
  3<!doctype html>
  4<html>
  5	<head>
  6		<meta name="layout" content="main">
  7		<g:set var="entityName" value="${message(code: 'cliente.label', default: 'Cliente')}" />
  8		<title><g:message code="default.show.label" args="[entityName]" /></title>
  9	</head>
 10	<body>
 11		<a href="#show-cliente" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
 12		<div class="nav" role="navigation">
 13			<ul>
 14				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
 15				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
 16				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
 17			</ul>
 18		</div>
 19		<div id="show-cliente" class="content scaffold-show" role="main">
 20			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
 21			<g:if test="${flash.message}">
 22			<div class="message" role="status">${flash.message}</div>
 23			</g:if>
 24			<ol class="property-list cliente">
 25			
 26				<g:if test="${clienteInstance?.nombre}">
 27				<li class="fieldcontain">
 28					<span id="nombre-label" class="property-label"><g:message code="cliente.nombre.label" default="Nombre" /></span>
 29					
 30						<span class="property-value" aria-labelledby="nombre-label"><g:fieldValue bean="${clienteInstance}" field="nombre"/></span>
 31					
 32				</li>
 33				</g:if>
 34			
 35				<g:if test="${clienteInstance?.nombreCompleto}">
 36				<li class="fieldcontain">
 37					<span id="nombreCompleto-label" class="property-label"><g:message code="cliente.nombreCompleto.label" default="Nombre Completo" /></span>
 38					
 39						<span class="property-value" aria-labelledby="nombreCompleto-label"><g:fieldValue bean="${clienteInstance}" field="nombreCompleto"/></span>
 40					
 41				</li>
 42				</g:if>
 43			
 44				<g:if test="${clienteInstance?.rfc}">
 45				<li class="fieldcontain">
 46					<span id="rfc-label" class="property-label"><g:message code="cliente.rfc.label" default="Rfc" /></span>
 47					
 48						<span class="property-value" aria-labelledby="rfc-label"><g:fieldValue bean="${clienteInstance}" field="rfc"/></span>
 49					
 50				</li>
 51				</g:if>
 52			
 53				<g:if test="${clienteInstance?.curp}">
 54				<li class="fieldcontain">
 55					<span id="curp-label" class="property-label"><g:message code="cliente.curp.label" default="Curp" /></span>
 56					
 57						<span class="property-value" aria-labelledby="curp-label"><g:fieldValue bean="${clienteInstance}" field="curp"/></span>
 58					
 59				</li>
 60				</g:if>
 61			
 62				<g:if test="${clienteInstance?.direccion}">
 63				<li class="fieldcontain">
 64					<span id="direccion-label" class="property-label"><g:message code="cliente.direccion.label" default="Direccion" /></span>
 65					
 66						<span class="property-value" aria-labelledby="direccion-label"><g:fieldValue bean="${clienteInstance}" field="direccion"/></span>
 67					
 68				</li>
 69				</g:if>
 70			
 71				<g:if test="${clienteInstance?.telefono}">
 72				<li class="fieldcontain">
 73					<span id="telefono-label" class="property-label"><g:message code="cliente.telefono.label" default="Telefono" /></span>
 74					
 75						<span class="property-value" aria-labelledby="telefono-label"><g:fieldValue bean="${clienteInstance}" field="telefono"/></span>
 76					
 77				</li>
 78				</g:if>
 79			
 80				<g:if test="${clienteInstance?.fax}">
 81				<li class="fieldcontain">
 82					<span id="fax-label" class="property-label"><g:message code="cliente.fax.label" default="Fax" /></span>
 83					
 84						<span class="property-value" aria-labelledby="fax-label"><g:fieldValue bean="${clienteInstance}" field="fax"/></span>
 85					
 86				</li>
 87				</g:if>
 88			
 89				<g:if test="${clienteInstance?.contacto}">
 90				<li class="fieldcontain">
 91					<span id="contacto-label" class="property-label"><g:message code="cliente.contacto.label" default="Contacto" /></span>
 92					
 93						<span class="property-value" aria-labelledby="contacto-label"><g:fieldValue bean="${clienteInstance}" field="contacto"/></span>
 94					
 95				</li>
 96				</g:if>
 97			
 98				<g:if test="${clienteInstance?.correo}">
 99				<li class="fieldcontain">
100					<span id="correo-label" class="property-label"><g:message code="cliente.correo.label" default="Correo" /></span>
101					
102						<span class="property-value" aria-labelledby="correo-label"><g:fieldValue bean="${clienteInstance}" field="correo"/></span>
103					
104				</li>
105				</g:if>
106			
107				<g:if test="${clienteInstance?.base}">
108				<li class="fieldcontain">
109					<span id="base-label" class="property-label"><g:message code="cliente.base.label" default="Base" /></span>
110					
111						<span class="property-value" aria-labelledby="base-label"><g:formatBoolean boolean="${clienteInstance?.base}" /></span>
112					
113				</li>
114				</g:if>
115			
116				<g:if test="${clienteInstance?.empresa}">
117				<li class="fieldcontain">
118					<span id="empresa-label" class="property-label"><g:message code="cliente.empresa.label" default="Empresa" /></span>
119					
120						<span class="property-value" aria-labelledby="empresa-label"><g:link controller="empresa" action="show" id="${clienteInstance?.empresa?.id}">${clienteInstance?.empresa?.encodeAsHTML()}</g:link></span>
121					
122				</li>
123				</g:if>
124			
125				<g:if test="${clienteInstance?.tipoCliente}">
126				<li class="fieldcontain">
127					<span id="tipoCliente-label" class="property-label"><g:message code="cliente.tipoCliente.label" default="Tipo Cliente" /></span>
128					
129						<span class="property-value" aria-labelledby="tipoCliente-label"><g:link controller="tipoCliente" action="show" id="${clienteInstance?.tipoCliente?.id}">${clienteInstance?.tipoCliente?.encodeAsHTML()}</g:link></span>
130					
131				</li>
132				</g:if>
133			
134			</ol>
135			<g:form>
136				<fieldset class="buttons">
137					<g:hiddenField name="id" value="${clienteInstance?.id}" />
138					<g:link class="edit" action="edit" id="${clienteInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
139					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
140				</fieldset>
141			</g:form>
142		</div>
143	</body>
144</html>