2020-01-16 15:35:11 +01:00
|
|
|
<div class="poll" >
|
2020-01-16 16:38:06 +01:00
|
|
|
<div class='heading' >
|
|
|
|
<div class='col-xs-6' >
|
|
|
|
<h1 >{{pollConfigFetched.data.title}}</h1 >
|
|
|
|
<p >{{pollConfigFetched.data.description}}</p >
|
|
|
|
<span class="creationDate" >
|
|
|
|
Créé le {{pollConfigFetched.data.creationDate.date}}
|
|
|
|
</span >
|
|
|
|
<span class="expiracyDate" >
|
|
|
|
Expire le {{pollConfigFetched.data.expiracyDate.date}}
|
|
|
|
</span >
|
|
|
|
<div class="votants" >
|
|
|
|
<i class='fa fa-users' ></i >
|
|
|
|
{{pollConfigFetched.stacks.length}} votants,
|
|
|
|
{{pollConfigFetched.choices.length}} choix,
|
|
|
|
</div >
|
|
|
|
</div >
|
|
|
|
<div class='col-xs-6' >
|
2020-01-20 13:38:57 +01:00
|
|
|
<button
|
|
|
|
class='btn btn--primary btn--outline btn--full'
|
|
|
|
*ngIf='config.isAdmin'
|
2020-01-16 16:38:06 +01:00
|
|
|
(click)='config.todo()' >
|
2020-01-20 13:38:57 +01:00
|
|
|
<i class='fa fa-pencil' ></i >
|
|
|
|
Je veux modifier le vote de quelqu'un
|
|
|
|
</button >
|
|
|
|
|
2020-01-16 16:38:06 +01:00
|
|
|
</div >
|
|
|
|
</div >
|
2020-01-15 17:55:22 +01:00
|
|
|
|
2020-01-16 15:35:11 +01:00
|
|
|
</div >
|
|
|
|
<section class="name" >
|
|
|
|
<label for="name" >Votre nom :</label >
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="name"
|
|
|
|
id="name"
|
|
|
|
[(ngModel)]="config.myName" >
|
|
|
|
</section >
|
|
|
|
<div class="list-of-choices" >
|
|
|
|
<div *ngFor="let choice of pollConfigFetched.choices" >
|
|
|
|
<framadate-vote-choice [choice]="choice" ></framadate-vote-choice >
|
|
|
|
</div >
|
|
|
|
</div >
|
|
|
|
<button
|
|
|
|
class='btn btn--primary btn-block'
|
|
|
|
(click)='config.addVote()' >
|
|
|
|
<i class='fa fa-paper-plane' ></i > Envoyer
|
|
|
|
</button >
|
|
|
|
<framadate-voting-graph ></framadate-voting-graph >
|
|
|
|
<framadate-voting-summary ></framadate-voting-summary >
|
|
|
|
<div class="comments" >
|
|
|
|
<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" >
|
|
|
|
<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"
|
|
|
|
*ngFor="let c of comments" >
|
2020-01-16 10:20:15 +01:00
|
|
|
|
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 :
|
|
|
|
<a href='{{config.urlPublic}}' >
|
|
|
|
{{config.urlPublic}}
|
|
|
|
</a >
|
|
|
|
</p >
|
|
|
|
<button
|
|
|
|
class=" btn btn--primary btn--outline"
|
|
|
|
[ngxClipboard]
|
|
|
|
[cbContent]="config.urlPublic"
|
|
|
|
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 >
|