summaryrefslogtreecommitdiff
path: root/templates/filterform.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-06 14:22:39 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-06 14:22:39 +0200
commitb3de33b95e9cd7449f0a5427236d0a20b55c051e (patch)
tree4af71c032403d7d875e2f04ada79b5779344fef7 /templates/filterform.html.ep
parent8fca7e3bc7d959501c81968e3935ad034dff6dfc (diff)
Squashed commit of the following:
commit 3b3dd6ea92799a95ecaa7c90ede830a62d53ee05 Author: Daniel Friesel <derf@finalrewind.org> Date: Sun Sep 6 14:21:27 2015 +0200 margins commit ae911d4fba68adce63a16bda82f9b06a51a4aa81 Merge: 0625d89 8fca7e3 Author: I <marudor@marudor.de> Date: Sat Sep 5 14:49:12 2015 +0200 Merge branch 'master' of https://github.com/derf/iris-delay-stats # Conflicts: # templates/intro.html.ep commit 0625d894bb5294f3d47cca759010ee969db7a2d1 Author: marudor <marudor@marudor.de> Date: Sat Sep 5 13:51:49 2015 +0200 fancy forms
Diffstat (limited to 'templates/filterform.html.ep')
-rw-r--r--templates/filterform.html.ep83
1 files changed, 33 insertions, 50 deletions
diff --git a/templates/filterform.html.ep b/templates/filterform.html.ep
index 614b36a..44d0ed0 100644
--- a/templates/filterform.html.ep
+++ b/templates/filterform.html.ep
@@ -1,72 +1,55 @@
% my $filter_opts = $self->barplot_filters;
-<div class="field">
- <div class="desc">
- Linie:
- </div>
- <div>
+<div class="row">
+ <div class="input-field col s4">
+ <label class="active">Linie</label>
%= select_field filter_line => $filter_opts->{lines}
</div>
-</div>
-<div class="field">
- <div class="desc">
- Zugtyp:
- </div>
- <div>
+ <div class="input-field col s4">
+ <label class="active">Zugtyp</label>
%= select_field filter_train_type => $filter_opts->{train_types}
</div>
-</div>
-<div class="field">
- <div class="desc">
- Zugnummer:
- </div>
- <div>
+ <div class="input-field col s4">
+ <label>Zugnummer</label>
%= text_field 'filter_train_no', class => 'train_no'
</div>
</div>
-<div class="field">
- <div class="desc">
- Bahnhof:
- </div>
- <div>
+<div class="row">
+ <div class="input-field col s6">
+ <label class="active">Bahnhof</label>
%= select_field filter_station => $filter_opts->{stations}
</div>
-</div>
-<div class="field">
- <div class="desc">
- Zielbahnhof:
- </div>
- <div>
+ <div class="input-field col s6">
+ <label class="active">Zielbahnhof</label>
%= select_field filter_destination => $filter_opts->{destinations}
</div>
</div>
-<div class="field">
- <div class="desc">
- Fahrten:
- </div>
- <div>
+<div class="row">
+ <div class="input-field col s12">
+ <label class="active">Ausfälle</label>
%= select_field filter_cancellation => [['Alle' => q{}], ['Ohne Zugausfälle' => 'no_cancelled'], ['Nur Zugausfälle' => 'only_cancelled']]
</div>
</div>
-<div class="field">
- <div class="desc">
- Verspätung zwischen
- </div>
- <div>
+<div class="row">
+ <div class="input-field col s3">
+ <label>Verspätung Min</label>
%= text_field 'filter_delay_min', class => 'delay', placeholder => '-∞'
- und
+ </div>
+ <div class="input-field col s3">
+ <label>Verspätung Max</label>
%= text_field 'filter_delay_max', class => 'delay', placeholder => '+∞'
- Minuten (inklusive).
</div>
-</div>
-<div class="field">
- <div class="desc">
- Zeitraum von
+ <div class="input-field col s3">
+ <label>Start</label>
+ %= date_field 'filter_date_start', class => 'datepicker'
+ </div>
+ <div class="input-field col s3">
+ <label>Ende</label>
+ %= date_field 'filter_date_stop', class => 'datepicker'
</div>
- <div>
- %= date_field 'filter_date_start', class => 'datetime'
- (inklusive) bis
- %= date_field 'filter_date_stop', class => 'datetime'
- (exklusive)
- %= submit_button 'Go'
+</div>
+<div class="row">
+ <div class="col offset-s5">
+ <button class="btn waves-effect waves-light" type="submit" name="action">Submit<i class="material-icons right">send</i>
+ </button>
</div>
</div>