This commit is contained in:
Emanuel Turis
2023-10-20 07:46:32 +03:00
parent ccb0c914e5
commit d1f37d7b0e
12 changed files with 607 additions and 11 deletions

View File

@@ -9,7 +9,21 @@
<script src="/static/htmx.js" type="text/javascript"></script>
</head>
<body>
<p class="text-5xl">Hello, world!</p>
<div class="max-w-screen-md mx-auto mt-8">
<div class="flex justify-between items-center">
{{ template "TotalCount" dict "Count" .Count "SwapOOB" false }}
{{ template "CompletedCount" dict "Count" .CompletedCount "SwapOOB" false }}
</div>
{{ template "Form" }}
<div id="items" class="space-y-2.5 mt-4">
{{ range .Items }}
{{ template "Item" dict "Item" . "SwapOOB" false }}
{{ end }}
</div>
</div>
</body>
</html>
{{ end }}