2021-11-16 16:16:30 +01:00
|
|
|
<section
|
2022-02-03 09:40:56 +01:00
|
|
|
class=" "
|
2021-11-16 16:16:30 +01:00
|
|
|
[ngClass]="{ 'has-background-success': pollService.admin_key, 'has-background-danger': pollService.admin_key }"
|
|
|
|
>
|
2020-12-16 17:21:01 +01:00
|
|
|
<div class="hero-body">
|
2022-02-03 09:40:56 +01:00
|
|
|
<div class="contained-in-main-column">
|
2021-05-03 13:56:00 +02:00
|
|
|
<div class="main-block">
|
2021-12-21 17:06:26 +01:00
|
|
|
<h1 class="title is-1">
|
2022-02-03 09:40:56 +01:00
|
|
|
<span class="success-creation-title" *ngIf="pollService.admin_key">
|
|
|
|
<img class="icon" src="assets/icons/check-circle.svg" alt="icone ok" />
|
|
|
|
<strong class="poll-title">
|
|
|
|
{{ 'success.description' | translate }}
|
|
|
|
</strong>
|
|
|
|
</span>
|
2021-11-16 16:16:30 +01:00
|
|
|
<span *ngIf="!pollService.admin_key">
|
2022-02-03 09:32:52 +01:00
|
|
|
{{ 'success.not_created' | translate }} :(
|
2021-11-16 16:16:30 +01:00
|
|
|
<br />
|
2021-11-18 13:07:01 +01:00
|
|
|
<button class="button is-primary" [routerLink]="['/administration/step/7']">
|
2022-02-03 09:32:52 +01:00
|
|
|
{{ 'success.go_back' | translate }}
|
2021-11-16 16:16:30 +01:00
|
|
|
</button>
|
|
|
|
</span>
|
2021-12-21 17:06:26 +01:00
|
|
|
</h1>
|
|
|
|
<p>
|
2022-02-03 09:40:56 +01:00
|
|
|
<span class="description">
|
|
|
|
{{ 'success.description' | translate }}
|
|
|
|
</span>
|
|
|
|
<span class="share">
|
|
|
|
{{ 'success.share' | translate }}
|
|
|
|
</span>
|
2021-12-21 17:06:26 +01:00
|
|
|
</p>
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<label for="public_share_link">
|
2022-02-03 09:32:52 +01:00
|
|
|
{{ 'success.link' | translate }}
|
2021-12-21 17:06:26 +01:00
|
|
|
</label>
|
2021-12-21 17:10:28 +01:00
|
|
|
<input type="text" [value]="pollService.getParticipationUrl()" id="public_share_link" />
|
2021-12-21 17:06:26 +01:00
|
|
|
</div>
|
2022-02-03 09:40:56 +01:00
|
|
|
<div class="column is-narrow">
|
|
|
|
<button class="is-primary button" (click)="copyText(pollService.getParticipationUrl())">
|
2022-02-03 09:32:52 +01:00
|
|
|
{{ 'success.copy' | translate }}
|
2021-12-21 17:06:26 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-03 13:56:00 +02:00
|
|
|
</div>
|
2020-12-16 17:21:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-03 09:40:56 +01:00
|
|
|
<div class="box-well">
|
|
|
|
<h3 class="title is-3">
|
|
|
|
{{ 'success.label' | translate }}
|
|
|
|
</h3>
|
|
|
|
<button class="button is-primary" routerLink="{{ pollService.getAdministrationUrlFromForm() }}">
|
|
|
|
{{ 'success.action' | translate }}
|
|
|
|
</button>
|
2021-05-03 12:36:03 +02:00
|
|
|
</div>
|
2022-02-03 09:40:56 +01:00
|
|
|
</section>
|
|
|
|
<div class="no-admin-key padded has-background-danger" *ngIf="!pollService.admin_key">
|
|
|
|
{{ 'success.network_error' | translate }}
|
2021-05-03 12:36:03 +02:00
|
|
|
</div>
|