diff --git a/src/main/java/org/springframework/cheapy/model/Review.java b/src/main/java/org/springframework/cheapy/model/Review.java index b8cf0b6d4..4715051ee 100644 --- a/src/main/java/org/springframework/cheapy/model/Review.java +++ b/src/main/java/org/springframework/cheapy/model/Review.java @@ -6,10 +6,11 @@ import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.Range; -import com.sun.istack.NotNull; + @Entity @Table(name = "review") @@ -21,8 +22,8 @@ public class Review extends BaseEntity{ @Column(length=16777215) private String opinion; - @NotNull - @Range(min = 1, max = 5) + @NotNull(message= "Por favor rellene este campo") + @Range(min = 1, max = 5,message="Las estrellas deben ir entre 1 y 5") private Integer stars; @ManyToOne diff --git a/src/main/less/cheapy.less b/src/main/less/cheapy.less index a0bff3551..44e9d7e26 100644 --- a/src/main/less/cheapy.less +++ b/src/main/less/cheapy.less @@ -297,23 +297,23 @@ img.img-responsive{ } #foodOfferTable th { - width: 25%; + width: 20%; text-align: center; } #nuOfferTable th { - width: 25%; + width: 20%; text-align: center; } #speedOfferTable th { - width: 25%; + width: 20%; text-align: center; } #timeOfferTable th { - width: 25%; + width: 20%; text-align: center; } @@ -365,6 +365,29 @@ text-align: center; background-color: rgb(40, 140, 215); } +.btns-edit2{ + display: table; + margin:auto; + +} + +.btns-edit2 button{ + background-color: rgb(0, 64, 128); + border: 1px solid rgb(0, 0, 160); + color: white; + padding: 10px 24px; + cursor: pointer; +} + +.btns-edit2 button:not(:last-child) { + border-bottom: none; +} + + +.btns-edit2 button:hover { + background-color: rgb(40, 140, 215); +} + .btns-delete{ display: table; margin: 0 auto; diff --git a/src/main/resources/messages/messages_es.properties b/src/main/resources/messages/messages_es.properties index a4aebbe00..dfb725f19 100644 --- a/src/main/resources/messages/messages_es.properties +++ b/src/main/resources/messages/messages_es.properties @@ -48,3 +48,6 @@ createSpeedOffers= Crear ofertas por rapidez comiendo createTimeOffers= Crear ofertas por franja horaria init= Inicio del intervalo finish= Fin del intervalo +name= Nombre del restaurante +status= Estado de oferta +myOffers= Ver mis Ofertas \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/offers/food/createOrUpdateFoodOfferForm.jsp b/src/main/webapp/WEB-INF/jsp/offers/food/createOrUpdateFoodOfferForm.jsp index e396fb9d8..736f83797 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/food/createOrUpdateFoodOfferForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/food/createOrUpdateFoodOfferForm.jsp @@ -42,15 +42,4 @@ -
- -
- - diff --git a/src/main/webapp/WEB-INF/jsp/offers/food/foodOffersDisable.jsp b/src/main/webapp/WEB-INF/jsp/offers/food/foodOffersDisable.jsp index 45861d2c3..15a051c8e 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/food/foodOffersDisable.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/food/foodOffersDisable.jsp @@ -9,27 +9,17 @@ -

¿Está seguro de que quiere eliminar su oferta?

+

¿Está seguro de que quiere eliminar su oferta?

-
+
-
- -
- diff --git a/src/main/webapp/WEB-INF/jsp/offers/food/foodOffersShow.jsp b/src/main/webapp/WEB-INF/jsp/offers/food/foodOffersShow.jsp index 5b82667b3..bfd854ea4 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/food/foodOffersShow.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/food/foodOffersShow.jsp @@ -12,7 +12,7 @@

- + @@ -40,44 +40,42 @@
-
- -
+ +
- - - - + + + + + + + + - - - - + + + + - - - - + + + + +
- + diff --git a/src/main/webapp/WEB-INF/jsp/offers/myOffersList.jsp b/src/main/webapp/WEB-INF/jsp/offers/myOffersList.jsp index 3292e232e..ee9b25750 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/myOffersList.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/myOffersList.jsp @@ -9,7 +9,7 @@

-

No hay ninguna oferta por plato específico activa.

+

No hay ninguna oferta por plato específico creada.

@@ -19,6 +19,7 @@ + +
@@ -36,6 +37,9 @@ + + @@ -54,7 +58,7 @@

-

No hay ninguna oferta por plato específico activa.

+

No hay ninguna oferta por número de comensales creada.

@@ -63,6 +67,7 @@ + +
@@ -79,6 +84,9 @@ + + @@ -96,8 +104,8 @@

- -

No hay ninguna oferta por plato específico activa.

+ +

No hay ninguna oferta por tiempo empleado en comer creada.

@@ -106,6 +114,7 @@ + + + + + @@ -38,6 +45,7 @@ +
@@ -122,6 +131,9 @@ + + @@ -141,7 +153,7 @@

-

No hay ninguna oferta por plato específico activa.

+

No hay ninguna oferta por franja horaria creada.

@@ -150,6 +162,7 @@ + +
@@ -165,6 +178,9 @@ + + diff --git a/src/main/webapp/WEB-INF/jsp/offers/nu/createOrUpdateNuOfferForm.jsp b/src/main/webapp/WEB-INF/jsp/offers/nu/createOrUpdateNuOfferForm.jsp index d693e8ae9..1dcc0f41d 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/nu/createOrUpdateNuOfferForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/nu/createOrUpdateNuOfferForm.jsp @@ -47,15 +47,5 @@ -
- -
- diff --git a/src/main/webapp/WEB-INF/jsp/offers/nu/nuOffersDisable.jsp b/src/main/webapp/WEB-INF/jsp/offers/nu/nuOffersDisable.jsp index f46b57f67..1071ec5bc 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/nu/nuOffersDisable.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/nu/nuOffersDisable.jsp @@ -13,23 +13,13 @@ -
+
-
- -
- diff --git a/src/main/webapp/WEB-INF/jsp/offers/nu/nuOffersShow.jsp b/src/main/webapp/WEB-INF/jsp/offers/nu/nuOffersShow.jsp index ba76384d7..dd4f68713 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/nu/nuOffersShow.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/nu/nuOffersShow.jsp @@ -53,19 +53,19 @@
-
- -
+ +
- - - - + + + + + + + @@ -83,13 +83,11 @@ Desactivar oferta +
+
- + diff --git a/src/main/webapp/WEB-INF/jsp/offers/offersCreate.jsp b/src/main/webapp/WEB-INF/jsp/offers/offersCreate.jsp index 986828742..a9b2e5d7d 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/offersCreate.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/offersCreate.jsp @@ -33,14 +33,5 @@ -
- -
- + diff --git a/src/main/webapp/WEB-INF/jsp/offers/offersList.jsp b/src/main/webapp/WEB-INF/jsp/offers/offersList.jsp index 7817f06e7..dd1d44eee 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/offersList.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/offersList.jsp @@ -4,10 +4,12 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ taglib prefix="cheapy" tagdir="/WEB-INF/tags" %> +<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

+

No hay ninguna oferta por plato específico activa.

@@ -16,16 +18,21 @@
+ + @@ -56,13 +64,14 @@

-

No hay ninguna oferta por plato específico activa.

+

No hay ninguna oferta por número de comensales activa.

+ @@ -74,7 +83,9 @@ - + @@ -105,13 +116,14 @@

-

No hay ninguna oferta por plato específico activa.

+

No hay ninguna oferta por tiempo empleado en comer activa.

+ +
+ @@ -123,7 +135,9 @@ - + @@ -155,13 +169,14 @@

-

No hay ninguna oferta por plato específico activa.

+

No hay ninguna oferta por franja horaria activa.

+ +
+ @@ -172,7 +187,9 @@ - + @@ -201,15 +218,6 @@
+ +
- -
- -
- + + diff --git a/src/main/webapp/WEB-INF/jsp/offers/speed/createOrUpdateSpeedOfferForm.jsp b/src/main/webapp/WEB-INF/jsp/offers/speed/createOrUpdateSpeedOfferForm.jsp index d466bc2f5..906baa373 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/speed/createOrUpdateSpeedOfferForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/speed/createOrUpdateSpeedOfferForm.jsp @@ -44,16 +44,6 @@ - -
- -
- + diff --git a/src/main/webapp/WEB-INF/jsp/offers/speed/speedOffersDisable.jsp b/src/main/webapp/WEB-INF/jsp/offers/speed/speedOffersDisable.jsp index 66c5a0f07..f13e29766 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/speed/speedOffersDisable.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/speed/speedOffersDisable.jsp @@ -9,27 +9,18 @@ -

¿Está seguro de que quiere eliminar su oferta?

+

¿Está seguro de que quiere eliminar su oferta?

-
+
+
-
- -
- diff --git a/src/main/webapp/WEB-INF/jsp/offers/speed/speedOffersShow.jsp b/src/main/webapp/WEB-INF/jsp/offers/speed/speedOffersShow.jsp index f7065d80c..829621d5e 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/speed/speedOffersShow.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/speed/speedOffersShow.jsp @@ -53,19 +53,19 @@
-
- -
+ +
- - - - + + + + + + + @@ -84,14 +84,12 @@ Desactivar oferta +
+
- + diff --git a/src/main/webapp/WEB-INF/jsp/offers/time/createOrUpdateTimeOfferForm.jsp b/src/main/webapp/WEB-INF/jsp/offers/time/createOrUpdateTimeOfferForm.jsp index 51c188e8d..cc91be345 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/time/createOrUpdateTimeOfferForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/time/createOrUpdateTimeOfferForm.jsp @@ -45,15 +45,6 @@ -
- -
- + diff --git a/src/main/webapp/WEB-INF/jsp/offers/time/timeOffersDisable.jsp b/src/main/webapp/WEB-INF/jsp/offers/time/timeOffersDisable.jsp index b19346a70..facc40f1a 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/time/timeOffersDisable.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/time/timeOffersDisable.jsp @@ -13,23 +13,13 @@ -
+
-
- -
- diff --git a/src/main/webapp/WEB-INF/jsp/offers/time/timeOffersShow.jsp b/src/main/webapp/WEB-INF/jsp/offers/time/timeOffersShow.jsp index df891e271..273c1505a 100644 --- a/src/main/webapp/WEB-INF/jsp/offers/time/timeOffersShow.jsp +++ b/src/main/webapp/WEB-INF/jsp/offers/time/timeOffersShow.jsp @@ -42,20 +42,19 @@
-
- -
+ +
- - - - - + + + + + + + @@ -73,15 +72,11 @@ Desactivar oferta - +
- + diff --git a/src/main/webapp/WEB-INF/jsp/reviews/createOrUpdateReviewForm.jsp b/src/main/webapp/WEB-INF/jsp/reviews/createOrUpdateReviewForm.jsp index 5c8c53660..93f628af0 100644 --- a/src/main/webapp/WEB-INF/jsp/reviews/createOrUpdateReviewForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/reviews/createOrUpdateReviewForm.jsp @@ -18,15 +18,22 @@
+
- + +
+ + + diff --git a/src/main/webapp/WEB-INF/jsp/reviews/reviewsShow.jsp b/src/main/webapp/WEB-INF/jsp/reviews/reviewsShow.jsp index 982cb3b3a..b13c31115 100644 --- a/src/main/webapp/WEB-INF/jsp/reviews/reviewsShow.jsp +++ b/src/main/webapp/WEB-INF/jsp/reviews/reviewsShow.jsp @@ -24,11 +24,7 @@
-
- -
+
@@ -42,10 +38,6 @@ Editar opinión
- +
diff --git a/src/main/webapp/WEB-INF/jsp/welcome.jsp b/src/main/webapp/WEB-INF/jsp/welcome.jsp index 027fd2d3c..a2622ed5a 100644 --- a/src/main/webapp/WEB-INF/jsp/welcome.jsp +++ b/src/main/webapp/WEB-INF/jsp/welcome.jsp @@ -23,6 +23,11 @@
+
+ +