diff --git a/lib/Vroom/I18N/en.pm b/lib/Vroom/I18N/en.pm index 6fd3600..6d10e37 100644 --- a/lib/Vroom/I18N/en.pm +++ b/lib/Vroom/I18N/en.pm @@ -21,6 +21,8 @@ our %Lexicon = ( "YOUR_MAIL_OPTIONAL" => "Your email address (optional)", "COMMENT" => "Comment", "SUBMIT" => "Submit", + "THANK_YOU" => "Thank you :-)", + "THANKS_FOR_YOUR_FEEDBACK" => "Your message has been sent, thank your for taking time to share your experience with us", "FEEDBACK_FROM_VROOM" => "VROOM feedback", "FROM" => "From", "GIVE_US_YOUR_FEEDBACK" => "Give us your feedback", diff --git a/lib/Vroom/I18N/fr.pm b/lib/Vroom/I18N/fr.pm index 8883e8e..1828e6e 100644 --- a/lib/Vroom/I18N/fr.pm +++ b/lib/Vroom/I18N/fr.pm @@ -22,6 +22,8 @@ our %Lexicon = ( "YOUR_MAIL_OPTIONAL" => "Votre adresse email (optionnelle)", "COMMENT" => "Commentaire", "SUBMIT" => "Envoyer", + "THANK_YOU" => "Merci :-)", + "THANKS_FOR_YOUR_FEEDBACK" => "Votre message a bien été transmis, merci d'avoir pris le temps de nous faire part de votre expérience", "FEEDBACK_FROM_VROOM" => "Retour d'expérience de VROOM", "FROM" => "De la part de", "GIVE_US_YOUR_FEEDBACK" => "Parlez-nous de votre expérience", diff --git a/public/vroom.pl b/public/vroom.pl index fa3979d..1b33c96 100755 --- a/public/vroom.pl +++ b/public/vroom.pl @@ -254,9 +254,11 @@ post '/feedback' => sub { comment => $comment ], ); - $self->redirect_to($self->url_for('/')); + $self->redirect_to($self->url_for('feedback_thanks')); }; +get 'feedback_thanks' => 'feedback_thanks'; + get '/goodby/(:room)' => sub { my $self = shift; my $room = $self->stash('room'); diff --git a/templates/default/feedback_thanks.html.ep b/templates/default/feedback_thanks.html.ep new file mode 100644 index 0000000..2af2719 --- /dev/null +++ b/templates/default/feedback_thanks.html.ep @@ -0,0 +1,15 @@ +% title $self->l('FEEDBACK'); +%= include 'header' +%= include 'public_toolbar' +
+
+
+

<%=l 'THANK_YOU' %>

+

<%=l 'THANKS_FOR_YOUR_FEEDBACK' %>

+ +
+
+%=include 'footer' +