diff --git a/airlock/templates/file_browser/csv.html b/airlock/templates/file_browser/csv.html index f2593558..020a92a0 100644 --- a/airlock/templates/file_browser/csv.html +++ b/airlock/templates/file_browser/csv.html @@ -1,25 +1,22 @@ {% load airlocktags %} {% as_csv_data contents as csv_data %}
- {% #table %} - {% #table_head class="bg-slate-200" id="csvTable" %} - {% #table_row %} - {% for header in csv_data.headers %} - {% #table_header %}{{ header }}{% /table_header %} - {% endfor %} - {% /table_row %} - {% /table_head %} - - {% #table_body %} - {% for row in csv_data.rows %} - {% #table_row class="even:bg-slate-50" %} - {% for cell in row %} - {% #table_cell %} - {{ cell }} - {% /table_cell %} - {% endfor %} - {% /table_row %} + + + + {% for header in csv_data.headers %} + {% endfor %} - {% /table_body %} - {% /table %} - + + + + {% for row in csv_data.rows %} + + {% for cell in row %} + + {% endfor %} + + {% endfor %} + +
{{ header }}
{{ cell }}
+
diff --git a/airlock/templates/file_browser/index.html b/airlock/templates/file_browser/index.html index ec12387f..a76efb64 100644 --- a/airlock/templates/file_browser/index.html +++ b/airlock/templates/file_browser/index.html @@ -58,6 +58,12 @@ overflow: scroll; } +.datatable thead { + position: sticky; + top: 0; +} + + {% endblock extra_styles %}