mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Calendario no finalizado
This commit is contained in:
parent
8374d8bd1f
commit
b2f779031d
2 changed files with 2 additions and 3 deletions
|
@ -36,12 +36,10 @@ public class Offer extends BaseEntity {
|
|||
|
||||
@DateTimeFormat(pattern = "dd/MM/yyyy HH:mm")
|
||||
@NotNull(message = "Debe introducir una fecha de inicio")
|
||||
@Future(message = "La fecha debe debe ser futura")
|
||||
private LocalDateTime start;
|
||||
|
||||
@DateTimeFormat(pattern = "dd/MM/yyyy HH:mm")
|
||||
@NotNull(message = "Debe introducir una fecha de fin")
|
||||
@Future(message = "La fecha debe debe ser futura")
|
||||
private LocalDateTime end;
|
||||
|
||||
private String code;
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
<label class="col-sm-2 control-label">${label}</label>
|
||||
|
||||
<div class="col-sm-10">
|
||||
<form:input type="datetime-local" class="form-control" path="${name}"/>
|
||||
<form:input type="datetime-local" class="form-control" path="${name}"/>
|
||||
|
||||
<c:if test="${valid}">
|
||||
<span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>
|
||||
</c:if>
|
||||
|
|
Loading…
Reference in a new issue