Skip to content

Commit

Permalink
feat(ember): add disclaimer for interests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yelinz committed Jan 4, 2024
1 parent f5222ef commit 1829d9c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ember/app/ui/application/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class ApplicationRoute extends Route {

await this.session.setup();

const locale = localStorage.getItem("locale") ?? "en";
const locale = localStorage.getItem("locale") ?? "de";
this.intl.setLocale([locale]);

this.calumaOptions.registerComponentOverride({
Expand Down
4 changes: 4 additions & 0 deletions ember/app/ui/components/identity-interests/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
{{t "components.identity-interests.form.title.add"}}
</h3>

<p>
{{t "components.identity-interests.disclaimer" htmlSafe=true}}
</p>

<ValidatedForm
@model={{this.changeset}}
@on-submit={{perform this.submit}}
Expand Down
2 changes: 1 addition & 1 deletion ember/tests/acceptance/identities-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module("Acceptance | identities", function (hooks) {

await click(".uk-button-danger");

assert.dom(".uk-modal-body").includesText("applications");
assert.dom(".uk-modal-body").includesText("0 Gesuche");

await click(".uk-modal-footer .uk-button-primary");

Expand Down
1 change: 1 addition & 0 deletions ember/translations/components/identity-interests/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ components:
identity-interests:
title: "Interessen"
add: "Interesse hinzufügen"
disclaimer: "Mit dem Speichern erkläre ich mich einverstanden, von der SAGW Informationen oder Publikationen zu den von mir angegebenen Interessen zu erhalten und bestätige, dass ich die <a href=''https://www.sagw.ch/sagw/zur-sagw/impressum'' target=''_blank''>Hinweise zum Datenschutz</a> gelesen habe und sie akzeptiere."

list:
delete: "Interesse löschen"
Expand Down
1 change: 1 addition & 0 deletions ember/translations/components/identity-interests/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ components:
identity-interests:
title: "Interests"
add: "Add interest"
disclaimer: "By saving, I agree to receive information or publications from the SAHS on the interests I have indicated and confirm that I have read and accept the <a href=''https://www.sagw.ch/sagw/zur-sagw/impressum'' target=''_blank''>information on data protection</a>."

list:
delete: "Delete interest"
Expand Down
1 change: 1 addition & 0 deletions ember/translations/components/identity-interests/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ components:
identity-interests:
title: "Intérêts"
add: "Ajouter un intérêt"
disclaimer: "En enregistrant, je donne mon accord pour recevoir de l’ASSH des informations ou des publications en lien avec les intérêts que j’ai indiqués et je confirme avoir lu et accepté les indications relatives à la <a href=''https://www.sagw.ch/fr/assh/a-propos/impressum'' target=''_blank''>protection des données</a>."

list:
delete: "Supprimer un intérêt"
Expand Down

0 comments on commit 1829d9c

Please sign in to comment.