PageRenderTime 68ms CodeModel.GetById 58ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/grails-app/views/entrada/ver.gsp

http://github.com/jdmr/mateo
text | 182 lines | 132 code | 50 blank | 0 comment | 0 complexity | a5e4f0986bf40e463413ec1236cc1a27 MD5 | raw file
  1
  2<%@ page import="inventario.Entrada" %>
  3<!doctype html>
  4<html>
  5	<head>
  6		<meta name="layout" content="main">
  7		<g:set var="entityName" value="${message(code: 'entrada.label', default: 'Entrada')}" />
  8		<title><g:message code="default.show.label" args="[entityName]" /></title>
  9	</head>
 10	<body>
 11		<a href="#show-entrada" 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="lista"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
 16				<li><g:link class="create" action="nueva"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
 17			</ul>
 18		</div>
 19		<div id="show-entrada" 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 entrada">
 25			
 26				<g:if test="${entrada?.folio}">
 27				<li class="fieldcontain">
 28					<span id="folio-label" class="property-label"><g:message code="entrada.folio.label" default="Folio" /></span>
 29					
 30						<span class="property-value" aria-labelledby="folio-label"><g:fieldValue bean="${entrada}" field="folio"/></span>
 31					
 32				</li>
 33				</g:if>
 34			
 35				<g:if test="${entrada?.factura}">
 36				<li class="fieldcontain">
 37					<span id="factura-label" class="property-label"><g:message code="entrada.factura.label" default="Factura" /></span>
 38					
 39						<span class="property-value" aria-labelledby="factura-label"><g:fieldValue bean="${entrada}" field="factura"/></span>
 40					
 41				</li>
 42				</g:if>
 43			
 44				<g:if test="${entrada?.fechaFactura}">
 45				<li class="fieldcontain">
 46					<span id="fechaFactura-label" class="property-label"><g:message code="entrada.fechaFactura.label" default="Fecha Factura" /></span>
 47					
 48						<span class="property-value" aria-labelledby="fechaFactura-label"><g:formatDate date="${entrada?.fechaFactura}" /></span>
 49					
 50				</li>
 51				</g:if>
 52			
 53				<g:if test="${entrada?.iva}">
 54				<li class="fieldcontain">
 55					<span id="iva-label" class="property-label"><g:message code="entrada.iva.label" default="Iva" /></span>
 56					
 57						<span class="property-value" aria-labelledby="iva-label"><g:fieldValue bean="${entrada}" field="iva"/></span>
 58					
 59				</li>
 60				</g:if>
 61			
 62				<g:if test="${entrada?.total}">
 63				<li class="fieldcontain">
 64					<span id="total-label" class="property-label"><g:message code="entrada.total.label" default="Total" /></span>
 65					
 66						<span class="property-value" aria-labelledby="total-label"><g:fieldValue bean="${entrada}" field="total"/></span>
 67					
 68				</li>
 69				</g:if>
 70			
 71				<g:if test="${entrada?.tipoCambio}">
 72				<li class="fieldcontain">
 73					<span id="tipoCambio-label" class="property-label"><g:message code="entrada.tipoCambio.label" default="Tipo Cambio" /></span>
 74					
 75						<span class="property-value" aria-labelledby="tipoCambio-label"><g:fieldValue bean="${entrada}" field="tipoCambio"/></span>
 76					
 77				</li>
 78				</g:if>
 79			
 80				<g:if test="${entrada?.estatus}">
 81				<li class="fieldcontain">
 82					<span id="estatus-label" class="property-label"><g:message code="entrada.estatus.label" default="Estatus" /></span>
 83					
 84						<span class="property-value" aria-labelledby="estatus-label"><g:fieldValue bean="${entrada}" field="estatus"/></span>
 85					
 86				</li>
 87				</g:if>
 88			
 89				<g:if test="${entrada?.comentarios}">
 90				<li class="fieldcontain">
 91					<span id="comentarios-label" class="property-label"><g:message code="entrada.comentarios.label" default="Comentarios" /></span>
 92					
 93						<span class="property-value" aria-labelledby="comentarios-label"><g:fieldValue bean="${entrada}" field="comentarios"/></span>
 94					
 95				</li>
 96				</g:if>
 97			
 98				<g:if test="${entrada?.facturaAlmacen}">
 99				<li class="fieldcontain">
