1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
% my $filter_opts = $self->barplot_filters;
<div class="row">
<div class="input-field col s4">
<label class="active">Linie</label>
%= select_field filter_line => $filter_opts->{lines}, class => 'browser-default'
</div>
<div class="input-field col s4">
<label class="active">Zugtyp</label>
%= select_field filter_train_type => $filter_opts->{train_types}, class => 'browser-default'
</div>
<div class="input-field col s4">
<label>Zugnummer</label>
%= text_field 'filter_train_no', class => 'train_no'
</div>
</div>
<div class="row">
<div class="input-field col s6">
<label class="active">Bahnhof</label>
%= select_field filter_station => $filter_opts->{stations}, class => 'browser-default'
</div>
<div class="input-field col s6">
<label class="active">Zielbahnhof</label>
%= select_field filter_destination => $filter_opts->{destinations}, class => 'browser-default'
</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']], class => 'browser-default'
</div>
</div>
<div class="row">
<div class="input-field col s3">
<label>Verspätung Min</label>
%= text_field 'filter_delay_min', class => 'delay', placeholder => '-∞'
</div>
<div class="input-field col s3">
<label>Verspätung Max</label>
%= text_field 'filter_delay_max', class => 'delay', placeholder => '+∞'
</div>
<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>
<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>
|