summaryrefslogtreecommitdiff
path: root/fai_gestion/src/View/AppView.php
diff options
context:
space:
mode:
Diffstat (limited to 'fai_gestion/src/View/AppView.php')
-rw-r--r--fai_gestion/src/View/AppView.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/fai_gestion/src/View/AppView.php b/fai_gestion/src/View/AppView.php
index 7b92ebf..a1baf19 100644
--- a/fai_gestion/src/View/AppView.php
+++ b/fai_gestion/src/View/AppView.php
@@ -1,5 +1,26 @@
<?php
/**
+ * Copyright 2016-2018 Ludovic Pouzenc <ludovic@pouzenc.fr>
+ * Copyright 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+ *
+ * This file is part of FAI Gestion forked from CHD Gestion.
+ *
+ * FAI Gestion is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * FAI Gestion is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FAI Gestion. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Derived work from CakePHP(tm) :
+**/
+/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
@@ -36,5 +57,9 @@ class AppView extends View
*/
public function initialize()
{
+ parent::initialize();
+ if ($this->request->action === 'add' || $this->request->action === 'edit') {
+ $this->loadHelper('Form', ['templates'=> ['dateWidget' => '{{day}}{{month}}{{year}}']]);
+ }
}
}