<style>
body { background-color: white; font-family: sans-serif; }
tr:nth-child(odd) { background-color: #dcdcdc; }
+tr.warning td { background-color: #ff8888; }
+td.invalid, tr.warning td.invalid { background-color: #ff0000; }
{% block css %}{% endblock %}
</style>
</head>
{% endif %}
{% endif %}
{% if raw %}
+ <td{% if dat_line.error %} class="invalid"{% endif %}>
{% if dat_line.is_intro %}
- <td {% if dat_line.error %}class="invalid"{% endif %}><a href="/booking/{{dat_line.booking_id}}"/>{{dat_line.raw_nbsp}}</a></td>
+ <a href="/booking/{{dat_line.booking_id}}"/>{{dat_line.raw_nbsp}}</a>
{% else %}
- <td {% if dat_line.error %}class="invalid"{% endif %}>{{dat_line.raw_nbsp}}</td>
+ {{dat_line.raw_nbsp}}
{% endif %}
+ </td>
{% else %}
{% if dat_line.is_intro %}
- <td class="code{% if dat_line.error %} invalid{% endif %}" colspan=3><a href="/booking/{{dat_line.booking_id}}">{{dat_line.code}}</a></td>
+ <td{% if dat_line.error %} class="invalid"{% endif %} colspan=3><a href="/booking/{{dat_line.booking_id}}">{{dat_line.code}}</a></td>
{% elif not dat_line.error %}
<td class="amt">{{dat_line.booking_line.amount_short}}</td>
<td class="curr">{{dat_line.booking_line.currency|truncate(4,true,"…")}}</td>
{% endif %}
</tr>
{% if dat_line.error and not raw %}
- <tr class="warning">{% if not single %}<td></td>{% endif %}<td class="invalid" colspan=3>{{dat_line.error}}</td><td></td></tr>
+ <tr class="warning">
+ {% if not single %}
+ <td></td>
+ {% endif %}
+ <td class="invalid" colspan=3>{{dat_line.error}}</td>
+ <td></td>
+ </tr>
{% endif %}
{% endfor %}
</table>