2022-02-07 13:58:23 +01:00
|
|
|
<div class="step-info">
|
|
|
|
<div class="container">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<a
|
|
|
|
class="logo-home-link navbar-item pull-left is-hidden-mobile"
|
|
|
|
[routerLink]="['/']"
|
|
|
|
routerLinkActive="active"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
class="stepper-app-logo logo"
|
|
|
|
*ngIf="environment.appLogo"
|
|
|
|
src="{{ environment.appLogo }}"
|
|
|
|
alt="accueil {{ environment.appTitle }}"
|
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
<h1>
|
|
|
|
<span class="step-title-poll" *ngIf="pollService.step_current == 1">
|
|
|
|
{{ 'creation.title' | translate }}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span *ngIf="pollService.step_current > 1">
|
|
|
|
<span class="step-title-poll poll-title-filled" *ngIf="pollService.form.value.title.length">
|
|
|
|
{{ pollService.form.value.title }}
|
|
|
|
</span>
|
|
|
|
<span class="step-title-poll poll-title-empty" *ngIf="!pollService.form.value.title.length">
|
|
|
|
{{ 'nav.no_title' | translate }}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
<div class="column has-text-right">
|
|
|
|
<app-language-selector class="nav-button"></app-language-selector>
|
|
|
|
<button
|
|
|
|
class="has-no-border nav-button cancel-button"
|
|
|
|
[routerLink]="'/'"
|
|
|
|
id="display_cancel_popup_button"
|
|
|
|
aria-haspopup="dialog"
|
|
|
|
>
|
|
|
|
{{ 'nav.leave' | translate }} <i class="fa fa-times"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-11-18 13:00:29 +01:00
|
|
|
<section class="poll_loaded padded consultation" *ngIf="!fetching && poll">
|
2022-02-07 12:09:59 +01:00
|
|
|
<div class="step">
|
2022-02-07 13:58:23 +01:00
|
|
|
<section class="main-title-poll rounded-block">
|
2022-02-07 12:09:59 +01:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<h2 class="title is-2">
|
|
|
|
{{ poll.title }}
|
|
|
|
</h2>
|
2021-04-26 11:27:44 +02:00
|
|
|
</div>
|
2022-02-07 12:09:59 +01:00
|
|
|
<div class="column is-narrow">
|
|
|
|
<button class="options-button pull-right" (click)="displayOptions()">
|
|
|
|
{{ 'participation.menu_label' | translate }}
|
|
|
|
<i class="fa fa-chevron-down"></i>
|
2021-04-26 11:27:44 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
2020-05-12 19:16:23 +02:00
|
|
|
</div>
|
2022-02-07 12:09:59 +01:00
|
|
|
|
|
|
|
<p class="description">
|
|
|
|
{{ poll.description }}
|
|
|
|
</p>
|
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-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">
|
|
|
|
<div class="section no-votes">
|
|
|
|
<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>
|
|
|
|
<div class="has-votes" *ngIf="poll.stacks.length !== 0">
|
|
|
|
{{ 'participation.fav_description_one' | translate: { maxYesCount: maxYesCount } }}
|
|
|
|
{{ 'participation.fav_description_several' | translate }}
|
|
|
|
</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">
|
|
|
|
<button class="no-outline button" (click)="detailledDisplay = !detailledDisplay">
|
|
|
|
<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-07 15:33:39 +01:00
|
|
|
|
|
|
|
<app-poll-results-dinum [poll]="poll" [detailledDisplay]="detailledDisplay"></app-poll-results-dinum>
|
|
|
|
<!--<app-poll-results-compact [poll]="poll"></app-poll-results-compact>-->
|
|
|
|
<!-- <button-->
|
|
|
|
<!-- class="btn btn-block submit-votestack"-->
|
|
|
|
<!-- (click)="addVoteStack()"-->
|
|
|
|
<!-- *ngIf="!storageService.vote_stack || !storageService.vote_stack.id"-->
|
|
|
|
<!-- >-->
|
|
|
|
<!-- <i class="fa fa-paper-plane" aria-hidden="true"></i> Envoyer-->
|
|
|
|
<!-- </button>-->
|
2022-02-07 13:58:23 +01:00
|
|
|
</section>
|
|
|
|
<section class="poll-comments">
|
|
|
|
<h2 class="title is-3">
|
|
|
|
{{ 'participation.comments' | translate }}
|
|
|
|
</h2>
|
|
|
|
<div class="rounded-block">
|
|
|
|
<!-- *ngIf="poll.allow_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-->
|
|
|
|
<!-- </div>-->
|
|
|
|
</div>
|
|
|
|
</section>
|
2020-06-18 16:15:26 +02:00
|
|
|
</div>
|
2021-04-21 12:43:05 +02:00
|
|
|
</section>
|
2022-02-07 12:09:59 +01:00
|
|
|
<section class="loadin_poll" *ngIf="fetching">
|
|
|
|
<div class="step has-text-centered">
|
|
|
|
<p>loading ... <i class="fa fa-spinner fa-spin"></i></p>
|
|
|
|
</div>
|
|
|
|
</section>
|