From c1935dbb87b53b4750c798dee79506cc215ac1dd Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Sat, 23 Nov 2019 15:08:20 +0100 Subject: [PATCH] :zap: link default values --- src/app/config/PollConfig.ts | 4 +- .../visibility/visibility.component.html | 50 ++++++++++++------- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/src/app/config/PollConfig.ts b/src/app/config/PollConfig.ts index e0a79319..1b5cd192 100644 --- a/src/app/config/PollConfig.ts +++ b/src/app/config/PollConfig.ts @@ -56,11 +56,11 @@ export class PollConfig { // access visibility = 'link_only'; // visible to anyone with the link: voteChoices = 'only_yes'; // possible answers to a vote choice: only "yes", "yes, maybe, no" - expirationDate = ''; // expiracy date + expirationDate = new Date().toString().substr(0, 10); // expiracy date passwordAccess = 0; password = ''; customUrl = ''; - canModifyAnswers =1;// everybody, self, nobody (= just admin) + canModifyAnswers = "self";// everybody, self, nobody (= just admin) whoCanChangeAnswers = 'everybody';// everybody, self, nobody (= just admin) dateList: DateOption[] = defaultDates; // sets of days as strings, config to set identical time for days in a special days poll timeList: DateOption[] = timeOfDay; // ranges of time expressed as strings diff --git a/src/app/pages/visibility/visibility.component.html b/src/app/pages/visibility/visibility.component.html index ffb85272..9e3b84d5 100644 --- a/src/app/pages/visibility/visibility.component.html +++ b/src/app/pages/visibility/visibility.component.html @@ -2,7 +2,6 @@ {{"visibility.top_txt"|translate}}
-

{{"visibility.title"|translate}}

@@ -14,7 +13,7 @@ id="visible_people" [(ngModel)]="config.visibility" > - @@ -120,24 +122,34 @@ {{"visibility.access_protect"|translate}} - - - +
+ + + + +
{{"visibility.validate_btn"|translate}} +
+ + + Retour + +