Improved CSV export code

This commit is contained in:
Francesco
2023-10-15 11:48:44 +02:00
parent e06422c105
commit 4e4a078952
5 changed files with 123 additions and 72 deletions

View File

@@ -31,6 +31,17 @@
</label>
</div>
</div>
<div th:each="field : ${schema.getComputedColumnNames()}">
<div class="form-check">
<input class="form-check-input" type="checkbox"
th:value="${field}" th:id="|__check_${field}|"
th:name="fields[]"
checked>
<label class="form-check-label" th:for="|__check_${field}|">
[[ ${field} ]]
</label>
</div>
</div>
<div th:if="${!activeFilters.isEmpty()}">
<h5 class="fw-bold mt-3 mb-0">Active filters</h5>
<p class="text-muted">Remove them from the right sidebar.</p>
@@ -140,8 +151,8 @@
<span title="Database table name" class="ms-3 label label-primary label-gray font-monospace">
[[ ${schema.getTableName()} ]]
</span>
<button type="button" class="btn p-0 m-0 ms-3" data-bs-toggle="modal" data-bs-target="#csvExportModal">
<i class="bi bi-file-earmark-spreadsheet" style="font-size: 1.5rem;"></i>
<button title="Open export data window" type="button" class="btn" data-bs-toggle="modal" data-bs-target="#csvExportModal">
<i class="bi bi-file-earmark-spreadsheet export-icon" style="font-size: 1.5rem;"></i>
</button>
</h3>