summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-07-08 19:25:11 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-07-08 19:25:11 +0200
commit94e244305d5bdaef5254ce1079bb3fe3dfbcc75f (patch)
tree04167f8f46d95b714410f840923d0a7478ec395a
parentfa3a7198ada74fe7c0d9e0a8d486507cceb7ad11 (diff)
checkboxes
-rw-r--r--public/static/default.css4
-rw-r--r--templates/layouts/default.html.ep30
2 files changed, 19 insertions, 15 deletions
diff --git a/public/static/default.css b/public/static/default.css
index bc78954..498dc00 100644
--- a/public/static/default.css
+++ b/public/static/default.css
@@ -509,6 +509,10 @@ input, select {
min-height: 1.8em;
}
+input[type="checkbox"] {
+ width: 1.5em;
+}
+
div.notes {
margin-top: 2em;
}
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index f4222bb..8e0dca2 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -100,18 +100,18 @@
</div>
<div class="field">
<div class="desc">
- Nur Verspätungen &gt;5 Min. anzeigen
- </div>
- <div>
- %= check_box 'hidelowdelay' => 1
+ %= check_box 'hidelowdelay' => 1, id => 'id_hidelowdelay'
+ <label for="id_hidelowdelay">
+ Nur Verspätungen &gt;5 Min. anzeigen
+ </label>
</div>
</div>
<div class="field">
<div class="desc">
- Formular verstecken (für Infoscreens)
- </div>
- <div>
- %= check_box 'hide_opts' => 1
+ %= check_box 'hide_opts' => 1, id => 'id_hide_opts'
+ <label for="id_hide_opts">
+ Formular verstecken (für Infoscreens)
+ </label>
</div>
</div>
<div class="break"></div>
@@ -126,18 +126,18 @@
</div>
<div class="field">
<div class="desc">
- Erwartete Zeiten statt Fahrplandaten
- </div>
- <div>
- %= check_box 'show_realtime' => 1
+ %= check_box 'show_realtime' => 1, id => 'id_show_realtime'
+ <label for="id_show_realtime">
+ Erwartete Zeiten statt Fahrplandaten
+ </label>
</div>
</div>
<div class="field">
<div class="desc">
+ %= check_box 'recursive' => 1, id => 'id_recursive'
+ <label for="id_recursive">
Betriebliche Bahnhofstrennungen ignorieren (z.B. "Hbf (Fern+Regio)" vs. "Hbf (S)")
- </div>
- <div>
- %= check_box 'recursive' => 1
+ </label>
</div>
</div>
<div class="field">