On met le tableau dans un table-container

This commit is contained in:
Tom Hubrecht 2021-04-17 23:56:36 +02:00
parent f7763e2e92
commit 5c7d992dc0
2 changed files with 42 additions and 38 deletions

View file

@ -1,19 +1,21 @@
<table class="table is-striped is-fullwidth">
<thead>
<tr>
{% for o in options %}
<th>{{ o }}</th>
{% endfor %}
</tr>
</thead>
<div class="table-container">
<table class="table is-striped is-fullwidth">
<thead>
<tr>
{% for o in options %}
<th>{{ o }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for ballot in ballots.values %}
<tr>
{% for r in ballot %}
<td class="has-text-centered">{{ r }}</td>
<tbody>
{% for ballot in ballots.values %}
<tr>
{% for r in ballot %}
<td class="has-text-centered">{{ r }}</td>
{% endfor %}
</tr>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</tbody>
</table>
</div>

View file

@ -1,23 +1,25 @@
<table class="table is-striped is-fullwidth">
<thead>
<tr>
{% for o in options %}
<th>{{ o }}</th>
{% endfor %}
</tr>
</thead>
<div class="table-container">
<table class="table is-striped is-fullwidth">
<thead>
<tr>
{% for o in options %}
<th>{{ o }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for ballot in ballots.values %}
<tr>
{% for v in ballot %}
<td class="has-text-centered">
<span class="icon">
<i class="fas fa-{% if v %}check{% else %}times{% endif %}"></i>
</span>
</td>
<tbody>
{% for ballot in ballots.values %}
<tr>
{% for v in ballot %}
<td class="has-text-centered">
<span class="icon">
<i class="fas fa-{% if v %}check{% else %}times{% endif %}"></i>
</span>
</td>
{% endfor %}
</tr>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</tbody>
</table>
</div>