summaryrefslogtreecommitdiff
path: root/templates/main.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/main.html.ep')
-rw-r--r--templates/main.html.ep40
1 files changed, 21 insertions, 19 deletions
diff --git a/templates/main.html.ep b/templates/main.html.ep
index 3b065a6..1c7d8e6 100644
--- a/templates/main.html.ep
+++ b/templates/main.html.ep
@@ -127,9 +127,29 @@ guarantee of correctness, completeness or anything else.
% else {
%= text_field 'stop'
% }
- %= submit_button 'Display'
</div>
</div>
+ <div class="field">
+ <div class="desc">Frontend</div>
+ <div>
+ %= select_field frontend => [['LED board (PNG)' => 'png'], ['LED board (HTML)' => 'html'], ['App / Infoscreen' => 'infoscreen'], ['JSON' => 'json']]
+ </div>
+ </div>
+ <div class="field">
+ <div class="desc">Backend</div>
+ <div>
+ % my @efa_backends = map { ["$_ (EFA)" => "efa.$_"] } efa_service_list();
+ % @efa_backends = map { $_->[1] } sort { $a->[0] cmp $b->[0] }
+ % map { [$_->[0], $_] } @efa_backends;
+ % my @hafas_backends = map { ["$_ (HAFAS)" => "hafas.$_"] } hafas_service_list();
+ % @hafas_backends = map { $_->[1] } sort { $a->[0] cmp $b->[0] }
+ % map { [$_->[0], $_] } @hafas_backends;
+ %= select_field backend => [['EFA / VRR' => 'vrr'], ['DB (HAFAS)' => 'db'], ['ASEAG (URA)' => 'aseag'], @efa_backends, @hafas_backends]
+ </div>
+ </div>
+ <div class="field">
+ %= submit_button 'Display'
+ </div>
<div class="break"></div>
<span class="optional">optional:</span>
<div class="field">
@@ -158,24 +178,6 @@ guarantee of correctness, completeness or anything else.
%= text_field 'platform'
</div>
</div>
- <div class="field">
- <div class="desc">frontend</div>
- <div>
- %= select_field frontend => [['LED board (PNG)' => 'png'], ['LED board (HTML)' => 'html'], ['App / Infoscreen' => 'infoscreen'], ['JSON' => 'json']]
- </div>
- </div>
- <div class="field">
- <div class="desc">backend</div>
- <div>
- % my @efa_backends = map { ["$_ (EFA)" => "efa.$_"] } efa_service_list();
- % @efa_backends = map { $_->[1] } sort { $a->[0] cmp $b->[0] }
- % map { [$_->[0], $_] } @efa_backends;
- % my @hafas_backends = map { ["$_ (HAFAS)" => "hafas.$_"] } hafas_service_list();
- % @hafas_backends = map { $_->[1] } sort { $a->[0] cmp $b->[0] }
- % map { [$_->[0], $_] } @hafas_backends;
- %= select_field backend => [['EFA / VRR' => 'vrr'], ['DB (HAFAS)' => 'db'], ['ASEAG (URA)' => 'aseag'], @efa_backends, @hafas_backends]
- </div>
- </div>
</div>
% end