adjusted layout

This commit is contained in:
Simon Pirkelmann 2021-08-30 21:03:30 +02:00
parent 8bc0a642a3
commit 8a9a667429

View File

@ -17,7 +17,13 @@
</thead> </thead>
<tbody> <tbody>
{% for t, data in assigned_tokens.items() %} {% for t, data in assigned_tokens.items() %}
<tr> <tr
{% if loop.index % 2 %}
style="background-color: lightgrey"
{% else %}
style="background-color: mintcream"
{% endif %}
>
<td>{{ t }}</td> <td>{{ t }}</td>
{% for field in ['name', 'organization', 'email', 'valid_thru'] %} {% for field in ['name', 'organization', 'email', 'valid_thru'] %}
<td>{{ data[field] if data[field] }}</td> <td>{{ data[field] if data[field] }}</td>
@ -29,8 +35,13 @@
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
{% if inactive_tokens | length > 0 %}
<tr>
<td>Inaktive Tokens:</td>
</tr>
{% endif %}
{% for t, data in inactive_tokens.items() %} {% for t, data in inactive_tokens.items() %}
<tr style="background-color: lightgrey"> <tr style="background-color: sandybrown">
<td>{{ t }}</td> <td>{{ t }}</td>
{% for field in ['name', 'organization', 'email', 'valid_thru'] %} {% for field in ['name', 'organization', 'email', 'valid_thru'] %}
<td>{{ data[field] if data[field] }}</td> <td>{{ data[field] if data[field] }}</td>