PageRenderTime 204ms CodeModel.GetById 81ms app.highlight 1ms RepoModel.GetById 120ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 72 lines | 58 code | 14 blank | 0 comment | 0 complexity | 7e713b7b17738d3a27637c30571f3a8f MD5 | raw file
 1
 2<%@ page import="contabilidad.Libro" %>
 3<!doctype html>
 4<html>
 5	<head>
 6		<meta name="layout" content="main">
 7		<g:set var="entityName" value="${message(code: 'libro.label', default: 'Libro')}" />
 8		<title><g:message code="default.show.label" args="[entityName]" /></title>
 9	</head>
10	<body>
11		<a href="#show-libro" 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="nuevo"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
17			</ul>
18		</div>
19		<div id="show-libro" 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 libro">
25			
26				<g:if test="${libro?.nombre}">
27				<li class="fieldcontain">
28					<span id="nombre-label" class="property-label"><g:message code="libro.nombre.label" default="Nombre" /></span>
29					
30						<span class="property-value" aria-labelledby="nombre-label"><g:fieldValue bean="${libro}" field="nombre"/></span>
31					
32				</li>
33				</g:if>
34			
35				<g:if test="${libro?.dateCreated}">
36				<li class="fieldcontain">
37					<span id="dateCreated-label" class="property-label"><g:message code="libro.dateCreated.label" default="Date Created" /></span>
38					
39						<span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate date="${libro?.dateCreated}" /></span>
40					
41				</li>
42				</g:if>
43			
44				<g:if test="${libro?.empresa}">
45				<li class="fieldcontain">
46					<span id="empresa-label" class="property-label"><g:message code="libro.empresa.label" default="Empresa" /></span>
47					
48						<span class="property-value" aria-labelledby="empresa-label"><g:link controller="empresa" action="show" id="${libro?.empresa?.id}">${libro?.empresa?.encodeAsHTML()}</g:link></span>
49					
50				</li>
51				</g:if>
52			
53				<g:if test="${libro?.lastUpdated}">
54				<li class="fieldcontain">
55					<span id="lastUpdated-label" class="property-label"><g:message code="libro.lastUpdated.label" default="Last Updated" /></span>
56					
57						<span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate date="${libro?.lastUpdated}" /></span>
58					
59				</li>
60				</g:if>
61			
62			</ol>
63			<g:form>
64				<fieldset class="buttons">
65					<g:hiddenField name="id" value="${libro?.id}" />
66					<g:link class="edit" action="edita" id="${libro?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
67					<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?')}');" />
68				</fieldset>
69			</g:form>
70		</div>
71	</body>
72</html>