mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 16:45:48 +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);
|
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 {
|
#vacio {
|
||||||
text-align:center;
|
text-align:center;
|
||||||
font-size: 120%;
|
font-size: 120%;
|
||||||
|
|
|
@ -48,10 +48,25 @@ createSpeedOffers= Crear ofertas por rapidez comiendo
|
||||||
createTimeOffers= Crear ofertas por franja horaria
|
createTimeOffers= Crear ofertas por franja horaria
|
||||||
init= Inicio del intervalo
|
init= Inicio del intervalo
|
||||||
finishOffer= Fin del intervalo
|
finishOffer= Fin del intervalo
|
||||||
name= Nombre del restaurante
|
name= Nombre del bar/restaurante
|
||||||
status= Estado de oferta
|
status= Estado de oferta
|
||||||
myOffers= Ver mis Ofertas
|
myOffers= Ver mis Ofertas
|
||||||
typeMismatch=Debe ser del formato correcto
|
typeMismatch=Debe ser del formato correcto
|
||||||
typeMismatch.java.lang.Integer=Debe ser un número
|
typeMismatch.java.lang.Integer=Debe ser un número
|
||||||
typeMismatch.java.time.LocalDateTime=Debe ser una fecha válida
|
typeMismatch.java.time.LocalDateTime=Debe ser una fecha válida
|
||||||
typeMismatch.java.time.LocalTime=Debe ser una hora 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">
|
<cheapy:layout pageName="client">
|
||||||
|
|
||||||
<jsp:body>
|
<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">
|
<form:form modelAttribute="client" class="form-horizontal">
|
||||||
|
|
||||||
|
|
|
@ -16,34 +16,34 @@
|
||||||
<table class="table table-striped" id="clientTable">
|
<table class="table table-striped" id="clientTable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><fmt:message key="clientInit"/></th>
|
<th><fmt:message key="init"/></th>
|
||||||
<td><c:out value="${client.init}"/></td>
|
<td><c:out value="${client.init}h"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><fmt:message key="clientFinish"/></th>
|
<th><fmt:message key="finishOffer"/></th>
|
||||||
<td><c:out value="${client.finish}"/></td>
|
<td><c:out value="${client.finish}h"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><fmt:message key="nameClient"/></th>
|
<th><fmt:message key="name"/></th>
|
||||||
<td><c:out value="${client.name}"/></td>
|
<td><c:out value="${client.name}"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><fmt:message key="emailClient"/></th>
|
<th><fmt:message key="email"/></th>
|
||||||
<td><c:out value="${client.email}%"/> </td>
|
<td><c:out value="${client.email}"/> </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th><fmt:message key="addressClient"/></th>
|
<th><fmt:message key="addressClient"/></th>
|
||||||
<td><c:out value="${client.address}%"/> </td>
|
<td><c:out value="${client.address}"/> </td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<th><fmt:message key="telephoneClient"/></th>
|
<th><fmt:message key="telephone"/></th>
|
||||||
<td><c:out value="${client.telephone}%"/> </td>
|
<td><c:out value="${client.telephone}"/> </td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<th><fmt:message key="descriptionClient"/></th>
|
<th><fmt:message key="descriptionClient"/></th>
|
||||||
<td><c:out value="${client.description}%"/> </td>
|
<td><c:out value="${client.description}"/> </td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<th><fmt:message key="foodClient"/></th>
|
<th><fmt:message key="foodClient"/></th>
|
||||||
<td><c:out value="${client.food}%"/> </td>
|
<td><c:out value="${client.food}"/> </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<th><fmt:message key="nameClient"/></th>
|
<th><fmt:message key="name"/></th>
|
||||||
<th><fmt:message key="username"/></th>
|
<th><fmt:message key="user"/></th>
|
||||||
<th><fmt:message key="enabled"/></th>
|
<th><fmt:message key="enabled"/></th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<cheapy:layout pageName="usuario">
|
<cheapy:layout pageName="usuario">
|
||||||
|
|
||||||
<jsp:body>
|
<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">
|
<form:form modelAttribute="usuario" class="form-horizontal">
|
||||||
|
|
||||||
|
|
|
@ -8,18 +8,18 @@
|
||||||
<link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet'>
|
<link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet'>
|
||||||
|
|
||||||
<cheapy:layout pageName="usuarios">
|
<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 }">
|
<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>
|
||||||
<c:if test="${not empty usuarioLs }">
|
<c:if test="${not empty usuarioLs }">
|
||||||
<table id="usuarioTable" class="table table-striped">
|
<table id="usuarioTable" class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><fmt:message key="nombre"/></th>
|
<th><fmt:message key="nameUser"/></th>
|
||||||
<th><fmt:message key="apellidos"/></th>
|
<th><fmt:message key="surname"/></th>
|
||||||
<th><fmt:message key="username"/></th>
|
<th><fmt:message key="user"/></th>
|
||||||
<th><fmt:message key="enabled"/></th>
|
<th><fmt:message key="enabled"/></th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -14,11 +14,11 @@
|
||||||
<table class="table table-striped" id="usuarioTable">
|
<table class="table table-striped" id="usuarioTable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><fmt:message key="nombre"/></th>
|
<th><fmt:message key="nameUser"/></th>
|
||||||
<td><c:out value="${usuario.nombre}"/></td>
|
<td><c:out value="${usuario.nombre}"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><fmt:message key="apellidos"/></th>
|
<th><fmt:message key="surname"/></th>
|
||||||
<td><c:out value="${usuario.apellidos}"/></td>
|
<td><c:out value="${usuario.apellidos}"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -26,11 +26,11 @@
|
||||||
<td><c:out value="${usuario.dni}"/></td>
|
<td><c:out value="${usuario.dni}"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><fmt:message key="direccion"/></th>
|
<th><fmt:message key="addressUser"/></th>
|
||||||
<td><c:out value="${usuario.direccion}"/> </td>
|
<td><c:out value="${usuario.direccion}"/> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><fmt:message key="telefono"/></th>
|
<th><fmt:message key="telephone"/></th>
|
||||||
<td><c:out value="${usuario.telefono}"/></td>
|
<td><c:out value="${usuario.telefono}"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<fmt:message key="createOffers"/> </button>
|
<fmt:message key="createOffers"/> </button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-home">
|
<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>
|
<span class="glyphicon glyphicon-cutlery" aria-hidden="true" style="padding: 5px"> </span>
|
||||||
<fmt:message key="clientShow"/> </button>
|
<fmt:message key="clientShow"/> </button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,11 +43,13 @@
|
||||||
</sec:authorize>
|
</sec:authorize>
|
||||||
</div>
|
</div>
|
||||||
<sec:authorize access="hasAnyAuthority('usuario')">
|
<sec:authorize access="hasAnyAuthority('usuario')">
|
||||||
<div class="btn-home">
|
<div class="btn-home-max">
|
||||||
<button type="button" role="link" onclick="window.location='/usuarios/show'" style="font-family: 'Lobster'; font-size: 20px;margin:5px;">
|
<div class="btn-home">
|
||||||
<span class="glyphicon glyphicon-cutlery" aria-hidden="true" style="padding: 5px"> </span>
|
<button type="button" role="link" onclick="window.location='/usuarios/show'" style="font-family: 'Lobster'; font-size: 20px;margin:5px;">
|
||||||
<fmt:message key="showUsuario"/> </button>
|
<span class="glyphicon glyphicon-cutlery" aria-hidden="true" style="padding: 5px"> </span>
|
||||||
</div>
|
<fmt:message key="showUsuario"/> </button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</sec:authorize>
|
</sec:authorize>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue