blob: 7aa329e7ef112c0ef622aba7a6a2e9c3b8898e22 (
plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
<div>
% if (not defined param('want_msg')) {
% param(want_msg => 0);
% }
%= form_for bar => begin
%= radio_button 'want_msg' => 0
Allgemeiner Bargraph:
% my %yargs = %{$self->barplot_args->{y}};
% my @yarg_keys = sort keys %yargs;
%= select_field ysource => [map {[$yargs{$_}->{desc}, $_]} @yarg_keys]
<br/>
%= radio_button 'want_msg' => 1
Meldungs-Bargraph:
% %yargs = %{$self->barplot_args->{msg}};
% @yarg_keys = sort keys %yargs;
%= select_field msgnum => [map {[$yargs{$_}->{desc}, $_]} @yarg_keys]
<br/>
aufgeteilt nach
% my %xargs = %{$self->barplot_args->{x}};
% my @xarg_keys = sort keys %xargs;
%= select_field xsource => [map {[$xargs{$_}->{desc}, $_]} @xarg_keys]
mit
Abmessungen
%= text_field 'width' => 960, class => 'dimension'
x
%= text_field 'height' => 500, class => 'dimension'
Pixel.
%= submit_button 'Go'
<br/>
% my $filter_opts = $self->barplot_filters;
Optionale Einschränkungen:
<div class="field">
<div class="desc">
Linie:
</div>
<div>
%= select_field filter_line => $filter_opts->{lines}
</div>
</div>
<div class="field">
<div class="desc">
Zugtyp:
</div>
<div>
%= select_field filter_train_type => $filter_opts->{train_types}
</div>
</div>
<div class="field">
<div class="desc">
Bahnhof:
</div>
<div>
%= select_field filter_station => $filter_opts->{stations}
</div>
</div>
<div class="field">
<div class="desc">
Zielbahnhof:
</div>
<div>
%= select_field filter_destination => $filter_opts->{destinations}
</div>
</div>
<div class="field">
<div class="desc">
Verspätung zwischen
</div>
<div>
%= text_field 'filter_delay_min', class => 'delay', placeholder => '-∞'
und
%= text_field 'filter_delay_max', class => 'delay', placeholder => '+∞'
Minuten (inklusive).
%= submit_button 'Go'
</div>
</div>
% end
<div>
|