diff --git a/templates/home.julius b/templates/home.julius
deleted file mode 100644
index c62129e2c..000000000
--- a/templates/home.julius
+++ /dev/null
@@ -1,19 +0,0 @@
-document.addEventListener('DOMContentLoaded', function() {
- 'use strict';
-
- var config = {
- enableTime: true,
- altInput: true,
- altFormat: "j. F Y, H:i",
- dateFormat: "Y-m-d H:i",
- time_24hr: true
- };
-
- flatpickr('#datetime-form1 [type="date"]', {
- altFormat: "j. F Y", dateFormat: "Y-m-d", altInput: true
- });
- flatpickr('#datetime-form1 [type="time"]', {
- enableTime: true, noCalendar: true, altFormat: "H:i", dateFormat: "H:i", altInput: true, time_24hr: true
- });
- flatpickr('#datetime-form2 input', config);
-});
diff --git a/templates/standalone/datepicker.hamlet b/templates/standalone/datepicker.hamlet
new file mode 100644
index 000000000..4ec550e09
--- /dev/null
+++ b/templates/standalone/datepicker.hamlet
@@ -0,0 +1 @@
+
diff --git a/templates/standalone/datepicker.julius b/templates/standalone/datepicker.julius
new file mode 100644
index 000000000..f056b5062
--- /dev/null
+++ b/templates/standalone/datepicker.julius
@@ -0,0 +1,36 @@
+document.addEventListener('DOMContentLoaded', function() {
+ "use strict";
+
+ var config = {
+ dtLocal: {
+ enableTime: true,
+ altInput: true,
+ altFormat: "j. F Y, H:i",
+ dateFormat: "Y-m-d H:i",
+ time_24hr: true
+ },
+ d: {
+ altFormat: "j. F Y",
+ dateFormat: "Y-m-d",
+ altInput: true
+ },
+ t: {
+ enableTime: true,
+ noCalendar: true,
+ altFormat: "H:i",
+ dateFormat: "H:i",
+ altInput: true,
+ time_24hr: true
+ }
+ };
+
+ Array.from(document.querySelectorAll('input[type="date"]')).forEach(function(el) {
+ flatpickr(el, config.d);
+ });
+ Array.from(document.querySelectorAll('input[type="time"]')).forEach(function(el) {
+ flatpickr(el, config.t);
+ });
+ Array.from(document.querySelectorAll('input[type="datetime-local"]')).forEach(function(el) {
+ flatpickr(el, config.dtLocal);
+ });
+});
diff --git a/templates/widgets/form.hamlet b/templates/widgets/form.hamlet
index 91c015dd9..fdc9d5fb2 100644
--- a/templates/widgets/form.hamlet
+++ b/templates/widgets/form.hamlet
@@ -6,4 +6,5 @@ $case formLayout
$if not (Blaze.null $ fvLabel view)