X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FContactController.php;h=aabd9f6630f1c804fa04e35a34bc9a60b013cd6a;hb=1f6105289a49079809c2a4677b561bc82c62db88;hp=03dd4a6b645436290fcf7fbc60c2dbb5c7d9edc6;hpb=9efd079d59d269811abc4c551b2f39ab2e6a05fb;p=syj.git diff --git a/application/controllers/ContactController.php b/application/controllers/ContactController.php index 03dd4a6..aabd9f6 100644 --- a/application/controllers/ContactController.php +++ b/application/controllers/ContactController.php @@ -1,17 +1,15 @@ view->headScript()->appendFile('js/prototype.js'); - $this->view->headScript()->appendFile('js/forms.js'); - $this->view->headScript()->appendFile('js/highlight.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")); } @@ -85,7 +83,7 @@ class ContactController extends Zend_Controller_Action } if (empty($formData)) { - $user = $this->view->loggedUser(); + $user = $this->_helper->SyjSession->user(); if ($user) { $form->contact_email->setValue($user->email) ->setAttrib('readonly', 'true'); @@ -120,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")); } }