From 94932c410290081461eecb2819bc187335452672 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 19 Apr 2020 16:49:31 +0200 Subject: add commute stats. not linked from nav yet. --- templates/commute.html.ep | 89 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 templates/commute.html.ep (limited to 'templates') diff --git a/templates/commute.html.ep b/templates/commute.html.ep new file mode 100644 index 0000000..ef1c7ab --- /dev/null +++ b/templates/commute.html.ep @@ -0,0 +1,89 @@ +

Pendel-Statistiken

+ +
+
+

Diese Daten können zum Beispiel für die Angaben zur Pendlerpauschale + bei der Steuererklärung genutzt werden.

+
+
+ +%= form_for '/history/commute' => begin +
+
+ %= text_field 'year', id => 'year', class => 'validate', pattern => '[0-9][0-9][0-9][0-9]' + +
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+ %= text_field 'station', id => 'station', required => undef, class => 'autocomplete contrast-color-text' + +
+
+
+
+ +
+
+%= end + +

<%= param('year') %>

+
+
+

+ An <%= $total_journeys %> Tagen im Jahr wurde mindestens + eine Zugfahrt von oder zu + % if (param('filter_type') eq 'exact') { + der ausgewählten Station + % } + % else { + den ausgewählten Stationen + % } + eingetragen. +

+ + + + + + + + + % for my $i (0 .. $#{$months}) { + + + + + % } + +
MonatTage mit Fahrten
<%= $months->[$i] %><%= scalar @{$journeys_by_month->{$i+1} // []} %>
+
+
+ +% for my $i (0 .. $#{$months}) { +

<%= $months->[$i] %>

+ %= include '_history_trains', date_format => '%d.%m.', journeys => $journeys_by_month->{$i+1} // [] +% } -- cgit v1.2.3