diff --git a/src/app/features/administration/success/success.component.html b/src/app/features/administration/success/success.component.html index 9b30b4ff..415854c3 100644 --- a/src/app/features/administration/success/success.component.html +++ b/src/app/features/administration/success/success.component.html @@ -1,20 +1,17 @@
-
+

- icone ok - - Votre sondage -
- « - - {{ pollService.form.value.title }} - - » + + icone ok + + {{ 'success.description' | translate }} + + {{ 'success.not_created' | translate }} :(
@@ -22,13 +19,14 @@ {{ 'success.go_back' | translate }}
- - est prêt ! -

- L'événement " {{ pollService.form.value.title }} " est créé. - {{ 'success.share' | translate }} + + {{ 'success.description' | translate }} + +

@@ -37,8 +35,8 @@
-
-
@@ -46,86 +44,15 @@
-
-
-

- {{ 'success.label' | translate }} -

- -
-
-
🎉
-
-
-
-
-
-
-
- Pas de clé d'administration, l'enregistrement du sondage a échoué. vérifiez vos paramètres - réseau. - {{ 'success.network_error' | translate }} -
-
-

- - {{ 'resume.admins' | translate }} -

-
- Pour accéder au sondage et à tous ses paramètres : -
-
-									{{ pollService.getAdministrationUrlFromForm() }}
-								
- -
-
- - Voir le sondage coté administrateur·ice - - -
-

- Note : Le sondage sera supprimé - {{ pollService.form.value.expiresDaysDelay }} jours après la date de - sa dernière modification. - - Le - {{ - pollService.DateUtilitiesService.addDaysToDate( - pollService.form.value.expiresDaysDelay, - today - ) | date: 'short' - }} - -

-
-
-
-
-
-

- - {{ 'resume.users' | translate }} -

-

- Pour voir le sondage : -
- {{ pollService.getParticipationUrlFromForm() }} - -

-
- -
-
-
-
-
+
+

+ {{ 'success.label' | translate }} +

+
+ +
+ {{ 'success.network_error' | translate }}
diff --git a/src/app/features/administration/success/success.component.ts b/src/app/features/administration/success/success.component.ts index 1b17c438..11a5adce 100644 --- a/src/app/features/administration/success/success.component.ts +++ b/src/app/features/administration/success/success.component.ts @@ -19,6 +19,7 @@ export class SuccessComponent { window: any = window; environment = environment; today: Date = new Date(); + eventTitle: any; constructor( public pollService: PollService, @@ -28,6 +29,8 @@ export class SuccessComponent { private translate: TranslateService, private titleService: Title ) { + this.eventTitle = pollService.form.value.title; + this.titleService.setTitle( environment.appTitle + ' - 🎉 succès de création de sondage - ' + this.pollService.form.value.title ); diff --git a/src/assets/i18n/EN.json b/src/assets/i18n/EN.json index 1bf89dc7..1dc9124b 100644 --- a/src/assets/i18n/EN.json +++ b/src/assets/i18n/EN.json @@ -159,7 +159,12 @@ "action": "See my poll", "admins": "Admin side", "users": "Respondent side", - "links_mail": "Receive links by email" + "links_mail": "Receive links by email", + "not_created": "n'a pas été créé", + "network_error": "n'a pas été créé", + "go_back": "Revenir en arrière", + "copy": "Copier", + "copy_message": "Texte copié:" }, "visibility": { "top_txt": "A few settings…",