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