Meine Einträge

<% if notice %>

<%= notice %>

<% end %>
🚗 Fahrtkosten (Kilometergeld)
<% @total_kilometer_costs_by_year.each do |year, sum| %>

<%= year %>: <%= number_to_currency(sum, unit: "€", separator: ",", delimiter: ".", precision: 2) %>

<% end %>

Gesamtzeit: <%= @total_minutes / 60 %> h <%= @total_minutes % 60 %> min


📊 Übersicht je Kombination

<% ["propädeutikum", "fachspezifikum"].each do |typ| %> <% ["Praktikum", "Selbsterfahrung", "Supervision"].each do |art| %> <% remaining = @remaining_minutes_matrix.dig(typ, art) %> <% soll = current_user.required_hours_matrix.dig(typ, art) %> <% weekly = current_user.weekly_target_matrix.dig(typ, art) %> <% ende = @estimated_end_by_typ_art.dig(typ, art) %> <% if remaining.present? || soll.present? || weekly.present? %> <% end %> <% end %> <% end %>
Typ Art Verbleibend Soll (h) Wöchentlich Vorauss. Ende
<%= typ.capitalize %> <%= art %> <%= remaining ? "#{remaining / 60} h #{remaining % 60} min" : "—" %> <%= soll || "—" %> h <%= weekly || "—" %> h/Woche <%= ende.present? ? ende.strftime("%d.%m.%Y") : "—" %>
<%= link_to '➕ Neuer Eintrag', new_entry_path, class: 'btn btn-light mt-3' %>
<% @entries.each do |entry| %> <% end %>
Datum Zeit Typ Art Kilometer Pauschale Aktionen
<%= entry.date.strftime('%d.%m.%Y') %> <%= entry.hours.to_i %>h <%= entry.minutes.to_i %>min <%= entry.praktikums_typ %> <%= entry.entry_art %> <%= entry.distance_km.to_f %> km <%= number_to_currency(entry.kilometer_pauschale, unit: "€", separator: ",", delimiter: ".") %> <%= link_to '✏️ Bearbeiten', edit_entry_path(entry), class: 'btn btn-sm btn-primary' %> <%= link_to '🗑️ Löschen', entry_path(entry), class: 'btn btn-sm btn-danger open-delete-modal' %>