table_preview.html 688 Bytes
Newer Older
Pierre Dittgen's avatar
Pierre Dittgen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<p class="text">
    Affichage de {{ preview.rows_nb }} lignes sur {{ preview.total_rows_nb }} au total
</p>
<div class="table-responsive">
    <table class="table table-striped table-bordered table-sm table-hover">
        <thead class="thead-light">
            <tr>
                {% for col in preview.header %}
                <th scope="col">{{ col }}</th>
                {% endfor %}
            </tr>
        </thead>
        <tbody>
            {% for row in preview.data_rows %}
            <tr>
                {% for val in row %}
                <td>{{ val }}</td>
                {% endfor %}
            </tr>
            {% endfor %}
        </tbody>
    </table>
</div>