100					<span id="facturaAlmacen-label" class="property-label"><g:message code="entrada.facturaAlmacen.label" default="Factura Almacen" /></span>
101					
102						<span class="property-value" aria-labelledby="facturaAlmacen-label"><g:link controller="facturaAlmacen" action="show" id="${entrada?.facturaAlmacen?.id}">${entrada?.facturaAlmacen?.encodeAsHTML()}</g:link></span>
103					
104				</li>
105				</g:if>
106			
107				<g:if test="${entrada?.almacen}">
108				<li class="fieldcontain">
109					<span id="almacen-label" class="property-label"><g:message code="entrada.almacen.label" default="Almacen" /></span>
110					
111						<span class="property-value" aria-labelledby="almacen-label"><g:link controller="almacen" action="show" id="${entrada?.almacen?.id}">${entrada?.almacen?.encodeAsHTML()}</g:link></span>
112					
113				</li>
114				</g:if>
115			
116				<g:if test="${entrada?.dateCreated}">
117				<li class="fieldcontain">
118					<span id="dateCreated-label" class="property-label"><g:message code="entrada.dateCreated.label" default="Date Created" /></span>
119					
120						<span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate date="${entrada?.dateCreated}" /></span>
121					
122				</li>
123				</g:if>
124			
125				<g:if test="${entrada?.devolucion}">
126				<li class="fieldcontain">
127					<span id="devolucion-label" class="property-label"><g:message code="entrada.devolucion.label" default="Devolucion" /></span>
128					
129						<span class="property-value" aria-labelledby="devolucion-label"><g:formatBoolean boolean="${entrada?.devolucion}" /></span>
130					
131				</li>
132				</g:if>
133			
134				<g:if test="${entrada?.lastUpdated}">
135				<li class="fieldcontain">
136					<span id="lastUpdated-label" class="property-label"><g:message code="entrada.lastUpdated.label" default="Last Updated" /></span>
137					
138						<span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate date="${entrada?.lastUpdated}" /></span>
139					
140				</li>
141				</g:if>
142			
143				<g:if test="${entrada?.lotes}">
144				<li class="fieldcontain">
145					<span id="lotes-label" class="property-label"><g:message code="entrada.lotes.label" default="Lotes" /></span>
146					
147						<g:each in="${entrada.lotes}" var="l">
148						<span class="property-value" aria-labelledby="lotes-label"><g:link controller="loteEntrada" action="show" id="${l.id}">${l?.encodeAsHTML()}</g:link></span>
149						</g:each>
150					
151				</li>
152				</g:if>
153			
154				<g:if test="${entrada?.proveedor}">
155				<li class="fieldcontain">
156					<span id="proveedor-label" class="property-label"><g:message code="entrada.proveedor.label" default="Proveedor" /></span>
157					
158						<span class="property-value" aria-labelledby="proveedor-label"><g:link controller="proveedor" action="show" id="${entrada?.proveedor?.id}">${entrada?.proveedor?.encodeAsHTML()}</g:link></span>
159					
160				</li>
161				</g:if>
162			
163				<g:if test="${entrada?.totalFactura}">
164				<li class="fieldcontain">
165					<span id="totalFactura-label" class="property-label"><g:message code="entrada.totalFactura.label" default="Total Factura" /></span>
166					
167						<span class="property-value" aria-labelledby="totalFactura-label"><g:fieldValue bean="${entrada}" field="totalFactura"/></span>
168					
169				</li>
170				</g:if>
171			
172			</ol>
173			<g:form>
174				<fieldset class="buttons">
175					<g:hiddenField name="id" value="${entrada?.id}" />
176					<g:link class="edit" action="edita" id="${entrada?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
177					<g:actionSubmit class="delete" action="elimina" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
178				</fieldset>
179			</g:form>
180		</div>
181	</body>
182</html>