aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/templates/pkgs/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/templates/pkgs/index.html')
-rw-r--r--src/main/resources/templates/pkgs/index.html62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/main/resources/templates/pkgs/index.html b/src/main/resources/templates/pkgs/index.html
new file mode 100644
index 0000000..04eb45a
--- /dev/null
+++ b/src/main/resources/templates/pkgs/index.html
@@ -0,0 +1,62 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Builddb</title>
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
+</head>
+<body>
+<nav th:insert="~{/navbar :: navigation}"></nav>
+
+<hr>
+<hr>
+
+<div class="container">
+ <h1 class="text-center my-4">Packages</h1>
+ <a class="btn btn-primary fa fa-add" href="/pkgs/add"></a>
+
+ <hr>
+
+ <table class="table table-bordered table-hover table-striped">
+ <thead>
+ <tr>
+ <th id="0" th:replace="~{pkgs/sorting :: sorting('sequence', 'Seq')}">Seq</th>
+ <th th:replace="~{pkgs/sorting :: sorting('name', 'Name')}">Name</th>
+ <th>Version</th>
+ <th>Configure</th>
+ <th>Build</th>
+ <th>Install</th>
+ <th>Setup</th>
+ <th>Notes</th>
+ <th>Url</th>
+ <th>Action</th>
+ </tr>
+ </thead>
+ <tbody class="table-group-divider">
+ <tr th:each="pkg : ${pkgs}">
+ <td th:id="${pkg.id}" th:text="${pkg.sequence}"></td>
+ <td th:text="${pkg.name}"></td>
+ <td th:text="${pkg.version}"></td>
+ <td th:text="${pkg.configure}"></td>
+ <td th:text="${pkg.build}"></td>
+ <td th:text="${pkg.install}"></td>
+ <td th:text="${pkg.setup}"></td>
+ <td th:text="${pkg.notes}"></td>
+ <td th:text="${pkg.url}"></td>
+ <td style="white-space:nowrap">
+ <a class="btn btn-primary btn-sm fa fa-edit"
+ th:href="@{/pkgs/edit(id=${pkg.id})}"></a>
+ <a class="btn btn-danger btn-sm fa fa-trash"
+ th:href="@{/pkgs/delete(id=${pkg.id})}"
+ onclick="return confirm('Delete?')"></a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+</div>
+
+<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
+</body>
+</html> \ No newline at end of file