2019-08-10 17:21:40 +02:00
|
|
|
/**
|
|
|
|
* une option de date dans les sondages spéciaux
|
|
|
|
*/
|
|
|
|
export interface DateOption {
|
|
|
|
text: string;
|
|
|
|
start?: string;
|
|
|
|
end?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-08-10 17:41:01 +02:00
|
|
|
* configuration of the poll, add new fields at will
|
2019-08-10 17:21:40 +02:00
|
|
|
*/
|
|
|
|
export class PollConfig {
|
|
|
|
step = 0;
|
|
|
|
stepMax = 3;
|
|
|
|
pollType = 'classic';
|
|
|
|
title = '';
|
|
|
|
description = '';
|
2019-08-11 17:44:11 +02:00
|
|
|
myName = '';
|
2019-08-10 17:41:01 +02:00
|
|
|
visibility = 'link_only';
|
2019-08-10 17:21:40 +02:00
|
|
|
// date specific poll
|
|
|
|
allowSeveralHours = false;
|
|
|
|
dateList: DateOption[] = [];
|
2019-08-10 18:14:00 +02:00
|
|
|
answers: any = [{
|
|
|
|
id: 0,
|
|
|
|
text: 'réponse de démo 1'
|
|
|
|
},
|
2019-08-10 17:21:40 +02:00
|
|
|
|
2019-08-10 18:14:00 +02:00
|
|
|
{
|
|
|
|
id: 1,
|
|
|
|
text: 'réponse 2'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
text: 'la réponse D'
|
|
|
|
}];
|
2019-08-10 17:41:01 +02:00
|
|
|
|
|
|
|
|
2019-08-10 17:21:40 +02:00
|
|
|
}
|