PageRenderTime 103ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 59ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 130 lines | 98 code | 32 blank | 0 comment | 0 complexity | 6f320ab566599d311a988ff4d2cd61a0 MD5 | raw file
  1
  2<%@ page import="general.Usuario" %>
  3<!doctype html>
  4<html>
  5	<head>
  6		<meta name="layout" content="main">
  7		<g:set var="entityName" value="${message(code: 'usuario.label', default: 'Usuario')}" />
  8		<title><g:message code="default.show.label" args="[entityName]" /></title>
  9	</head>
 10	<body>
 11		<a href="#show-usuario" 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-usuario" 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 usuario">
 25			
 26				<g:if test="${usuario?.username}">
 27				<li class="fieldcontain">
 28					<span id="username-label" class="property-label"><g:message code="usuario.username.label" default="Username" /></span>
 29					
 30						<span class="property-value" aria-labelledby="username-label"><g:fieldValue bean="${usuario}" field="username"/></span>
 31					
 32				</li>
 33				</g:if>
 34			
 35				<g:if test="${usuario?.nombre}">
 36				<li class="fieldcontain">
 37					<span id="nombre-label" class="property-label"><g:message code="usuario.nombre.label" default="Nombre" /></span>
 38					
 39						<span class="property-value" aria-labelledby="nombre-label"><g:fieldValue bean="${usuario}" field="nombre"/></span>
 40					
 41				</li>
 42				</g:if>
 43			
 44				<g:if test="${usuario?.apellido}">
 45				<li class="fieldcontain">
 46					<span id="apellido-label" class="property-label"><g:message code="usuario.apellido.label" default="Apellido" /></span>
 47					
 48						<span class="property-value" aria-labelledby="apellido-label"><g:fieldValue bean="${usuario}" field="apellido"/></span>
 49					
 50				</li>
 51				</g:if>
 52			
 53				<g:if test="${usuario?.correo}">
 54				<li class="fieldcontain">
 55					<span id="correo-label" class="property-label"><g:message code="usuario.correo.label" default="Correo" /></span>
 56					
 57						<span class="property-value" aria-labelledby="correo-label"><g:fieldValue bean="${usuario}" field="correo"/></span>
 58					
 59				</li>
 60				</g:if>
 61			
 62				<g:if test="${usuario?.accountExpired}">
 63				<li class="fieldcontain">
 64					<span id="accountExpired-label" class="property-label"><g:message code="usuario.accountExpired.label" default="Account Expired" /></span>
 65					
 66						<span class="property-value" aria-labelledby="accountExpired-label"><g:checkBox name="accountExpired" value="${usuario?.accountExpired}" disabled="true" /></span>
 67					
 68				</li>
 69				</g:if>
 70			
 71				<g:if test="${usuario?.accountLocked}">
 72				<li class="fieldcontain">
 73					<span id="accountLocked-label" class="property-label"><g:message code="usuario.accountLocked.label" default="Account Locked" /></span>
 74					
 75						<span class="property-value" aria-labelledby="accountLocked-label"><g:checkBox name="accountLocked" value="${usuario?.accountLocked}" disabled="true" /></span>
 76					
 77				</li>
 78				</g:if>
 79			
 80				<g:if test="${usuario?.enabled}">
 81				<li class="fieldcontain">
 82					<span id="enabled-label" class="property-label"><g:message code="usuario.enabled.label" default="Enabled" /></span>
 83					
 84						<span class="property-value" aria-labelledby="enabled-label"><g:checkBox name="enabled" value="${usuario?.enabled}" disabled="true" /></span>
 85					
 86				</li>
 87				</g:if>
 88			
 89				<g:if test="${usuario?.passwordExpired}">
 90				<li class="fieldcontain">
 91					<span id="passwordExpired-label" class="property-label"><g:message code="usuario.passwordExpired.label" default="Password Expired" /></span>
 92					
 93						<span class="property-value" aria-labelledby="passwordExpired-label"><g:checkBox name="passwordExpired" value="${usuario?.passwordExpired}" disabled="true" /></span>
 94					
 95				</li>
 96				</g:if>
 97
 98				<g:if test="${usuario?.empresa}">
 99				<li class="fieldcontain">
100					<span id="passwordExpired-label" class="property-label"><g:message code="usuario.empresa.label" default="Empresa" /></span>
101					
102						<span class="property-value" aria-labelledby="empresa-label"><g:fieldValue bean="${usuario}" field="empresa"/></span>
103					
104				</li>
105				</g:if>
106
107                <g:if test="${roles}">
108                    <li class="fieldcontain">
109                        <span id="authorities-label" class="property-label"><g:message code="usuario.authorities.label" default="Authorities" /></span>
110                        
111                        <span class="property-value" aria-labelledby="authorities-label">
112                            <g:each var="entry" in="${roles}">
113                                <g:checkBox disabled="true" name="${entry.key.authority}" value="${entry.value}"/> ${entry.key.authority}<br/>
114                            </g:each>
115                        </span>
116                        
117                    </li>
118                </g:if>
119			
120			</ol>
121			<g:form>
122				<fieldset class="buttons">
123					<g:hiddenField name="id" value="${usuario?.id}" />
124					<g:link class="edit" action="edita" id="${usuario?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
125					<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?')}');" />
126				</fieldset>
127			</g:form>
128		</div>
129	</body>
130</html>