home · contact · privacy
Also highlight errors and warned-about Bookings in "raw" view.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 22 Jan 2025 12:08:24 +0000 (13:08 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 22 Jan 2025 12:08:24 +0000 (13:08 +0100)
templates/_macros.tmpl
templates/raw.tmpl

index 2989bd6afe021d50707f43bbe51088dfe03e28a6..cabb83cce988ef2c5de783330777dcb0c687f6d2 100644 (file)
@@ -22,9 +22,9 @@ td.curr { text-align: center; }
   {% endif %}
   {% if raw %}
     {% if dat_line.is_intro %}
-      <td><a href="/booking/{{dat_line.booking_id}}"/>{{dat_line.raw_nbsp}}</a></td>
+      <td {% if dat_line.error %}class="invalid"{% endif %}><a href="/booking/{{dat_line.booking_id}}"/>{{dat_line.raw_nbsp}}</a></td>
     {% else %}
-      <td>{{dat_line.raw_nbsp}}</td>
+      <td {% if dat_line.error %}class="invalid"{% endif %}>{{dat_line.raw_nbsp}}</td>
     {% endif %}
   {% else %}
     {% if dat_line.is_intro %}
index 6851d939a93bb1919d7d9575db910be58cc8f946..fd3c0b43e2b145a01e7152271e6ceae18eedc382 100644 (file)
@@ -2,6 +2,8 @@
 
 {% block css %}
 table { font-family: monospace; }
+tr.warning td { background-color: #ff8888; }
+td.invalid, tr.warning td.invalid { background-color: #ff0000; }
 {% endblock %}
 
 {% block content %}