summaryrefslogtreecommitdiff
path: root/templates/barform.html.ep
blob: 6b23fe2230d208e708dedd429591b059ccb5786a (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
<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 => [map {[$_, $_]} @{$filter_opts->{lines}} ]
  </div>
</div>
<div class="field">
  <div class="desc">
    Zugtyp:
  </div>
  <div>
    %= select_field filter_train_type => [map {[$_, $_]} @{$filter_opts->{train_types}} ]
  </div>
</div>
<div class="field">
  <div class="desc">
    Bahnhof:
  </div>
  <div>
    %= select_field filter_station => [map {[$_, $_]} @{$filter_opts->{stations}} ]
  </div>
</div>
<div class="field">
  <div class="desc">
    Zielbahnhof:
  </div>
  <div>
    %= select_field filter_destination => [map {[$_, $_]} @{$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).
  </div>
</div>
% end
<div>