summaryrefslogtreecommitdiff
path: root/fai_gestion/src
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-19 00:24:15 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-19 00:24:15 +0200
commit7de45a8e4b595856de2f0af78b13e4d2efc5e716 (patch)
treed050d06066de6aacb94ecbbb8f413da7a24da6a8 /fai_gestion/src
parent9a73d523ebd6035fac8deaa347ce41e4eda13232 (diff)
downloadchd_gestion-7de45a8e4b595856de2f0af78b13e4d2efc5e716.zip
chd_gestion-7de45a8e4b595856de2f0af78b13e4d2efc5e716.tar.gz
chd_gestion-7de45a8e4b595856de2f0af78b13e4d2efc5e716.tar.bz2
Date picker in DD/MM/YYYY order
Diffstat (limited to 'fai_gestion/src')
-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}}']]);
+ }
}
}