2022-02-10 12:16:11 +01:00
|
|
|
<app-header [linkToHome]="false"></app-header>
|
2022-02-07 13:58:23 +01:00
|
|
|
|
2022-03-22 11:53:45 +01:00
|
|
|
<section class="poll_loaded consultation" *ngIf="!fetching && poll">
|
2022-02-11 10:02:05 +01:00
|
|
|
<div class="step contained-in-large-column">
|
2022-02-10 12:16:11 +01:00
|
|
|
<div class="rounded-block admin-share-link" *ngIf="poll.admin_key || show_admin_stuff">
|
2022-03-22 10:31:05 +01:00
|
|
|
<h1 class="title is-2">
|
2022-02-10 12:16:11 +01:00
|
|
|
{{ 'participation.share_title' | translate }}
|
2022-03-22 10:31:05 +01:00
|
|
|
</h1>
|
2022-02-10 12:16:11 +01:00
|
|
|
<p class="description">
|
|
|
|
{{ 'participation.share_description' | translate }}
|
|
|
|
</p>
|
|
|
|
<label for="public_share_link">
|
|
|
|
{{ 'success.link' | translate }}
|
|
|
|
</label>
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<input type="text" [value]="pollService.getParticipationUrl()" id="public_share_link" />
|
|
|
|
</div>
|
|
|
|
<div class="column is-narrow">
|
|
|
|
<app-copy-text [textToCopy]="pollService.getParticipationUrl()"></app-copy-text>
|
2022-02-10 11:15:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-10 12:16:11 +01:00
|
|
|
</div>
|
|
|
|
<section class="main-title-poll rounded-block">
|
2022-03-22 10:31:05 +01:00
|
|
|
<h2 class="title is-2">
|
|
|
|
{{ poll.title }}
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<button
|
|
|
|
class="pull-right button is-action"
|
|
|
|
(click)="displayOptions()"
|
|
|
|
[ngClass]="{ 'is-active': display_options_menu }"
|
|
|
|
>
|
|
|
|
{{ 'participation.menu_label' | translate }}
|
|
|
|
<i class="fa fa-chevron-down"></i>
|
|
|
|
</button>
|
|
|
|
<app-actions-menu [displayMenu]="display_options_menu" *ngIf="display_options_menu"></app-actions-menu>
|
2022-02-07 12:09:59 +01:00
|
|
|
|
|
|
|
<p class="description">
|
|
|
|
{{ poll.description }}
|
|
|
|
</p>
|
2022-03-22 10:31:05 +01:00
|
|
|
|
2022-02-07 16:12:32 +01:00
|
|
|
<button
|
|
|
|
class="vote-button is-primary button"
|
|
|
|
*ngIf="poll.votes_allowed"
|
|
|
|
[routerLink]="'/poll/' + poll.custom_url + '/consultation/vote'"
|
|
|
|
>
|
2022-02-07 13:58:23 +01:00
|
|
|
{{ 'participation.fav_title' | translate }}
|
|
|
|
</button>
|
2022-02-10 12:16:11 +01:00
|
|
|
<button
|
2022-08-23 14:19:06 +02:00
|
|
|
class="edit-poll-button button is-secondary"
|
2022-02-10 12:16:11 +01:00
|
|
|
routerLink="/administration/step/7"
|
|
|
|
*ngIf="poll.admin_key || show_admin_stuff"
|
|
|
|
>
|
|
|
|
{{ 'SENTENCES.change-the-poll' | translate }}
|
|
|
|
</button>
|
2022-02-07 16:12:32 +01:00
|
|
|
<span *ngIf="!poll.votes_allowed">
|
|
|
|
Les votes sont désactivés
|
|
|
|
</span>
|
2022-02-07 13:58:23 +01:00
|
|
|
</section>
|
|
|
|
<section class="favourite">
|
|
|
|
<h2 class="title is-3">
|
|
|
|
{{ 'participation.fav_choice' | translate }}
|
|
|
|
</h2>
|
|
|
|
<div class="rounded-block">
|
2022-02-08 13:05:47 +01:00
|
|
|
<div class="no-votes">
|
2022-02-07 13:58:23 +01:00
|
|
|
<div class="message is-info" *ngIf="poll.stacks.length == 0">
|
|
|
|
<div class="message-body">
|
|
|
|
{{ 'participation.no_votes_yet' | translate }}
|
|
|
|
<br />
|
|
|
|
{{ 'participation.fav_description_not_exist' | translate }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-11 10:02:05 +01:00
|
|
|
<div class="has-votes" *ngIf="poll.stacks.length !== 0 && favChoicesList.length">
|
|
|
|
<div class="one-fav" *ngIf="favChoicesList.length == 1">
|
|
|
|
{{ 'participation.fav_description_one' | translate: { maxYesCount: maxYesCount } }}
|
|
|
|
</div>
|
|
|
|
<div class="several-fav" *ngIf="favChoicesList.length > 1">
|
|
|
|
{{ 'participation.fav_description_several' | translate }}
|
|
|
|
</div>
|
|
|
|
<div class="fav block has-background-yes">
|
|
|
|
<div class="fav-choice" *ngFor="let c of favChoicesList">
|
|
|
|
<div class="date-choice" *ngIf="poll.kind == 'date'">
|
|
|
|
{{ c.name | date }}
|
|
|
|
</div>
|
|
|
|
<div class="date-choice" *ngIf="poll.kind == 'text'">
|
|
|
|
{{ c.name }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-07 13:58:23 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="poll-answers">
|
2022-02-07 15:33:39 +01:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<h2 class="title is-3">
|
|
|
|
{{ 'participation.poll' | translate }}
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
2022-03-22 11:53:45 +01:00
|
|
|
<button class="button is-secondary pull-right" (click)="detailledDisplay = !detailledDisplay">
|
2022-02-07 15:33:39 +01:00
|
|
|
<span *ngIf="detailledDisplay">
|
|
|
|
<!-- <img class="icon" src="assets/icons/flag.svg" alt="icone magnifying" />-->
|
|
|
|
{{ 'participation.mode_comptact' | translate }}
|
|
|
|
</span>
|
|
|
|
<span *ngIf="!detailledDisplay">
|
|
|
|
<!-- <img class="icon" src="assets/icons/settings.svg" alt="icone magnifying" />-->
|
|
|
|
{{ 'participation.mode_detailed' | translate }}
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2022-02-07 13:58:23 +01:00
|
|
|
</div>
|
2022-02-10 12:16:11 +01:00
|
|
|
<!--affichages différents des réponses-->
|
|
|
|
<div class="results-not-visible" *ngIf="poll.hideResults">
|
|
|
|
Résultats cachés aux visiteurs
|
|
|
|
</div>
|
2022-02-07 15:33:39 +01:00
|
|
|
|
|
|
|
<app-poll-results-dinum [poll]="poll" [detailledDisplay]="detailledDisplay"></app-poll-results-dinum>
|
2022-02-07 13:58:23 +01:00
|
|
|
</section>
|
2022-03-22 11:53:45 +01:00
|
|
|
<section class="poll-comments" id="comments_list">
|
2022-02-11 10:02:05 +01:00
|
|
|
<h2 class="title is-3">
|
|
|
|
{{ 'participation.comments' | translate }}
|
2022-03-22 11:53:45 +01:00
|
|
|
<a [routerLink]="[]" fragment="comments_list"> #</a>
|
2022-02-11 10:02:05 +01:00
|
|
|
</h2>
|
2022-03-22 11:53:45 +01:00
|
|
|
<!-- <app-comments [poll]="poll" [vote_stack]="storageService.vote_stack" *ngIf="poll.allow_comments" ></app-comments>-->
|
|
|
|
<app-comments [poll]="poll" [vote_stack]="storageService.vote_stack"></app-comments>
|
|
|
|
|
|
|
|
<div class="alert has-background-info" *ngIf="!poll.allow_comments">
|
|
|
|
Ce sondage ne permet pas d'ajouter de commentaires
|
2022-02-11 10:02:05 +01:00
|
|
|
</div>
|
|
|
|
</section>
|
2020-06-18 16:15:26 +02:00
|
|
|
</div>
|
2021-04-21 12:43:05 +02:00
|
|
|
</section>
|
2022-03-22 11:53:45 +01:00
|
|
|
<div class="step has-text-centered" class="loadin_poll" *ngIf="fetching">
|
|
|
|
<h1 class="title is-1">
|
|
|
|
Loading
|
|
|
|
</h1>
|
|
|
|
<br />
|
|
|
|
<i class="fa fa-spinner fa-spin fa-3x"></i>
|
|
|
|
<br /><br />
|
|
|
|
<img
|
|
|
|
class="stepper-app-logo fa-spin"
|
|
|
|
*ngIf="environment.appLogo"
|
|
|
|
src="{{ environment.appLogo }}"
|
|
|
|
alt="accueil {{ environment.appTitle }}"
|
|
|
|
/>
|
|
|
|
</div>
|