v8.4.9 : forma date output plain text
This commit is contained in:
parent
7ce2d64240
commit
5a20d0a9f2
@ -182,7 +182,7 @@ class form extends common {
|
|||||||
$filter = helper::FILTER_STRING_LONG;
|
$filter = helper::FILTER_STRING_LONG;
|
||||||
break;
|
break;
|
||||||
case self::TYPE_DATETIME:
|
case self::TYPE_DATETIME:
|
||||||
$filter = helper::FILTER_DATETIME;
|
$filter = helper::FILTER_STRING_SHORT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$filter = helper::FILTER_STRING_SHORT;
|
$filter = helper::FILTER_STRING_SHORT;
|
||||||
|
24
module/form/view/index/index.js.php
Normal file
24
module/form/view/index/index.js.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/**
|
||||||
|
* This file is part of Zwii.
|
||||||
|
*
|
||||||
|
* For full copyright and license information, please see the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*
|
||||||
|
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||||
|
* @copyright Copyright (C) 2008-2018, Frédéric Tempez
|
||||||
|
* @license GNU General Public License, version 3
|
||||||
|
* @link http://zwiicms.com/
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Paramétrage du format de date
|
||||||
|
*/
|
||||||
|
$(function() {
|
||||||
|
$(".datepicker").flatpickr({
|
||||||
|
altInput: true,
|
||||||
|
altFormat: "d/m/Y",
|
||||||
|
enableTime: false,
|
||||||
|
locale: "fr",
|
||||||
|
dateFormat: "d/m/Y"
|
||||||
|
});
|
||||||
|
});
|
@ -31,7 +31,6 @@
|
|||||||
<?php echo template::date('formInput[' . $index . ']', [
|
<?php echo template::date('formInput[' . $index . ']', [
|
||||||
'id' => 'formInput_' . $index,
|
'id' => 'formInput_' . $index,
|
||||||
'label' => $input['name'],
|
'label' => $input['name'],
|
||||||
'value' => time(),
|
|
||||||
'vendor' => 'flatpickr'
|
'vendor' => 'flatpickr'
|
||||||
]); ?>
|
]); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user