]> _ Git - fluidbook-v3.git/commitdiff
wip #2193 @1
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 30 Oct 2018 16:18:13 +0000 (16:18 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 30 Oct 2018 16:18:13 +0000 (16:18 +0000)
framework/application/controllers/AjaxController.php
framework/application/forms/RequestQuote.php
less/315-quote.less

index fb63dd1b99a07232a413e43dfa1e0d886ab5eaa5..63651f85a812273339246032b1eab28f33d79a0c 100644 (file)
@@ -33,7 +33,6 @@ class AjaxController extends CubeIT_Controller_AjaxController {
                 $this->_datas->addReplace('#' . $formID, '<div id="confirmationQuote">' . $okmessage . '</div>');
             }
 
-
                        $this->_datas->addGAEvent('form', 'sent', 'quote');
                } else {
                        $this->_datas->refreshForm($form); // Respond with validation errors
index 2bc7ffc78b0d55fe56c16c7365f4e57a23481b84..0f640a272c82fc17b01c14ba8504777f0c4f5fb5 100644 (file)
@@ -1,8 +1,10 @@
 <?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');
@@ -45,6 +47,11 @@ class Fluidbook_Form_RequestQuote extends CubeIT_Form {
                $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);
@@ -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);
 
index 0e0ba2f39eeffa073be6222b01117d7b64e63e71..92abc3148255457f00240fa52a4e3c5b6cd53b00 100644 (file)
                display: none;
        }
 
+       #wrap-fax {
+               display: none;
+               width: 0;
+               height: 0;
+       }
+
        #submit-element {
                margin: 0px;
 
                        .font-thinning();
                        color: #fff;
                        font-size: 14px;
-                       margin-top:14px;
+                       margin-top: 14px;
 
                        &.has-coupon {
                                position: relative;