1)
- return "";
- return "er";
- },
- rangeSeparator: " au ",
- weekAbbreviation: "Sem",
- scrollTitle: "Défiler pour augmenter la valeur",
- toggleTitle: "Cliquer pour basculer",
- time_24hr: true
- };
- fp.l10ns.fr = French;
- var fr = fp.l10ns;
-
- exports.French = French;
- exports.default = fr;
-
- Object.defineProperty(exports, '__esModule', { value: true });
-
-}));
\ No newline at end of file
diff --git a/core/vendor/flatpickr/l10n/it.js b/core/vendor/flatpickr/l10n/it.js
deleted file mode 100644
index 47e2075a..00000000
--- a/core/vendor/flatpickr/l10n/it.js
+++ /dev/null
@@ -1,58 +0,0 @@
-var fp = typeof window !== "undefined" && window.flatpickr !== undefined
- ? window.flatpickr
- : {
- l10ns: {},
- };
-export var Italian = {
- weekdays: {
- shorthand: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
- longhand: [
- "Domenica",
- "Lunedì",
- "Martedì",
- "Mercoledì",
- "Giovedì",
- "Venerdì",
- "Sabato",
- ],
- },
- months: {
- shorthand: [
- "Gen",
- "Feb",
- "Mar",
- "Apr",
- "Mag",
- "Giu",
- "Lug",
- "Ago",
- "Set",
- "Ott",
- "Nov",
- "Dic",
- ],
- longhand: [
- "Gennaio",
- "Febbraio",
- "Marzo",
- "Aprile",
- "Maggio",
- "Giugno",
- "Luglio",
- "Agosto",
- "Settembre",
- "Ottobre",
- "Novembre",
- "Dicembre",
- ],
- },
- firstDayOfWeek: 1,
- ordinal: function () { return "°"; },
- rangeSeparator: " al ",
- weekAbbreviation: "Se",
- scrollTitle: "Scrolla per aumentare",
- toggleTitle: "Clicca per cambiare",
- time_24hr: true,
-};
-fp.l10ns.it = Italian;
-export default fp.l10ns;
\ No newline at end of file
diff --git a/core/vendor/flatpickr/l10n/pt.js b/core/vendor/flatpickr/l10n/pt.js
deleted file mode 100644
index a60ce60d..00000000
--- a/core/vendor/flatpickr/l10n/pt.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var fp = typeof window !== "undefined" && window.flatpickr !== undefined
- ? window.flatpickr
- : {
- l10ns: {},
- };
-export var Portuguese = {
- weekdays: {
- shorthand: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
- longhand: [
- "Domingo",
- "Segunda-feira",
- "Terça-feira",
- "Quarta-feira",
- "Quinta-feira",
- "Sexta-feira",
- "Sábado",
- ],
- },
- months: {
- shorthand: [
- "Jan",
- "Fev",
- "Mar",
- "Abr",
- "Mai",
- "Jun",
- "Jul",
- "Ago",
- "Set",
- "Out",
- "Nov",
- "Dez",
- ],
- longhand: [
- "Janeiro",
- "Fevereiro",
- "Março",
- "Abril",
- "Maio",
- "Junho",
- "Julho",
- "Agosto",
- "Setembro",
- "Outubro",
- "Novembro",
- "Dezembro",
- ],
- },
- rangeSeparator: " até ",
- time_24hr: true,
-};
-fp.l10ns.pt = Portuguese;
-export default fp.l10ns;
\ No newline at end of file
diff --git a/module/blog/view/add/add.php b/module/blog/view/add/add.php
index ee1c7991..793001a2 100755
--- a/module/blog/view/add/add.php
+++ b/module/blog/view/add/add.php
@@ -89,6 +89,7 @@
'L\'article n\'est visible qu\'après la date de publication prévue.',
'label' => 'Date de publication',
+ 'type' => 'datetime-local',
'value' => time()
]); ?>
diff --git a/module/blog/view/edit/edit.php b/module/blog/view/edit/edit.php
index a5ad5c16..3a7d7a5e 100755
--- a/module/blog/view/edit/edit.php
+++ b/module/blog/view/edit/edit.php
@@ -94,6 +94,7 @@
'L\'article n\'est visible qu\'après la date de publication prévue.',
+ 'type' => 'datetime-local',
'label' => 'Publication',
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'publishedOn'])
]); ?>
diff --git a/module/form/view/index/index.js.php b/module/form/view/index/index.js.php
index 091cec09..f8e59823 100644
--- a/module/form/view/index/index.js.php
+++ b/module/form/view/index/index.js.php
@@ -12,9 +12,10 @@
/**
* Paramétrage du format de date
- */
+
$(function() {
$(".datepicker").flatpickr({
enableTime: false,
});
});
+ */
\ No newline at end of file
diff --git a/module/form/view/index/index.php b/module/form/view/index/index.php
index 96a7d163..5841ec46 100644
--- a/module/form/view/index/index.php
+++ b/module/form/view/index/index.php
@@ -35,6 +35,7 @@
'formInput_' . $index,
'label' => $input['name'],
+ 'type' => 'date',
'vendor' => 'flatpickr'
]); ?>
diff --git a/module/news/view/add/add.php b/module/news/view/add/add.php
index 3d933bfe..64b234f9 100644
--- a/module/news/view/add/add.php
+++ b/module/news/view/add/add.php
@@ -51,6 +51,7 @@
'La news est consultable à partir du moment ou la date de publication est passée.',
'label' => 'Date de publication',
+ 'type' => 'datetime-local',
'value' => time()
]); ?>
@@ -58,6 +59,7 @@
'La news est consultable Jusqu\'à cette date si elle est spécifiée. Pour annuler la date de dépublication, sélectionnez une date antérieure à la publication.',
'label' => 'Date de dépublication',
+ 'type' => 'datetime-local',
'value' => $this->getData(['module', $this->getUrl(0),'posts', $this->getUrl(2), 'publishedOff'])
]); ?>
diff --git a/module/news/view/edit/edit.php b/module/news/view/edit/edit.php
index 68c05cc7..13caeddb 100644
--- a/module/news/view/edit/edit.php
+++ b/module/news/view/edit/edit.php
@@ -53,6 +53,7 @@
'La news est consultable à partir du moment ou la date de publication est passée.',
'label' => 'Date de publication',
+ 'type' => 'datetime-local',
'value' => $this->getData(['module', $this->getUrl(0),'posts', $this->getUrl(2), 'publishedOn'])
]); ?>
@@ -60,6 +61,7 @@
'La news est consultable Jusqu\'à cette date si elle est spécifiée. Pour annuler la date de dépublication, sélectionnez une date antérieure à la publication.',
'label' => 'Date de dépublication',
+ 'type' => 'datetime-local',
'value' => $this->getData(['module', $this->getUrl(0),'posts', $this->getUrl(2), 'publishedOff'])
]); ?>