Gesamtzeit: <%= @total_minutes / 60 %> h <%= @total_minutes % 60 %> min
Fehlend: <%= @remaining_minutes / 60 %> h <%= @remaining_minutes % 60 %> min
Geplante Stunden/Woche: <%= current_user.weekly_target_hours %> h
<% if @estimated_end_date.present? %>Voraussichtliches Ende: <%= @estimated_end_date.strftime("%d.%m.%Y") %>
<% end %> <%= link_to '➕ Neuer Eintrag', new_entry_path, class: 'btn btn-primary' %>| Datum | Stunden | Minuten | Aktionen |
|---|---|---|---|
| <%= entry.date %> | <%= entry.hours %> | <%= entry.minutes %> | <%= link_to '✏️ Bearbeiten', edit_entry_path(entry), class: 'btn btn-sm btn-primary' %> <%= link_to '🗑️ Löschen', entry, method: :delete, data: { confirm: 'Sicher?' }, class: 'btn btn-sm btn-danger' %> |