|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* une option de date dans les sondages spéciaux
|
|
|
|
|
*/
|
|
|
|
|
import {environment} from "../../environments/environment";
|
|
|
|
|
import {defaultAnswers} from "./defaultConfigs";
|
|
|
|
|
import {defaultAnswers, defaultDates, defaultTimeOfDay} from "./defaultConfigs";
|
|
|
|
|
|
|
|
|
|
export interface DateOption {
|
|
|
|
|
timeList: any;
|
|
|
|
@ -55,8 +55,8 @@ export class PollConfig {
|
|
|
|
|
canModifyAnswers = 1;// everybody, self, nobody (= just admin)
|
|
|
|
|
whoModifiesAnswers = "self";// everybody, self, nobody (= just admin)
|
|
|
|
|
whoCanChangeAnswers = 'everybody';// everybody, self, nobody (= just admin)
|
|
|
|
|
dateList: DateOption[]; // sets of days as strings, config to set identical time for days in a special days poll
|
|
|
|
|
timeList: DateOption[]; // ranges of time expressed as strings
|
|
|
|
|
dateList: any = defaultDates; // sets of days as strings, config to set identical time for days in a special days poll
|
|
|
|
|
timeList: any = defaultTimeOfDay; // ranges of time expressed as strings
|
|
|
|
|
|
|
|
|
|
answers: any = defaultAnswers;
|
|
|
|
|
|
|
|
|
|