From 8af2b3446235e6f1b231970c96c85ec784c2b169 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 30 Oct 2018 16:18:13 +0000 Subject: [PATCH] wip #2193 @1 --- .../application/controllers/AjaxController.php | 1 - framework/application/forms/RequestQuote.php | 14 +++++++++++--- less/315-quote.less | 8 +++++++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/framework/application/controllers/AjaxController.php b/framework/application/controllers/AjaxController.php index fb63dd1..63651f8 100644 --- a/framework/application/controllers/AjaxController.php +++ b/framework/application/controllers/AjaxController.php @@ -33,7 +33,6 @@ class AjaxController extends CubeIT_Controller_AjaxController { $this->_datas->addReplace('#' . $formID, '
' . $okmessage . '
'); } - $this->_datas->addGAEvent('form', 'sent', 'quote'); } else { $this->_datas->refreshForm($form); // Respond with validation errors diff --git a/framework/application/forms/RequestQuote.php b/framework/application/forms/RequestQuote.php index 2bc7ffc..0f640a2 100644 --- a/framework/application/forms/RequestQuote.php +++ b/framework/application/forms/RequestQuote.php @@ -1,8 +1,10 @@ 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); @@ -85,7 +92,8 @@ class Fluidbook_Form_RequestQuote extends CubeIT_Form { } - public function render(Zend_View_Interface $view = null) { + public function render(Zend_View_Interface $view = null) + { $form = parent::render($view); diff --git a/less/315-quote.less b/less/315-quote.less index 0e0ba2f..92abc31 100644 --- a/less/315-quote.less +++ b/less/315-quote.less @@ -163,6 +163,12 @@ display: none; } + #wrap-fax { + display: none; + width: 0; + height: 0; + } + #submit-element { margin: 0px; @@ -173,7 +179,7 @@ .font-thinning(); color: #fff; font-size: 14px; - margin-top:14px; + margin-top: 14px; &.has-coupon { position: relative; -- 2.39.5