-
Notifications
You must be signed in to change notification settings - Fork 1
Passing messages to view in Play!
peterszatmary edited this page Feb 20, 2016
·
1 revision
return badRequest(views.html.registration.render(Messages.get("registration.not.sucessfull"), form));
@(message : String, registrationForm: Form[core.pl.formdata.RegistrationData])
...
@if(message != null || message != "") {
<p class="notValidText">@message</p>
}
flash("registrationSuccess", Messages.get("registration.sucessfull"));
return redirect(routes.Application.index());
<p class="notValidText">@message</p>
@if(flash.containsKey("registrationSuccess")) {
<p class="validText">
@flash.get("registrationSuccess")
</p>
}