diff --git a/app/views/entries/_form.html.erb b/app/views/entries/_form.html.erb
index 1a39e14..7ec4310 100644
--- a/app/views/entries/_form.html.erb
+++ b/app/views/entries/_form.html.erb
@@ -13,11 +13,18 @@
+
+
<%= form.label :date, 'Datum', class: 'form-label' %>
- <%= form.text_field :date,
+ <%= form.date_field :date,
class: 'form-control flatpickr',
- data: { enable_time: false, allow_input: true },
- value: (form.object.date || Date.today) %>
+ data: {
+ enable_time: false,
+ altInput: true,
+ altFormat: 'd.m.Y',
+ dateFormat: 'Y-m-d' # Wichtig: Flatpickr braucht `dateFormat`
+ },
+ value: (form.object.date) %>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index eb2e426..7c034c8 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -35,9 +35,9 @@