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 @@ -
No hay ninguna oferta por plato específico activa.
+No hay ninguna oferta por plato específico creada.
|
|
+
+ |
No hay ninguna oferta por plato específico activa. +No hay ninguna oferta por número de comensales creada.
|
---|