mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
display of success links
This commit is contained in:
parent
f6b522748a
commit
1755f205ad
@ -227,7 +227,6 @@ export class PollService implements Resolve<Poll> {
|
||||
newpoll.dateChoices = this.storageService.dateList;
|
||||
newpoll.timeSlices = this.storageService.timeSlices;
|
||||
|
||||
console.log('newpoll', newpoll);
|
||||
return newpoll;
|
||||
}
|
||||
|
||||
|
@ -1,14 +1,16 @@
|
||||
<section class="hero is-medium is-success">
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<h1 class="title is-1">🎉 {{ 'resume.title' | translate }}</h1>
|
||||
<h2 class="subtitle">
|
||||
Votre sondage «
|
||||
<strong class="poll-title">
|
||||
{{ poll.title }}
|
||||
</strong>
|
||||
» a bien été créé !
|
||||
</h2>
|
||||
<div class="main-block">
|
||||
<h1 class="title is-1">🎉 {{ 'resume.title' | translate }}</h1>
|
||||
<h2 class="subtitle">
|
||||
Votre sondage «
|
||||
<strong class="poll-title">
|
||||
{{ poll.title }}
|
||||
</strong>
|
||||
» a bien été créé !
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@ -29,14 +31,16 @@
|
||||
<p>
|
||||
Pour accéder au sondage et à tous ses paramètres :
|
||||
<br />
|
||||
<a class="button is-info" href="{{ pollService.getAdministrationUrl() }}"
|
||||
<a class="button is-info" routerLink="/admin/{{ poll.admin_key }}"
|
||||
>{{ pollService.getAdministrationUrl() }}
|
||||
</a>
|
||||
<app-copy-text [textToCopy]="pollService.getAdministrationUrl()"></app-copy-text>
|
||||
</p>
|
||||
<app-copy-text [textToCopy]="pollService.getAdministrationUrl()"></app-copy-text>
|
||||
<br />
|
||||
<a class="button is-info" [href]="pollService.getAdministrationUrl()">
|
||||
Voir le sondage coté administrateur·ice
|
||||
</a>
|
||||
<br />
|
||||
<p class="note">
|
||||
Note : Le sondage sera supprimé {{ poll.default_expiracy_days_from_now }} jours après la date de sa
|
||||
dernière modification.
|
||||
@ -45,17 +49,15 @@
|
||||
<div class="public">
|
||||
<h2 class="title is-2" i18n>{{ 'resume.users' | translate }}</h2>
|
||||
<p>
|
||||
Pour modifier le sondage :
|
||||
Pour voir le sondage :
|
||||
<br />
|
||||
<a class="button is-info" href="{{ pollService.getAdministrationUrl() }}"
|
||||
>{{ pollService.getAdministrationUrl() }}
|
||||
<a class="button is-info" routerLink="/poll/{{ poll.custom_url }}/consultation"
|
||||
>{{ pollService.getParticipationUrl() }}
|
||||
</a>
|
||||
</p>
|
||||
<app-copy-text [textToCopy]="pollService.getAdministrationUrl()"></app-copy-text>
|
||||
<br />
|
||||
<a class="button is-info" href="{{ pollService.getAdministrationUrl() }}">
|
||||
<i class="fa fa-pencil"></i> Modifier le sondage
|
||||
</a>
|
||||
<app-copy-text [textToCopy]="pollService.getParticipationUrl()"></app-copy-text>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<!-- <img src="assets/img/undraw_group_selfie_ijc6.svg" alt="image succès" />-->
|
||||
@ -67,7 +69,7 @@
|
||||
Pour être sûr de retrouver ces liens, nous pouvons vous les envoyer sur votre mail :
|
||||
</label>
|
||||
<br />
|
||||
<input type="email" [(ngModel)]="mailToRecieve" placeholder="email" />
|
||||
<input type="email" id="email" name="email" [(ngModel)]="mailToRecieve" placeholder="email" />
|
||||
<br />
|
||||
<button class="btn btn--primary" (click)="sendToEmail()">
|
||||
Envoyer les liens du sondage
|
||||
|
@ -6,6 +6,10 @@ button {
|
||||
}
|
||||
a {
|
||||
max-width: 20em;
|
||||
overflow: auto;
|
||||
@extend .truncate;
|
||||
}
|
||||
.truncate {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ import { ToastService } from '../../../../core/services/toast.service';
|
||||
export class CopyTextComponent implements OnInit {
|
||||
@Input() public textToCopy: string;
|
||||
public displayContentToCopy = false;
|
||||
@Input() public displayLabelButton = true;
|
||||
@Input() public displayLabelButton = false;
|
||||
|
||||
constructor(private _clipboardService: ClipboardService, private toastService: ToastService) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user