mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Cambios en las nuevas vistas y arreglo de algunos errores
This commit is contained in:
parent
c10ecb7458
commit
d1909ec7e1
9 changed files with 81 additions and 32 deletions
|
@ -522,6 +522,38 @@ text-align: center;
|
|||
background-color: rgb(204, 128, 51);
|
||||
}
|
||||
|
||||
#clientTable th{
|
||||
width: 30%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#clientTable td{
|
||||
vertical-align:middle;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#reviewTable th{
|
||||
width: 30%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#reviewTable td{
|
||||
vertical-align:middle;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#usuarioTable th{
|
||||
width: 20%;
|
||||
text-align: center;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
#usuarioTable td{
|
||||
width:20%;
|
||||
vertical-align:middle;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#vacio {
|
||||
text-align:center;
|
||||
font-size: 120%;
|
||||
|
|
|
@ -48,10 +48,25 @@ createSpeedOffers= Crear ofertas por rapidez comiendo
|
|||
createTimeOffers= Crear ofertas por franja horaria
|
||||
init= Inicio del intervalo
|
||||
finishOffer= Fin del intervalo
|
||||
name= Nombre del restaurante
|
||||
name= Nombre del bar/restaurante
|
||||
status= Estado de oferta
|
||||
myOffers= Ver mis Ofertas
|
||||
typeMismatch=Debe ser del formato correcto
|
||||
typeMismatch.java.lang.Integer=Debe ser un número
|
||||
typeMismatch.java.time.LocalDateTime=Debe ser una fecha válida
|
||||
typeMismatch.java.time.LocalTime=Debe ser una hora válida
|
||||
clientShow= Información del bar/restaurante
|
||||
client= Cliente
|
||||
clients= Clientes
|
||||
email=Dirección de correo electrónico
|
||||
addressClient= Dirección del bar/restaurante
|
||||
addressUser= Dirección del usuario
|
||||
telephone= Número de teléfono
|
||||
descriptionClient= Descripción del bar/restaurante
|
||||
foodClient= Tipo de comida
|
||||
enabled= ¿Está activo el usuario?
|
||||
users=Usuarios
|
||||
nameUser=Nombre
|
||||
surname= Apellidos
|
||||
dni= DNI
|
||||
usuario=Usuario
|
|
@ -9,7 +9,7 @@
|
|||
<cheapy:layout pageName="client">
|
||||
|
||||
<jsp:body>
|
||||
<h2 class="text-center" style="font-family: 'Lobster'; font-size: 30px; color: rgb(0, 64, 128); padding:30px"><em>¿Está seguro de que quiere eliminar su cuenta?</em></h2>
|
||||
<h2 class="text-center" style="font-family: 'Lobster'; font-size: 30px; color: rgb(0, 64, 128); padding:30px"><em>¿Está seguro de que quiere eliminar su cuenta?</em></h2>
|
||||
|
||||
<form:form modelAttribute="client" class="form-horizontal">
|
||||
|
||||
|
|
|
@ -16,34 +16,34 @@
|
|||
<table class="table table-striped" id="clientTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><fmt:message key="clientInit"/></th>
|
||||
<td><c:out value="${client.init}"/></td>
|
||||
<th><fmt:message key="init"/></th>
|
||||
<td><c:out value="${client.init}h"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><fmt:message key="clientFinish"/></th>
|
||||
<td><c:out value="${client.finish}"/></td>
|
||||
<th><fmt:message key="finishOffer"/></th>
|
||||
<td><c:out value="${client.finish}h"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><fmt:message key="nameClient"/></th>
|
||||
<th><fmt:message key="name"/></th>
|
||||
<td><c:out value="${client.name}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><fmt:message key="emailClient"/></th>
|
||||
<td><c:out value="${client.email}%"/> </td>
|
||||
<th><fmt:message key="email"/></th>
|
||||
<td><c:out value="${client.email}"/> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th><fmt:message key="addressClient"/></th>
|
||||
<td><c:out value="${client.address}%"/> </td>
|
||||
<td><c:out value="${client.address}"/> </td>
|
||||
</tr><tr>
|
||||
<th><fmt:message key="telephoneClient"/></th>
|
||||
<td><c:out value="${client.telephone}%"/> </td>
|
||||
<th><fmt:message key="telephone"/></th>
|
||||
<td><c:out value="${client.telephone}"/> </td>
|
||||
</tr><tr>
|
||||
<th><fmt:message key="descriptionClient"/></th>
|
||||
<td><c:out value="${client.description}%"/> </td>
|
||||
<td><c:out value="${client.description}"/> </td>
|
||||
</tr><tr>
|
||||
<th><fmt:message key="foodClient"/></th>
|
||||
<td><c:out value="${client.food}%"/> </td>
|
||||
<td><c:out value="${client.food}"/> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
<thead>
|
||||
<tr>
|
||||
|
||||
<th><fmt:message key="nameClient"/></th>
|
||||
<th><fmt:message key="username"/></th>
|
||||
<th><fmt:message key="name"/></th>
|
||||
<th><fmt:message key="user"/></th>
|
||||
<th><fmt:message key="enabled"/></th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<cheapy:layout pageName="usuario">
|
||||
|
||||
<jsp:body>
|
||||
<h2 class="text-center" style="font-family: 'Lobster'; font-size: 30px; color: rgb(0, 64, 128); padding:30px"><em>¿Está seguro de que quiere eliminar su cuenta?</em></h2>
|
||||
<h2 class="text-center" style="font-family: 'Lobster'; font-size: 30px; color: rgb(0, 64, 128); padding:30px"><em>¿Está seguro de que quiere eliminar su cuenta?</em></h2>
|
||||
|
||||
<form:form modelAttribute="usuario" class="form-horizontal">
|
||||
|
||||
|
|
|
@ -8,18 +8,18 @@
|
|||
<link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet'>
|
||||
|
||||
<cheapy:layout pageName="usuarios">
|
||||
<h2 style="text-align:center;padding:5px"><fmt:message key="usuarios"/></h2>
|
||||
<h2 style="text-align:center;padding:5px"><fmt:message key="users"/></h2>
|
||||
|
||||
<c:if test="${empty usuarioLs }">
|
||||
<p id="vacio" >No hay ningun usuario.</p>
|
||||
<p id="vacio" >No hay ningún usuario.</p>
|
||||
</c:if>
|
||||
<c:if test="${not empty usuarioLs }">
|
||||
<table id="usuarioTable" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><fmt:message key="nombre"/></th>
|
||||
<th><fmt:message key="apellidos"/></th>
|
||||
<th><fmt:message key="username"/></th>
|
||||
<th><fmt:message key="nameUser"/></th>
|
||||
<th><fmt:message key="surname"/></th>
|
||||
<th><fmt:message key="user"/></th>
|
||||
<th><fmt:message key="enabled"/></th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
<table class="table table-striped" id="usuarioTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><fmt:message key="nombre"/></th>
|
||||
<th><fmt:message key="nameUser"/></th>
|
||||
<td><c:out value="${usuario.nombre}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><fmt:message key="apellidos"/></th>
|
||||
<th><fmt:message key="surname"/></th>
|
||||
<td><c:out value="${usuario.apellidos}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -26,11 +26,11 @@
|
|||
<td><c:out value="${usuario.dni}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><fmt:message key="direccion"/></th>
|
||||
<th><fmt:message key="addressUser"/></th>
|
||||
<td><c:out value="${usuario.direccion}"/> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><fmt:message key="telefono"/></th>
|
||||
<th><fmt:message key="telephone"/></th>
|
||||
<td><c:out value="${usuario.telefono}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<fmt:message key="createOffers"/> </button>
|
||||
</div>
|
||||
<div class="btn-home">
|
||||
<button type="button" role="link" onclick="window.location='/clients/show'" style="font-family: 'Lobster'; font-size: 20px;margin:5px;">
|
||||
<button type="button" role="link" onclick="window.location='/clients/show'" style="font-family: 'Lobster'; font-size: 20px;margin:5px;" class="btn-block">
|
||||
<span class="glyphicon glyphicon-cutlery" aria-hidden="true" style="padding: 5px"> </span>
|
||||
<fmt:message key="clientShow"/> </button>
|
||||
</div>
|
||||
|
@ -43,11 +43,13 @@
|
|||
</sec:authorize>
|
||||
</div>
|
||||
<sec:authorize access="hasAnyAuthority('usuario')">
|
||||
<div class="btn-home">
|
||||
<button type="button" role="link" onclick="window.location='/usuarios/show'" style="font-family: 'Lobster'; font-size: 20px;margin:5px;">
|
||||
<span class="glyphicon glyphicon-cutlery" aria-hidden="true" style="padding: 5px"> </span>
|
||||
<fmt:message key="showUsuario"/> </button>
|
||||
</div>
|
||||
<div class="btn-home-max">
|
||||
<div class="btn-home">
|
||||
<button type="button" role="link" onclick="window.location='/usuarios/show'" style="font-family: 'Lobster'; font-size: 20px;margin:5px;">
|
||||
<span class="glyphicon glyphicon-cutlery" aria-hidden="true" style="padding: 5px"> </span>
|
||||
<fmt:message key="showUsuario"/> </button>
|
||||
</div>
|
||||
</div>
|
||||
</sec:authorize>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue