Add an optional checkbox to contact form in connection with the GPRD

This commit is contained in:
Paweł Klockiewicz
2018-05-27 17:30:12 +02:00
parent 06edcdbb78
commit ccdaeb5125
14 changed files with 165 additions and 80 deletions

View File

@@ -43,7 +43,12 @@ class Site extends SiteModule
private function _insertForm()
{
return $this->draw('form.html');
return $this->draw('form.html', [
'checkbox' => [
'switch' => $this->settings('contact', 'checkbox.switch'),
'content' => $this->settings('contact', 'checkbox.content'),
]
]);
}
private function _initDriver()