$this->_datas->addReplace('#' . $formID, '<div id="confirmationQuote">' . $okmessage . '</div>');
}
-
$this->_datas->addGAEvent('form', 'sent', 'quote');
} else {
$this->_datas->refreshForm($form); // Respond with validation errors
<?php
-class Fluidbook_Form_RequestQuote extends CubeIT_Form {
+class Fluidbook_Form_RequestQuote extends CubeIT_Form
+{
- public function init() {
+ public function init()
+ {
parent::init();
$first_name = new CubeIT_Form_Element_Text('prenom');
$phone->setLabel(__('Téléphone'));
$this->addElement($phone);
+ $fax = new CubeIT_Form_Element_Text('fax');
+ $fax->setLabel(__('Fax'));
+ $fax->setAttrib('autocomplete', 'nope');
+ $this->addElement($fax);
+
$comments = new CubeIT_Form_Element_Textarea('detail');
$comments->setLabel(__('Commentaires sur votre projet'));
$this->addElement($comments);
}
- public function render(Zend_View_Interface $view = null) {
+ public function render(Zend_View_Interface $view = null)
+ {
$form = parent::render($view);