Skip to content

Commit

Permalink
add message "thankYouWaitingList" (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
cravay committed Feb 5, 2019
1 parent c4e11d6 commit c6c1057
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/routes/list/category/event/confirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default Route.extend({

return postSubscription(subscriptionData);
}).then(() => {
return tableData;
return { tableData: tableData, statusIsRed: event.get('status') === 'red' };
}).catch(error => {
if (error instanceof Error) {
console.error(error); // eslint-disable-line no-console
Expand Down
20 changes: 13 additions & 7 deletions app/templates/list/category/event/confirmation.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,24 @@
<span>{{translate "confirmation"}}</span>
</li>
</ol>
<h2>{{translate "thankYou"}}</h2>
<h2>
{{#if model.statusIsRed}}
{{translate "thankYouWaitingList"}}
{{else}}
{{translate "thankYou"}}
{{/if}}
</h2>

<p>{{translate "youWillReceiveAConfirmationEMail"}}</p>

<p>{{translate "officeAddress"}}</p>

{{#if model.fields}}
{{#if model.tableData.fields}}
<h2>{{translate "yourDetails"}}</h2>

<h3 class="uk-h3">{{translate "addressFields"}}</h3>
<table class="uk-table uk-table-striped uk-margin">
{{#each model.fields as |field|}}
{{#each model.tableData.fields as |field|}}
<tr>
<td>{{{field.label}}}</td>
<td>{{field.value}}</td>
Expand All @@ -26,10 +32,10 @@
</table>
{{/if}}

{{#if model.companyFields}}
{{#if model.tableData.companyFields}}
<h3 class="uk-h3">{{translate "companyFields"}}</h3>
<table class="uk-table uk-table-striped uk-margin">
{{#each model.companyFields as |companyField|}}
{{#each model.tableData.companyFields as |companyField|}}
<tr>
<td>{{{companyField.label}}}</td>
<td>{{companyField.value}}</td>
Expand All @@ -38,10 +44,10 @@
</table>
{{/if}}

{{#if model.subscriptionDetailFields}}
{{#if model.tableData.subscriptionDetailFields}}
<h3 class="uk-h3">{{translate "subscriptionDetailFields"}}</h3>
<table class="uk-table uk-table-striped uk-margin">
{{#each model.subscriptionDetailFields as |subscriptionDetailField|}}
{{#each model.tableData.subscriptionDetailFields as |subscriptionDetailField|}}
<tr>
<td>{{{subscriptionDetailField.label}}}</td>
<td>{{subscriptionDetailField.value}}</td>
Expand Down
1 change: 1 addition & 0 deletions public/locale/de-CH.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ window.kursausschreibung.locale["de-CH"] = {
"back": "zurück",
"backToCourses": "Zurück zur Kursübersicht",
"thankYou": "Besten Dank für Ihre Anmeldung",
"thankYouWaitingList": "Besten Dank für Ihre Anmeldung auf die Warteliste",
"youWillReceiveAConfirmationEMail": "Sie erhalten eine Anmeldebestätigung per E-Mail.",
"officeAddress": "Kurssekretariat<br>Telefon 031 123 45 67<br>[email protected]",
"yourDetails": "Ihre Angaben",
Expand Down
1 change: 1 addition & 0 deletions public/locale/fr-CH.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ window.kursausschreibung.locale["fr-CH"] = {
"back": "Retour",
"backToCourses": "Retour",
"thankYou": "Merci pour votre inscription",
"thankYouWaitingList": "Merci pour votre inscription",
"youWillReceiveAConfirmationEMail": "Vous recevrez une confirmation d'inscription par e-mail.",
"officeAddress": "Secrétariat du cours<br>Phone 031 123 45 67 67<br>[email protected]",
"yourDetails": "Vos coordonnées.",
Expand Down

0 comments on commit c6c1057

Please sign in to comment.