mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
display title on poll page
This commit is contained in:
parent
56273946c3
commit
d84809d62a
@ -18,6 +18,7 @@ export class Poll {
|
||||
public configuration: PollConfiguration = new PollConfiguration(),
|
||||
public comments: Comment[] = [],
|
||||
public choices: Choice[] = [],
|
||||
public votes = [],
|
||||
public dateChoices: Choice[] = [], // sets of days as strings, config to set identical time for days in a special days poll
|
||||
public timeChoices: Choice[] = [] // ranges of time expressed as strings
|
||||
) {}
|
||||
|
@ -161,11 +161,11 @@ export class PollService implements Resolve<Poll> {
|
||||
public buildAnswersByChoiceLabelByPseudo(poll: Poll): Map<string, Map<string, Answer>> {
|
||||
const pseudos: Set<string> = new Set();
|
||||
poll.votes.forEach((choice: Choice) => {
|
||||
choice.voters.forEach((users: Set<User>) => {
|
||||
users.forEach((user: User) => {
|
||||
pseudos.add(user.pseudo);
|
||||
});
|
||||
});
|
||||
// choice.voters.forEach((users: Set<User>) => {
|
||||
// users.forEach((user: User) => {
|
||||
// pseudos.add(user.pseudo);
|
||||
// });
|
||||
// });
|
||||
});
|
||||
|
||||
const list = new Map<string, Map<string, Answer>>();
|
||||
|
@ -1,8 +1,3 @@
|
||||
<div class="columns">
|
||||
<div class="column has-text-centered">
|
||||
<h1>Consultation de {{ pollSlug }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<section class="loading_poll" *ngIf="fetching"></section>
|
||||
<section class="poll_loaded padded" *ngIf="!fetching && poll">
|
||||
<div class="alert alert-info" *ngIf="poll.votes.length == 0">
|
||||
@ -13,19 +8,20 @@
|
||||
<div class="column">
|
||||
<div class="card">
|
||||
<header class="card-header">
|
||||
<p class="card-header-title">{{ poll.title }}</p>
|
||||
<p class="card-header-title is-1 title">{{ poll.title }}</p>
|
||||
<!-- <p class="card-header-icon">author : {{ poll.owner?.pseudo }}</p>-->
|
||||
</header>
|
||||
<button
|
||||
class="btn is-info"
|
||||
(click)="isCompactMode = !isCompactMode"
|
||||
[ngClass]="{ 'is-primary': isCompactMode, 'is-default': !isCompactMode }"
|
||||
>
|
||||
changer d'affichage
|
||||
</button>
|
||||
|
||||
<div class="card-content">
|
||||
<div class="content">
|
||||
<p>{{ poll.description }}</p>
|
||||
<p class="title is-2">{{ poll.description }}</p>
|
||||
<button
|
||||
class="btn is-info"
|
||||
(click)="isCompactMode = !isCompactMode"
|
||||
[ngClass]="{ 'is-primary': isCompactMode, 'is-default': !isCompactMode }"
|
||||
>
|
||||
changer d'affichage
|
||||
</button>
|
||||
<div class="buttons has-addons is-small is-right">
|
||||
<button class="button" [class.is-active]="isCompactMode" (click)="isCompactMode = true">
|
||||
Compact
|
||||
|
Loading…
x
Reference in New Issue
Block a user