Esempio n. 1
0
 function __construct($id = 'resetpasswordform', $method = 'post', $attributes = null, $trackSubmit = false)
 {
     parent::__construct($id, $method, $attributes, $trackSubmit);
 }
	function __construct( $id = 'generalsetupform', $method = 'post', $attributes = null, $trackSubmit = false)
	{
		parent::__construct($id,  $method, $attributes = array('autocomplete' => 'off'), $trackSubmit);
	}
Esempio n. 3
0
 /**
  * Add form to view
  *
  * @param Piwik_QuickForm2 $form
  */
 public function addForm($form)
 {
     if ($form instanceof Piwik_QuickForm2) {
         static $registered = false;
         if (!$registered) {
             HTML_QuickForm2_Renderer::register('smarty', 'HTML_QuickForm2_Renderer_Smarty');
             $registered = true;
         }
         // Create the renderer object
         $renderer = HTML_QuickForm2_Renderer::factory('smarty');
         $renderer->setOption('group_errors', true);
         // build the HTML for the form
         $form->render($renderer);
         // assign array with form data
         $this->smarty->assign('form_data', $renderer->toArray());
         $this->smarty->assign('element_list', $form->getElementList());
     }
 }
Esempio n. 4
0
 /**
  * Add form to view
  *
  * @param Piwik_QuickForm2 $form
  */
 public function addForm($form)
 {
     if ($form instanceof Piwik_QuickForm2) {
         // assign array with form data
         $this->smarty->assign('form_data', $form->getFormData());
         $this->smarty->assign('element_list', $form->getElementList());
     }
 }