WIP SQL console: basic prototype working

This commit is contained in:
Francesco
2023-10-21 19:39:21 +02:00
parent 2352bdcdd7
commit 0691d17867
8 changed files with 221 additions and 20 deletions

View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org">
<head></head>
<body>
<tr th:fragment="data_row(row)" class="table-data-row">
<td th:each="field : ${row.getSortedFields()}"
th:classAppend="${field.isBinary() ? 'text-center' : ''}">
<th:block th:replace="~{fragments/generic_data_row :: data_row_field(field=${field}, object=${row})}"></th:block>
</td>
</tr>
<!-- data-row-field fragment -->
<th:block th:fragment="data_row_field(field, object)">
<span th:text="${object.get(field)}"></span>
</th:block>
<!-- end data-row-field fragment -->
</body>
</html>