2020-01-16 15:35:11 +01:00
|
|
|
<div class="poll" >
|
2020-01-22 10:00:03 +01:00
|
|
|
<nav class='sections-nav' >
|
|
|
|
<ul >
|
2020-01-22 11:18:55 +01:00
|
|
|
<li >
|
|
|
|
<a href='#title' >
|
|
|
|
{{config.currentPoll.data.title}}
|
|
|
|
</a >
|
|
|
|
</li >
|
|
|
|
<li >
|
|
|
|
<a href='#table' >
|
|
|
|
{{config.currentPoll.stacks.length}}
|
|
|
|
votes
|
|
|
|
</a >
|
|
|
|
</li >
|
|
|
|
<li >
|
|
|
|
<a href='#graph' >
|
|
|
|
Graphique
|
|
|
|
</a >
|
|
|
|
</li >
|
2020-01-22 10:00:03 +01:00
|
|
|
<li >
|
|
|
|
<a href='#comments' >
|
|
|
|
<i class='fa fa-comments' ></i >
|
|
|
|
<span
|
|
|
|
*ngIf='config.currentPoll && config.currentPoll.comments'
|
|
|
|
class='comments-count' >
|
|
|
|
{{config.currentPoll.comments.length}}
|
|
|
|
</span >
|
2020-01-22 11:18:55 +01:00
|
|
|
commentaires
|
|
|
|
</a >
|
2020-01-22 10:00:03 +01:00
|
|
|
</li >
|
|
|
|
</ul >
|
|
|
|
</nav >
|
2020-01-16 16:38:06 +01:00
|
|
|
<div class='heading' >
|
|
|
|
<div class='col-xs-6' >
|
2020-01-22 10:00:03 +01:00
|
|
|
<h1 id='title' >{{config.currentPoll.data.title}}</h1 >
|
|
|
|
<p >{{config.currentPoll.data.description}}</p >
|
2020-01-16 16:38:06 +01:00
|
|
|
<span class="creationDate" >
|
2020-01-22 10:00:03 +01:00
|
|
|
Créé le {{config.currentPoll.data.creationDate.date}}
|
2020-01-16 16:38:06 +01:00
|
|
|
</span >
|
|
|
|
<span class="expiracyDate" >
|
2020-01-22 10:00:03 +01:00
|
|
|
Expire le {{config.currentPoll.data.expiracyDate.date}}
|
2020-01-16 16:38:06 +01:00
|
|
|
</span >
|
|
|
|
<div class="votants" >
|
|
|
|
<i class='fa fa-users' ></i >
|
2020-01-22 10:00:03 +01:00
|
|
|
{{config.currentPoll.stacks.length}} votants,
|
|
|
|
{{config.currentPoll.choices.length}} choix,
|
2020-01-16 16:38:06 +01:00
|
|
|
</div >
|
|
|
|
</div >
|
2020-01-22 10:00:03 +01:00
|
|
|
|
2020-01-16 16:38:06 +01:00
|
|
|
</div >
|
2020-01-15 17:55:22 +01:00
|
|
|
|
2020-01-16 15:35:11 +01:00
|
|
|
</div >
|
|
|
|
<section class="name" >
|
2020-01-23 15:08:52 +01:00
|
|
|
<label for="name" >
|
|
|
|
<i class='fa fa-user' ></i >
|
|
|
|
Votre nom :</label >
|
2020-01-16 15:35:11 +01:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="name"
|
|
|
|
id="name"
|
|
|
|
[(ngModel)]="config.myName" >
|
2020-01-23 15:08:52 +01:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="name"
|
|
|
|
id="email"
|
|
|
|
[(ngModel)]="config.myEmail" >
|
|
|
|
<i class='fa fa-envelope' ></i >
|
2020-01-16 15:35:11 +01:00
|
|
|
</section >
|
2020-01-22 10:00:03 +01:00
|
|
|
<div
|
|
|
|
*ngIf='config.currentPoll'
|
|
|
|
class="list-of-choices" >
|
|
|
|
<div *ngFor="let choice of config.currentPoll.choices" >
|
|
|
|
|
|
|
|
<framadate-vote-choice
|
|
|
|
[choice]="choice"
|
|
|
|
[pollIsSpecialDate]="config.currentPoll.data.kind == 'date'"
|
2020-01-23 16:47:53 +01:00
|
|
|
[poll]='config.currentPoll' ></framadate-vote-choice >
|
2020-01-16 15:35:11 +01:00
|
|
|
</div >
|
|
|
|
</div >
|
|
|
|
<button
|
|
|
|
class='btn btn--primary btn-block'
|
2020-01-23 15:08:52 +01:00
|
|
|
(click)='config.addVote()'
|
|
|
|
*ngIf='!config.myVoteStack || !config.myVoteStack.id' >
|
2020-01-16 15:35:11 +01:00
|
|
|
<i class='fa fa-paper-plane' ></i > Envoyer
|
|
|
|
</button >
|
2020-01-23 15:08:52 +01:00
|
|
|
<button
|
|
|
|
class='btn btn--primary btn-block'
|
|
|
|
(click)='config.updateVote(config.myVoteStack)'
|
|
|
|
*ngIf='config.myVoteStack && config.myVoteStack.id' >
|
|
|
|
<i class='fa fa-pencil' ></i > Mettre à jour
|
|
|
|
</button >
|
2020-01-22 11:18:55 +01:00
|
|
|
<hr >
|
2020-01-22 10:00:03 +01:00
|
|
|
<div id='graph' >
|
|
|
|
|
|
|
|
<!--<framadate-voting-graph ></framadate-voting-graph >-->
|
|
|
|
</div >
|
2020-01-22 11:18:55 +01:00
|
|
|
<div id='table' >
|
|
|
|
<!--<framadate-voting-summary ></framadate-voting-summary >-->
|
|
|
|
</div >
|
2020-01-22 10:00:03 +01:00
|
|
|
<div
|
|
|
|
class="comments"
|
|
|
|
id='comments' >
|
2020-01-16 15:35:11 +01:00
|
|
|
<h2 class="margin-top-x7" >Laisser un commentaire</h2 >
|
|
|
|
<label for="crname" >Votre nom :</label >
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
class="margin-btm-x3"
|
|
|
|
name="crname"
|
|
|
|
[(ngModel)]='config.myName'
|
|
|
|
id="crname" >
|
2020-01-23 15:24:39 +01:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="cremail"
|
|
|
|
id="email_comment"
|
|
|
|
[(ngModel)]="config.myEmail" >
|
|
|
|
<label for='email_comment' >
|
|
|
|
<i class='fa fa-envelope' ></i >
|
|
|
|
</label >
|
2020-01-16 15:35:11 +01:00
|
|
|
<div >
|
|
|
|
<label for="comment" >Votre commentaire :</label >
|
|
|
|
<br >
|
|
|
|
<textarea
|
|
|
|
name="comment"
|
|
|
|
id="comment"
|
|
|
|
[(ngModel)]='config.myComment'
|
|
|
|
>
|
|
|
|
</textarea >
|
|
|
|
</div >
|
|
|
|
<input
|
|
|
|
type="submit"
|
|
|
|
name="add-comment"
|
|
|
|
class="btn btn--primary btn--outline"
|
|
|
|
value="Ajouter mon commentaire"
|
|
|
|
(click)='config.addComment()' >
|
|
|
|
<framadate-voting-comment
|
|
|
|
[comment]="c"
|
2020-01-22 16:49:15 +01:00
|
|
|
*ngFor="let c of config.currentPoll.comments " >
|
2020-01-16 15:35:11 +01:00
|
|
|
</framadate-voting-comment >
|
|
|
|
</div >
|
|
|
|
<div class="sharing" >
|
|
|
|
<h3 class="margin-top-x8" >Partager le sondage
|
|
|
|
|
|
|
|
<i class='fa fa-share' ></i ></h3 >
|
|
|
|
<p
|
|
|
|
class="nobold text-14"
|
|
|
|
for="copyLink" >Pour partager le sondage, vous pouvez diffuser ce lien :
|
2020-01-22 16:49:15 +01:00
|
|
|
<a href='{{config.currentPoll.urlPublic}}' >
|
|
|
|
{{config.currentPoll.urlPublic}}
|
2020-01-16 15:35:11 +01:00
|
|
|
</a >
|
|
|
|
</p >
|
|
|
|
<button
|
|
|
|
class=" btn btn--primary btn--outline"
|
|
|
|
[ngxClipboard]
|
2020-01-22 16:49:15 +01:00
|
|
|
[cbContent]="config.currentPoll.urlPublic"
|
2020-01-16 15:35:11 +01:00
|
|
|
id="copyLink" >
|
|
|
|
<i class='fa fa-copy' ></i >
|
|
|
|
{{"admin.copy_link" |translate}}
|
|
|
|
</button >
|
|
|
|
<h3 class="margin-top-x6 margin-btm-x3" >
|
|
|
|
Exporter/Imprimer
|
|
|
|
</h3 >
|
|
|
|
<input
|
|
|
|
type="submit"
|
|
|
|
name="export"
|
|
|
|
class="margin-btm-x3 btn btn--primary btn--outline"
|
|
|
|
value="Exporter en .csv"
|
|
|
|
(click)="config.exportCSV()" >
|
|
|
|
<input
|
|
|
|
type="submit"
|
|
|
|
name="copy-link"
|
|
|
|
class="btn btn--primary btn--outline"
|
|
|
|
value="Imprimer le sondage"
|
|
|
|
(click)="config.print()" >
|
|
|
|
</div >
|