148 lines
4.8 KiB
HTML
148 lines
4.8 KiB
HTML
<app-header [linkToHome]="true"></app-header>
|
|
|
|
<section class="poll_loaded padded consultation" *ngIf="!fetching && poll">
|
|
<div class="step">
|
|
<section class="main-title-poll rounded-block">
|
|
<div class="rounded-block">
|
|
<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">
|
|
<button
|
|
class="is-primary button"
|
|
(click)="pollService.copyText(pollService.getParticipationUrl())"
|
|
>
|
|
{{ 'success.copy' | translate }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="columns">
|
|
<div class="column">
|
|
<h2 class="title is-2">
|
|
{{ poll.title }}
|
|
</h2>
|
|
</div>
|
|
<div class="column is-narrow">
|
|
<button class="options-button pull-right" (click)="displayOptions()">
|
|
{{ 'participation.menu_label' | translate }}
|
|
<i class="fa fa-chevron-down"></i>
|
|
</button>
|
|
<div class="dropdown is-active">
|
|
<div class="dropdown-trigger">
|
|
<button class="button" aria-haspopup="true" aria-controls="dropdown-menu2">
|
|
<span>Content</span>
|
|
<span class="icon is-small">
|
|
<i class="fas fa-angle-down" aria-hidden="true"></i>
|
|
</span>
|
|
</button>
|
|
</div>
|
|
<div class="dropdown-menu" id="dropdown-menu2" role="menu">
|
|
<div class="dropdown-content">
|
|
<div class="dropdown-item">
|
|
<p>You can insert <strong>any type of content</strong> within the dropdown menu.</p>
|
|
</div>
|
|
<hr class="dropdown-divider" />
|
|
<div class="dropdown-item">
|
|
<p>You simply need to use a <code><div></code> instead.</p>
|
|
</div>
|
|
<hr class="dropdown-divider" />
|
|
<a href="#" class="dropdown-item">
|
|
This is a link
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<p class="description">
|
|
{{ poll.description }}
|
|
</p>
|
|
<button
|
|
class="vote-button is-primary button"
|
|
*ngIf="poll.votes_allowed"
|
|
[routerLink]="'/poll/' + poll.custom_url + '/consultation/vote'"
|
|
>
|
|
{{ 'participation.fav_title' | translate }}
|
|
</button>
|
|
<span *ngIf="!poll.votes_allowed">
|
|
Les votes sont désactivés
|
|
</span>
|
|
</section>
|
|
<section class="favourite">
|
|
<h2 class="title is-3">
|
|
{{ 'participation.fav_choice' | translate }}
|
|
</h2>
|
|
<div class="rounded-block">
|
|
<div class="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">
|
|
<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>
|
|
</div>
|
|
|
|
<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>-->
|
|
</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>
|
|
</div>
|
|
</section>
|
|
<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>
|