[Poll] Added templates, response counting

This commit is contained in:
Daniel
2020-11-08 16:36:06 +00:00
committed by Hugo Sales
parent 27a0c43f7b
commit cdbf7da8be
11 changed files with 187 additions and 45 deletions

View File

@@ -34,6 +34,7 @@ class NewPollForm extends Form
{
$optionNum = min(MAX_OPT,$optionNum);
$options = [];
array_push($options,['Question', TextType::class, ['label' => _m(('Question'))]]);
for ($i = 1; $i <= $optionNum; ++$i) {
//['Option_i', TextType::class, ['label' => _m('Option i')]],
array_push($options,['Option_' . $i, TextType::class, ['label' => _m(('Option ' . $i))]]);