2020-04-14 11:28:33 +02:00
|
|
|
<h1 i18n>
|
|
|
|
{{ 'visibility.top_txt' | translate }}
|
|
|
|
</h1>
|
|
|
|
<section class="answers">
|
|
|
|
<h2>
|
|
|
|
{{ 'visibility.title' | translate }}
|
|
|
|
</h2>
|
|
|
|
<span>
|
|
|
|
{{ 'visibility.visibility_want' | translate }}
|
|
|
|
</span>
|
|
|
|
<select name="visible_people" id="visible_people" [(ngModel)]="config.visibility">
|
|
|
|
<option value="link_only">
|
|
|
|
{{ 'visibility.visibility_link' | translate }}
|
|
|
|
</option>
|
|
|
|
<option value="only_me">
|
|
|
|
{{ 'visibility.visibility_nobody' | translate }}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
<span>
|
|
|
|
{{ 'visibility.visibility_see' | translate }}
|
|
|
|
</span>
|
|
|
|
</section>
|
2019-08-10 17:21:40 +02:00
|
|
|
|
2020-04-14 11:28:33 +02:00
|
|
|
<section class="possible_votes">
|
|
|
|
<h2>
|
|
|
|
{{ 'visibility.votes' | translate }}
|
|
|
|
</h2>
|
|
|
|
<label for="votes">
|
|
|
|
{{ 'visibility.votes_possible' | translate }}
|
|
|
|
</label>
|
|
|
|
<select name="votes" id="votes" [(ngModel)]="config.voteChoices">
|
|
|
|
<option value="only_yes">
|
|
|
|
{{ 'visibility.votes_possible_single' | translate }}
|
|
|
|
</option>
|
|
|
|
<option value="normal">
|
|
|
|
{{ 'visibility.votes_possible_normal' | translate }}
|
|
|
|
</option>
|
|
|
|
<option value="full">
|
|
|
|
{{ 'visibility.votes_possible_full' | translate }}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</section>
|
|
|
|
<section class="expiracy">
|
|
|
|
<label for="expirationDate">
|
|
|
|
{{ 'visibility.archiving' | translate }}
|
|
|
|
</label>
|
2019-11-22 16:46:12 +01:00
|
|
|
|
2020-04-14 11:28:33 +02:00
|
|
|
<input type="date" id="expirationDate" [(ngModel)]="config.expirationDate" />
|
|
|
|
<div class="modification">
|
|
|
|
<label for="modificationAbility">
|
|
|
|
{{ 'visibility.archiving_start' | translate }}
|
|
|
|
</label>
|
2019-11-23 14:58:44 +01:00
|
|
|
|
2020-04-14 11:28:33 +02:00
|
|
|
<select name="modificationAbility" id="modificationAbility" [(ngModel)]="config.canModifyAnswers">
|
|
|
|
<option value="true">
|
|
|
|
{{ 'visibility.archiving_can' | translate }}
|
|
|
|
</option>
|
|
|
|
<option value="false">
|
|
|
|
{{ 'visibility.archiving_can_not' | translate }}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
<span *ngIf="config.canModifyAnswers == false">
|
|
|
|
{{ 'visibility.archiving_end_not' | translate }}
|
2020-04-11 14:51:22 +02:00
|
|
|
</span>
|
2020-04-14 11:28:33 +02:00
|
|
|
<span class="can_modify_votes" *ngIf="config.canModifyAnswers == true">
|
2020-04-11 14:51:22 +02:00
|
|
|
<label for="modificationScope">
|
2020-04-14 11:28:33 +02:00
|
|
|
{{ 'visibility.archiving_end' | translate }}
|
2020-04-11 14:51:22 +02:00
|
|
|
</label>
|
2020-04-14 11:28:33 +02:00
|
|
|
<span *ngIf="false == !!config.canModifyAnswers">
|
|
|
|
{{ 'visibility.modfiy_their' | translate }}
|
|
|
|
</span>
|
|
|
|
<select
|
2020-04-11 14:51:22 +02:00
|
|
|
name="modificationScope"
|
|
|
|
id="modificationScope"
|
2020-04-14 11:28:33 +02:00
|
|
|
*ngIf="true == !!config.canModifyAnswers"
|
|
|
|
[(ngModel)]="config.whoModifiesAnswers"
|
|
|
|
[disabled]="false == !!config.canModifyAnswers"
|
|
|
|
>
|
2020-04-11 14:51:22 +02:00
|
|
|
<option value="self">
|
2020-04-14 11:28:33 +02:00
|
|
|
{{ 'visibility.modfiy_their' | translate }}
|
2020-04-11 14:51:22 +02:00
|
|
|
</option>
|
|
|
|
<option value="everybody">
|
2020-04-14 11:28:33 +02:00
|
|
|
{{ 'visibility.modfiy_everyone' | translate }}
|
2020-04-11 14:51:22 +02:00
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</span>
|
2020-04-14 11:28:33 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="access">
|
|
|
|
<h2 class="title">
|
|
|
|
{{ 'visibility.access' | translate }}
|
|
|
|
</h2>
|
|
|
|
<label for="url">
|
|
|
|
{{ 'visibility.access_url' | translate }}
|
|
|
|
<br />
|
|
|
|
{{ 'visibility.access_url_key' | translate }}
|
|
|
|
</label>
|
|
|
|
<br />
|
|
|
|
<input type="name" class="input-lg" name="url" id="url" [(ngModel)]="config.customUrl" />
|
2019-11-23 14:58:44 +01:00
|
|
|
|
2020-04-14 11:28:33 +02:00
|
|
|
<sub class="instructions">
|
|
|
|
{{ 'visibility.access_instructions' | translate }}
|
|
|
|
</sub>
|
|
|
|
<div class="preview-url">
|
|
|
|
<a [href]="'/#/vote/poll/slug/' + config.customUrl">
|
|
|
|
{{ environment.baseHref + '#/vote/poll/slug/' + config.customUrl }}
|
|
|
|
</a>
|
|
|
|
<framadate-copy-text [textToCopy]="config.urlPublic"></framadate-copy-text>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<label for="passwordAccess">
|
|
|
|
{{ 'visibility.access_want' | translate }}
|
|
|
|
</label>
|
|
|
|
<select name="passwordAccess" id="passwordAccess" [(ngModel)]="config.passwordAccess">
|
|
|
|
<option value="0"> {{ 'visibility.access_want_no' | translate }}</option>
|
|
|
|
<option value="1"> {{ 'visibility.access_want_yes' | translate }}</option>
|
|
|
|
</select>
|
2019-11-23 14:58:44 +01:00
|
|
|
|
2020-04-14 11:28:33 +02:00
|
|
|
<label for="password">
|
|
|
|
{{ 'visibility.access_protect' | translate }}
|
|
|
|
</label>
|
2019-11-23 14:58:44 +01:00
|
|
|
|
2020-04-14 11:28:33 +02:00
|
|
|
<div class="enablepassword" *ngIf="config.passwordAccess == 1">
|
2020-01-20 15:01:56 +01:00
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
name="password"
|
|
|
|
id="password"
|
|
|
|
min="8"
|
|
|
|
*ngIf="!showCustomPassword"
|
2020-04-14 11:28:33 +02:00
|
|
|
[(ngModel)]="config.password"
|
|
|
|
/>
|
2020-01-20 15:01:56 +01:00
|
|
|
<input
|
|
|
|
type="name"
|
|
|
|
name="password_visible"
|
|
|
|
id="password_visible"
|
|
|
|
min="8"
|
|
|
|
*ngIf="showCustomPassword"
|
2020-04-14 11:28:33 +02:00
|
|
|
[(ngModel)]="config.password"
|
|
|
|
/>
|
2020-01-20 15:01:56 +01:00
|
|
|
<button
|
|
|
|
(click)="showCustomPassword = !showCustomPassword"
|
|
|
|
[disabled]="!config.password"
|
2020-04-14 11:28:33 +02:00
|
|
|
class="btn btn--default"
|
|
|
|
>
|
|
|
|
<i class="fa fa-eye"></i>
|
|
|
|
{{ 'visibility.see_pass' | translate }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</section>
|
2020-01-20 15:35:33 +01:00
|
|
|
|
2020-04-14 11:28:33 +02:00
|
|
|
<button (click)="submitCreationAndGoToEnd()" class="btn btn--primary btn--full" i18n="@@confirm">
|
|
|
|
{{ 'visibility.validate_btn' | translate }}
|
|
|
|
<i class="fa fa-paper-plane" *ngIf="!config.loading"></i>
|
|
|
|
<span class="loading" *ngIf="config.loading">
|
|
|
|
<i class="fa fa-refresh fa-spin fa-fw"></i>
|
|
|
|
</span>
|
|
|
|
</button>
|
2019-11-23 15:08:20 +01:00
|
|
|
|
2020-04-14 11:28:33 +02:00
|
|
|
<div class="back">
|
|
|
|
<a [routerLink]="'/step/answers'" class="prev">
|
2019-11-23 15:08:20 +01:00
|
|
|
Retour
|
2020-04-14 11:28:33 +02:00
|
|
|
</a>
|
|
|
|
</div>
|