blob: ee12420d6559cfbca523bbd1a1ec8796466f9b60 (
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
|
Bargraph für allgemeine Metriken wie z.B. Verspätung oder Zugausfälle pro
Bahnhof oder Zeiteinheit. Alle Eingabefelder sind optional.
% if (not defined param('want_msg')) {
% param(want_msg => 0);
% }
%= form_for bar => begin
<input type="hidden" value="0" name="want_msg"/>
<div class="row">
<div class="input-field col s12">
<label class="active">Bartyp</label>
% my %yargs = %{$self->barplot_args->{y}};
% my @yarg_keys = sort keys %yargs;
%= select_field ysource => [map {[$yargs{$_}->{desc}, $_]} @yarg_keys], class => 'browser-default'
</div>
</div>
<div class="row">
<div class="input-field col s4">
<label class="active">aufgeteilt nach</label>
% my %xargs = %{$self->barplot_args->{x}};
% my @xarg_keys = sort keys %xargs;
%= select_field xsource => [map {[$xargs{$_}->{desc}, $_]} @xarg_keys], class => 'browser-default'
</div>
<div class="input-field col s4">
<label>Breite</label>
%= text_field 'width' => 960, class => 'dimension'
</div>
<div class="input-field col s4">
<label>Höhe</label>
%= text_field 'height' => 500, class => 'dimension'
</div>
</div>
%= include 'filterform';
% end
|