%= form_with(model: entry, local: true) do |form| %>
<% if entry.errors.any? %>
<%= pluralize(entry.errors.count, "Fehler") %> verhinderten das Speichern:
<% entry.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= form.label :date, 'Datum', class: 'form-label' %>
<%= form.text_field :date, class: 'form-control flatpickr', data: { enable_time: false } %>
<%= form.label :hours, 'Stunden', class: 'form-label' %>
<%= form.number_field :hours, class: 'form-control', min: 0 %>
<%= form.label :minutes, 'Minuten', class: 'form-label' %>
<%= form.number_field :minutes, class: 'form-control', min: 0, max: 59 %>
<%= form.submit 'Speichern', class: 'btn btn-primary' %>
<% end %>