'y', 'reportsAccess' => 'y'); protected function _bindListColumns($list) { $list->addColumn('no', 'no') ->addColumn('text', 'name', array('orderBy' => 'name')) ->addColumn('email', 'email', array('orderBy' => 'email')) ->addColumn('files', 'files') ->addColumn('options', 'options'); return $this; } protected function _getNewForm() { $form = parent::_getNewForm(); $form->password->setRequired(); $form->confirmPassword->setRequired(); return $form; } /** * @param Qs_Form $form * * @return $this * @throws Zend_Validate_Exception */ protected function _bindFormFields($form) { parent::_bindFormFields($form); if (App_Admin_Auth::getInstance()->getData('canEditReportsAccess') === 'y') { $form->addElement( 'checkbox', 'lessonsAccess', array( 'label' => 'Lessons Access', 'decoration' => 'simple', ) ); $form->addElement( 'checkbox', 'reportsAccess', array( 'label' => 'Reports Access', 'decoration' => 'simple', ) ); $form->addElement( 'checkbox', 'viewAllReports', array( 'label' => 'View All Schools Reports', 'decoration' => 'simple', ) ); $form->addElement( 'checkbox', 'directorAccess', array( 'label' => 'Director Files Access', 'decoration' => 'simple', ) ); } return $this; } }