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"> <div class="table-container">
<thead> <table class="table is-striped is-fullwidth">
<tr> <thead>
{% for o in options %} <tr>
<th>{{ o }}</th> {% for o in options %}
{% endfor %} <th>{{ o }}</th>
</tr> {% endfor %}
</thead> </tr>
</thead>
<tbody> <tbody>
{% for ballot in ballots.values %} {% for ballot in ballots.values %}
<tr> <tr>
{% for r in ballot %} {% for r in ballot %}
<td class="has-text-centered">{{ r }}</td> <td class="has-text-centered">{{ r }}</td>
{% endfor %}
</tr>
{% endfor %} {% endfor %}
</tr> </tbody>
{% endfor %} </table>
</tbody> </div>
</table>

View file

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