X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FContactController.php;h=8ff629ba597b42ce02bc1824842dcd9d50569196;hb=0722c496ca63f30937427e3bf8fbdd5cfee2c83d;hp=e8e2843d35d9d064760407428ee47da4e6eae844;hpb=05ce9238adfa982746bfc6211b240fd24526af09;p=syj.git diff --git a/application/controllers/ContactController.php b/application/controllers/ContactController.php index e8e2843..8ff629b 100644 --- a/application/controllers/ContactController.php +++ b/application/controllers/ContactController.php @@ -1,16 +1,15 @@ view->headScript()->appendFile('js/prototype.js'); - $this->view->headScript()->appendFile('js/utils.js'); - $this->view->headScript()->appendFile('js/contact.js'); - $this->view->headLink()->appendStylesheet('css/generic.css'); - $this->view->headLink()->appendStylesheet('css/contact.css'); + $this->_helper->SyjMedias->addScripts('contact'); + $this->view->headLink()->appendStylesheet('css/generic.css', 'all'); + $this->view->headLink()->appendStylesheet('css/form.css', 'all'); + $this->view->headLink()->appendStylesheet('css/contact.css', 'all'); $this->view->headTitle($this->view->translate("contact form")); } @@ -84,7 +83,7 @@ class ContactController extends Zend_Controller_Action } if (empty($formData)) { - $user = $this->_helper->SyjSession->user(); + $user = $this->_helper->SyjUserManager->current(); if ($user) { $form->contact_email->setValue($user->email) ->setAttrib('readonly', 'true'); @@ -119,7 +118,7 @@ class ContactController extends Zend_Controller_Action protected function _jsLocaleStrings() { $this->view->jslocales = array( - 'notEmptyField' => __("Value is required and can't be empty"), + 'notEmptyField' => __("Value is required"), 'invalidMail' => __("Invalid email")); } }