Skip to content

Commit

Permalink
Merge b07ef02 into b1ed897
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc Wollants committed Oct 12, 2018
2 parents b1ed897 + b07ef02 commit f9e5e6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion public/js/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
ANSWERED_WRONG: 'Fout',
ANSWERED_LATE: 'Te laat',
CHOOSE_TEAM: 'Selecteer een club naar keuze',
RECRUITMENT_TITLE: 'Test je verkeerskennis en ga aan de haal met 1 van de vele topprijzen.',
RECRUITMENT_SUBTITLE: '5 minuutjes, 15 vragen en misschien win jij wel een reischeque van 1000 euro!',
EMAIL: 'E-mail',
SHARE_TITLE: 'Goede of slechte score?',
SHARE_SUB_TITLE: 'Laat je vrienden weten hoe je het er vanaf bracht en daag hen uit om beter te doen!',
Expand All @@ -49,7 +51,8 @@
ANSWERED_WRONG: 'Faux',
ANSWERED_LATE: 'Trop tard',
CHOOSE_TEAM: 'Choisissez votre club',
EMAIL: 'Email',
RECRUITMENT_TITLE: '__Test je verkeerskennis en ga aan de haal met 1 van de vele topprijzen.',
RECRUITMENT_SUBTITLE: '__5 minuutjes, 15 vragen en misschien win jij wel een reischeque van 1000 euro!', EMAIL: 'Email',
SHARE_TITLE: 'Bon ou mauvais score?',
SHARE_SUB_TITLE: 'Faites savoir à vos amis que vous avez réussi et défiez-les de faire mieux!',
}
Expand Down Expand Up @@ -143,6 +146,8 @@
emailInput.attr('placeholder', translations[quizConfig['language']]['EMAIL']);
emailInput.val(quizConfig['email']);

let recruitment = view.find('#recruitment');

function start (email, team) {
$.post(quizConfig.apiUrl + '/quiz', JSON.stringify({
channel: quizConfig['channel'],
Expand All @@ -160,6 +165,8 @@
}

if (cupModeOn) {
recruitment.remove();

$.each(quizConfig['teams'], function (id, team) {
teamSelect.append($('<option>', {value: id, text: team.name}));
});
Expand Down
4 changes: 4 additions & 0 deletions templates/quiz/quiz.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
</select>
</div>
</div>
<div class="form-group row" id="recruitment">
<span class="gvq-recruitment-title" data-translate="RECRUITMENT_TITLE">Recruitment Title</span>
<span class="gvq-recruitment-subtitle" data-translate="RECRUITMENT_SUBTITLE">Recruitment Subtitle</span>
</div>
<div class="form-group row">
<div class="col">
<input class="gvq-participant-email form-control" id="gvq-participant-email">
Expand Down

0 comments on commit f9e5e6e

Please sign in to comment.