summaryrefslogtreecommitdiff
path: root/templates/main.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-10-19 23:03:30 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-10-19 23:03:30 +0200
commit2c0a1f463ce56683ca8394f10eee27cbb8ff47f2 (patch)
treee9484b74af8c7bbc4da3c4cc1d6f5414ae14125c /templates/main.html.ep
parentdb11f698064160c366ef5165b723f297f75cba16 (diff)
move frontend&backend selection in front of submit button
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