checkBoxControlGroup($settings, 'allowunblacklist', ['uncheckedValue' => 'N', 'checkedValue' => 'Y']);
echo $form->checkBoxControlGroup($settings, 'deleteblacklisted', ['uncheckedValue' => 'N', 'checkedValue' => 'Y']);
echo TbHtml::closeTag('fieldset');
-?>
\ No newline at end of file
diff --git a/application/views/participants/settings/user.php b/application/views/participants/settings/user.php
index ec06f1a121b..84a4dddac58 100644
--- a/application/views/participants/settings/user.php
+++ b/application/views/participants/settings/user.php
@@ -1,8 +1,6 @@
layout = TbHtml::FORM_LAYOUT_HORIZONTAL;
-
-
+/** @var \ls\models\forms\ParticipantDatabaseSettings $settings */
+echo TbHtml::openTag('fieldset', []);
+echo $form->checkBoxControlGroup($settings, 'userideditable', ['uncheckedValue' => 'N', 'checkedValue' => 'Y']);
echo TbHtml::closeTag('fieldset');
-?>
\ No newline at end of file
diff --git a/application/views/participants/update.php b/application/views/participants/update.php
new file mode 100644
index 00000000000..9adda9bfcf7
--- /dev/null
+++ b/application/views/participants/update.php
@@ -0,0 +1,31 @@
+
+
+beginWidget(TbActiveForm::class, [
+ 'enableAjaxValidation' => false,
+ 'enableClientValidation' => true,
+ 'layout' => TbHtml::FORM_LAYOUT_VERTICAL,
+ 'method' => 'put',
+ 'htmlOptions' => [
+ 'validateOnSubmit' => true
+ ]
+]);
+
+echo $form->textFieldControlGroup($participant, 'firstname');
+echo $form->textFieldControlGroup($participant, 'lastname');
+echo $form->emailFieldControlGroup($participant, 'email');
+echo $form->dropDownListControlGroup($participant, 'language', Html::listData(getLanguageData(), 'code', 'description'), [
+ 'empty' => gT('Choose language')
+]);
+echo $form->checkBoxControlGroup($participant, 'blacklisted', ['uncheckValue' => 'N', 'value' => 'Y']);
+
+echo TbHtml::openTag('div', ['style' => 'overflow: auto;']);
+echo TbHtml::submitButton(gT('Save participant'), [
+ 'color' => 'primary',
+ 'class' => 'pull-right'
+]);
+echo TbHtml::closeTag('div');
+$this->endWidget();
+?>
+
\ No newline at end of file
diff --git a/application/views/responses/export.php b/application/views/responses/export.php
new file mode 100644
index 00000000000..49afae503fd
--- /dev/null
+++ b/application/views/responses/export.php
@@ -0,0 +1,63 @@
+
+
+
+ beginWidget(TbActiveForm::class, [
+ 'layout' => TbHtml::FORM_LAYOUT_VERTICAL,
+ 'method' => 'post',
+ 'enableClientValidation' => true,
+
+ 'htmlOptions' => [
+ 'validateOnSubmit' => true
+ ]
+ ]);
+
+ echo $form->radioButtonListControlGroup($options, 'type', $options->typeOptions);
+
+
+
+
+ echo $form->radioButtonListControlGroup($options, 'answerFormat',$options->answerFormatOptions);
+
+ echo $form->textFieldControlGroup($options, 'nValue');
+ echo $form->textFieldControlGroup($options, 'yValue');
+ ?>
+
+ numberFieldControlGroup($options, 'offset');
+ echo $form->numberFieldControlGroup($options, 'limit');
+ echo $form->dropDownListControlGroup($options, 'responseCompletionState', $options->responseCompletionStateOptions);
+ echo $form->radioButtonListControlGroup($options, 'headingFormat', $options->headingFormatOptions);
+ echo $form->checkBoxControlGroup($options, 'headerSpacesToUnderscores');
+ ?>
+
+
+
+ listBoxControlGroup($options, 'selectedColumns', $options->selectedColumnOptions, [
+ 'multiple' => true
+ ]);
+
+ ?>
+
+
+
+ 'pull-right btn-group']);
+ echo TbHtml::submitButton(gT('Export'), [
+ 'color' => 'primary'
+ ]);
+ echo TbHtml::closeTag('div');
+
+ $this->endWidget();
+
+ ?>
+
+
+
diff --git a/application/views/responses/index.php b/application/views/responses/index.php
index 0ceca082ad6..d0cff1098a7 100644
--- a/application/views/responses/index.php
+++ b/application/views/responses/index.php
@@ -23,7 +23,7 @@
}
], [
'header' => gT("Series"),
- 'visible' => $this->survey->use_series,
+ 'visible' => $survey->use_series,
'class' => TbButtonColumn::class,
'template' => "{appendNew}{appendCopy}",
'buttons' => [
diff --git a/composer.json b/composer.json
index f1742121522..e4a9734a56f 100644
--- a/composer.json
+++ b/composer.json
@@ -28,7 +28,8 @@
"bower-asset/papaparse": "4.1",
"zendframework/zend-diactoros": "^1.0@dev",
"bower-asset/ajaxq": "^0.0.3@dev",
- "bower-asset/jquery": "2.*"
+ "bower-asset/jquery": "2.*",
+ "mk-j/php_xlsxwriter": "0.*"
},
"require-dev" : {
diff --git a/composer.lock b/composer.lock
index 13fdd3ff8bf..068476034f6 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
- "hash": "da2dce7fa491553e62694941b2dc0713",
+ "hash": "bb0e65a805cd84ae1d73e9e7c14bb52d",
"packages": [
{
"name": "2amigos/yiiwheels",
@@ -986,6 +986,44 @@
],
"time": "2013-04-12 10:33:44"
},
+ {
+ "name": "mk-j/php_xlsxwriter",
+ "version": "0.21",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/mk-j/PHP_XLSXWriter.git",
+ "reference": "930a0f37914da6d1efe5a9b19d52e417c6952b68"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/mk-j/PHP_XLSXWriter/zipball/930a0f37914da6d1efe5a9b19d52e417c6952b68",
+ "reference": "930a0f37914da6d1efe5a9b19d52e417c6952b68",
+ "shasum": ""
+ },
+ "require-dev": {
+ "phpunit/phpunit": "4.3.*"
+ },
+ "type": "project",
+ "autoload": {
+ "classmap": [
+ "xlsxwriter.class.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "PHP Library to write XLSX files",
+ "homepage": "https://github.com/mk-j/PHP_XLSXWriter",
+ "keywords": [
+ "excel",
+ "library",
+ "php",
+ "xls",
+ "xlsx"
+ ],
+ "time": "2014-11-18 20:44:25"
+ },
{
"name": "phpmailer/phpmailer",
"version": "dev-master",
@@ -1407,7 +1445,7 @@
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/yiisoft/yii/zipball/6c02c4e68c59c4fb835acd4be1a5413a7cf4c5aa",
+ "url": "https://api.github.com/repos/yiisoft/yii/zipball/eda86c729658b0d2b652b0a261899507af3d9159",
"reference": "34c57c359ad5f79a8ae573367fe7d426521d0d16",
"shasum": ""
},
@@ -1497,7 +1535,7 @@
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/zendframework/zend-diactoros/zipball/4da4b5b28b334f8166cdd35223f26390bab5a398",
+ "url": "https://api.github.com/repos/zendframework/zend-diactoros/zipball/6cb6fad598a125309a317df7823e5f0e7d4c39ca",
"reference": "61a1f9b4e8b1d8cdc8ea4e8acfb0bf533d2e05ed",
"shasum": ""
},