Loading src/main/java/com/example/demo/validator/HelpPropositionValidator.java +0 −4 Original line number Diff line number Diff line Loading @@ -29,11 +29,7 @@ public class HelpPropositionValidator implements Validator { ValidationUtils.rejectIfEmptyOrWhitespace(errors, "timeEnd", "timeEnd.empty", "You must enter a time end!"); if(helpProposition.getDateBegin().after(helpProposition.getDateEnd())){ System.out.println(helpProposition.getDateBegin()); System.out.println(helpProposition.getDateEnd()); errors.rejectValue("dateBegin", "dateBegin.size", "The begin date must be set before the end date!"); }else{ System.out.println("nop"); } } Loading src/main/resources/templates/allHelpProposition.html +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ <p th:if="${help.poulain != null}" th:text=" ${help.poulain.username}"></p> <form th:unless="${help.poulain != null}" th:action="@{/editProposition/{id}(id=${help.id})}"> <input th:if="${session.isPoulain == 'true'}" class="waves-effect waves-light right btn teal darken-2" type="submit" value="Se proposer"/> <input th:if="${session.isPoulain == 'true'}" class="waves-effect waves-light right btn teal darken-2" type="submit" value="Participate"/> </form> </div> Loading src/main/resources/templates/allHelpRequest.html +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ <p th:if="${help.mentor != null}" th:text=" ${help.mentor.id}"></p> <form th:unless="${help.mentor != null}" th:action="@{/editRequest/{id}(id=${help.id})}"> <input th:if="${session.isMentor == 'true'}" class="waves-effect waves-light right btn teal darken-2" type="submit" value="Se proposer"/> <input th:if="${session.isMentor == 'true'}" class="waves-effect waves-light right btn teal darken-2" type="submit" value="Volunteer"/> </form> </div> Loading Loading
src/main/java/com/example/demo/validator/HelpPropositionValidator.java +0 −4 Original line number Diff line number Diff line Loading @@ -29,11 +29,7 @@ public class HelpPropositionValidator implements Validator { ValidationUtils.rejectIfEmptyOrWhitespace(errors, "timeEnd", "timeEnd.empty", "You must enter a time end!"); if(helpProposition.getDateBegin().after(helpProposition.getDateEnd())){ System.out.println(helpProposition.getDateBegin()); System.out.println(helpProposition.getDateEnd()); errors.rejectValue("dateBegin", "dateBegin.size", "The begin date must be set before the end date!"); }else{ System.out.println("nop"); } } Loading
src/main/resources/templates/allHelpProposition.html +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ <p th:if="${help.poulain != null}" th:text=" ${help.poulain.username}"></p> <form th:unless="${help.poulain != null}" th:action="@{/editProposition/{id}(id=${help.id})}"> <input th:if="${session.isPoulain == 'true'}" class="waves-effect waves-light right btn teal darken-2" type="submit" value="Se proposer"/> <input th:if="${session.isPoulain == 'true'}" class="waves-effect waves-light right btn teal darken-2" type="submit" value="Participate"/> </form> </div> Loading
src/main/resources/templates/allHelpRequest.html +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ <p th:if="${help.mentor != null}" th:text=" ${help.mentor.id}"></p> <form th:unless="${help.mentor != null}" th:action="@{/editRequest/{id}(id=${help.id})}"> <input th:if="${session.isMentor == 'true'}" class="waves-effect waves-light right btn teal darken-2" type="submit" value="Se proposer"/> <input th:if="${session.isMentor == 'true'}" class="waves-effect waves-light right btn teal darken-2" type="submit" value="Volunteer"/> </form> </div> Loading