funky-framadate-front/src/app/features/administration/success/success.component.html

59 lines
1.8 KiB
HTML
Raw Normal View History

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">
<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">
{{ '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']">
{{ 'success.go_back' | translate }}
2021-11-16 16:16:30 +01:00
</button>
</span>
</h1>
<p>
2022-02-03 09:40:56 +01:00
<span class="description">
{{ 'success.description' | translate }}
</span>
<span class="share">
{{ 'success.share' | translate }}
</span>
</p>
<div class="columns">
<div class="column">
<label for="public_share_link">
{{ 'success.link' | translate }}
</label>
2021-12-21 17:10:28 +01:00
<input type="text" [value]="pollService.getParticipationUrl()" id="public_share_link" />
</div>
2022-02-03 09:40:56 +01:00
<div class="column is-narrow">
<button class="is-primary button" (click)="copyText(pollService.getParticipationUrl())">
{{ 'success.copy' | translate }}
</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>
</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 }}
</div>