pique/templates/documents/list_documents.html

46 lines
1.6 KiB
HTML
Raw Normal View History

2024-05-09 16:19:50 +00:00
<!DOCTYPE html>
<html lang="en" class="h-full bg-white">
{% include "head.html" %}
<body class="h-full">
<div class="h-full">
{% set current_page = "documents" %}
{% include "components/sidebar.html" %}
<main class="pl-72 bg-gray-50 h-full">
<div class="navbar bg-accent text-accent-content">
<div class="navbar-start">
<a class="btn" href="/documents/new">New Document</a>
</div>
<div class="navbar-end">
<div class="btn">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z" />
</svg>
</div>
</div>
</div>
<div class="px-8 py-8 flex flex-col gap-y-4">
{% for document in documents %}
<div class="card w-96 bg-base-100 shadow-md border-2 border-solid">
<div class="card-body">
<h2 class="card-title">{{ document.name }}</h2>
<div class="card-actions justify-end">
2024-05-17 02:30:38 +00:00
<a href="/documents/edit/{{ document.id }}" class="btn btn-primary">Open</a>
2024-05-14 20:19:37 +00:00
2024-05-09 16:19:50 +00:00
</div>
</div>
</div>
{% endfor %}
</div>
2024-05-17 02:30:38 +00:00
<div id="editor" class="prose bg-white"></div>
2024-05-09 16:19:50 +00:00
</main>
<script type="text/javascript" src="/static/main.js"></script>
</body>
</html>