feat: post creation WIP

This commit is contained in:
Florian Sylvain
2024-05-16 19:30:33 +02:00
parent 29fce9a241
commit 24eefb743b
6 changed files with 182 additions and 11 deletions
@@ -1,20 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Posts</title>
{{.Head}}
<title>GoCMS | Posts</title>
{{.Head}}
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body class="text-dark">
{{.Navbar}}
<div class="container mt-3 text-black-50">
<h1>Posts</h1>
<p>List of your posts</p>
<table class="table table-striped">
<thead>
</thead>
<tbody>
</tbody>
</table>
<h1>Posts</h1>
<p>List of your posts</p>
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Creation Date</th>
<th scope="col">Edition Date</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="4" class="text-center">
<form action="post/create" method="get">
<button class="btn btn-sm btn-link w-100 h-100" type="submit">Create a new post...</button>
</form>
</td>
</tr>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
</tbody>
</table>
</div>
</body>