Add a thank page after feedback submission

Fix #16
master
Daniel Berteaud 11 years ago
parent 4a6e292ea6
commit 6ef394b914
  1. 2
      lib/Vroom/I18N/en.pm
  2. 2
      lib/Vroom/I18N/fr.pm
  3. 4
      public/vroom.pl
  4. 15
      templates/default/feedback_thanks.html.ep

@ -21,6 +21,8 @@ our %Lexicon = (
"YOUR_MAIL_OPTIONAL" => "Your email address (optional)", "YOUR_MAIL_OPTIONAL" => "Your email address (optional)",
"COMMENT" => "Comment", "COMMENT" => "Comment",
"SUBMIT" => "Submit", "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", "FEEDBACK_FROM_VROOM" => "VROOM feedback",
"FROM" => "From", "FROM" => "From",
"GIVE_US_YOUR_FEEDBACK" => "Give us your feedback", "GIVE_US_YOUR_FEEDBACK" => "Give us your feedback",

@ -22,6 +22,8 @@ our %Lexicon = (
"YOUR_MAIL_OPTIONAL" => "Votre adresse email (optionnelle)", "YOUR_MAIL_OPTIONAL" => "Votre adresse email (optionnelle)",
"COMMENT" => "Commentaire", "COMMENT" => "Commentaire",
"SUBMIT" => "Envoyer", "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", "FEEDBACK_FROM_VROOM" => "Retour d'expérience de VROOM",
"FROM" => "De la part de", "FROM" => "De la part de",
"GIVE_US_YOUR_FEEDBACK" => "Parlez-nous de votre expérience", "GIVE_US_YOUR_FEEDBACK" => "Parlez-nous de votre expérience",

@ -254,9 +254,11 @@ post '/feedback' => sub {
comment => $comment 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 { get '/goodby/(:room)' => sub {
my $self = shift; my $self = shift;
my $room = $self->stash('room'); my $room = $self->stash('room');

@ -0,0 +1,15 @@
% title $self->l('FEEDBACK');
%= include 'header'
%= include 'public_toolbar'
<div class="container-fluid">
<br/>
<div class="jumbotron">
<h1><%=l 'THANK_YOU' %></h1>
<p><%=l 'THANKS_FOR_YOUR_FEEDBACK' %></p>
<div class='btn-group'>
<a class="btn btn-primary btn-lg" role="button" href="<%= $self->url_for('/') %>"><%=l 'BACK_TO_MAIN_MENU' %></a>
</div>
</div>
</div>
%=include 'footer'
Loading…
Cancel
Save