From 76dc4805a6809fc27dbf5d75833bb44d6ee8081d Mon Sep 17 00:00:00 2001 From: Thomas de Jesus Date: Tue, 27 Jun 2017 10:31:31 -0500 Subject: [PATCH] Update Forms.php changes to the same datetimepicker that blog uses. --- mod/signup/class/Forms.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/mod/signup/class/Forms.php b/mod/signup/class/Forms.php index 922179580..cd81c4552 100644 --- a/mod/signup/class/Forms.php +++ b/mod/signup/class/Forms.php @@ -250,6 +250,8 @@ public function editSlots() public function editSheet() { + javascript('ckeditor'); + javascript('datetimepicker', null, false, true, true); $form = new PHPWS_Form('signup_sheet'); $sheet = & $this->signup->sheet; @@ -266,12 +268,15 @@ public function editSheet() } $form->addText('title', $sheet->title); + $form->setClass('title', 'form-control'); $form->setLabel('title', 'Title'); - + $form->addTextArea('description', $sheet->description); + $form->setClass('description', 'ckeditor form-control'); $form->setLabel('description', 'Description'); $form->addText('contact_email', $sheet->contact_email); + $form->setClass('contact_email', 'form-control'); $form->setLabel('contact_email', 'Contact email'); $form->addCheck('multiple', 1); @@ -297,17 +302,17 @@ public function editSheet() $form->setLabel('extra3', 'Extra information 3'); $form->addText('end_time', $sheet->getEndTime()); - $form->setClass('end_time', 'datepicker'); + $form->setClass('end_time', 'datetimepicker'); $form->setLabel('end_time', 'Close signup'); $js_vars['type'] = 'text_clock'; $js_vars['form_name'] = 'signup_sheet'; - $js_vars['date_name'] = 'start_time'; - $form->addTplTag('ST_JS', javascript('js_calendar', $js_vars)); +// $js_vars['date_name'] = 'start_time'; +// $form->addTplTag('ST_JS', javascript('js_calendar', $js_vars)); - $js_vars['date_name'] = 'end_time'; - $form->addTplTag('ET_JS', javascript('js_calendar', $js_vars)); +// $js_vars['date_name'] = 'end_time'; +// $form->addTplTag('ET_JS', javascript('js_calendar', $js_vars)); $tpl = $form->getTemplate();