fix select visibility

This commit is contained in:
Baptiste Lemoine 2020-02-04 11:21:00 +01:00
parent 74ade7ac0f
commit bc67f26327
5 changed files with 107 additions and 943 deletions

File diff suppressed because it is too large Load Diff

View File

@ -33,24 +33,7 @@
<!-- </li >-->
<!-- </ul >-->
<!-- </nav >-->
<div class='heading' >
<div class='col-xs-6' >
<h1 id='title' >{{config.currentPoll.poll.title}}</h1 >
<p >{{config.currentPoll.poll.description}}</p >
<span class="creationDate" >
Créé le {{config.currentPoll.poll.creationDate.date}}
</span >
<span class="expiracyDate" >
Expire le {{config.currentPoll.poll.expiracyDate.date}}
</span >
<div class="votants" >
<i class='fa fa-users' ></i >
{{config.currentPoll.stacks.length}} votants,
{{config.currentPoll.choices.length}} choix,
</div >
</div >
</div >
</div >
<section class="name" >

View File

@ -58,6 +58,7 @@ export class PollDisplayComponent extends BaseComponent implements OnInit {
this.config.loading = false;
}, (e) => {
// handle need for a password
console.log('e', e)
this.config.handleError(e)
}
);

View File

@ -69,7 +69,7 @@
<option value="1" >
{{"visibility.archiving_can"|translate}}
</option >
<option value="0" >
<option value=0 >
{{"visibility.archiving_can_not"|translate}}
</option >
</select >
@ -77,11 +77,15 @@
{{"visibility.archiving_end"|translate}}
</label >
<span *ngIf="'0' == config.canModifyAnswers" >
{{"visibility.modfiy_their"|translate}}
</span >
<select
name="modificationScope"
id="modificationScope"
*ngIf="'1' ==config.canModifyAnswers"
[(ngModel)]="config.whoModifiesAnswers"
[disabled]="!config.canModifyAnswers" >
[disabled]="'0' == config.canModifyAnswers" >
<option value="self" >
{{"visibility.modfiy_their"|translate}}
</option >
@ -114,7 +118,10 @@
{{"visibility.access_instructions"|translate}}
</sub >
<div class="preview-url" >
{{environment.baseHref + '#/poll/slug/' + config.customUrl}}
<a [href]="'/#/vote/poll/slug/' + config.customUrl" >
{{environment.baseHref + '#/vote/poll/slug/' + config.customUrl}}
</a >
</div >
<br >
<label for="passwordAccess" >

View File

@ -1,4 +1,21 @@
<h2 >Résumé</h2 >
<div class='heading' >
<div class='col-xs-6' >
<h1 id='title' >{{config.currentPoll.poll.title}}</h1 >
<p >{{config.currentPoll.poll.description}}</p >
<span class="creationDate" >
Créé le {{config.currentPoll.poll.creationDate.date}}
</span >
<span class="expiracyDate" >
Expire le {{config.currentPoll.poll.expiracyDate.date}}
</span >
<div class="votants" >
<i class='fa fa-users' ></i >
{{config.currentPoll.stacks.length}} votants,
{{config.currentPoll.choices.length}} choix,
</div >
</div >
</div >
<div class="preferred" >
<i class='fa fa-star' ></i >
Pour l'instant,