57 lines
1.4 KiB
PHP
57 lines
1.4 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title><?php echo $page_title; ?></title>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1><?php echo $site_name; ?></h1>
|
|
</header>
|
|
<main>
|
|
<form action="/new-post.php">
|
|
<h2>New Post</h2>
|
|
<label>Title: <input type="text" name="post_title"></label>
|
|
<label>Post (markdown):<br><textarea name="post_body"></textarea>
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
<hr class="small-divider">
|
|
<details>
|
|
<summary>Posts</summary>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Post Title</th>
|
|
<th>Post Date</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</details>
|
|
<hr>
|
|
<form action="/new-post.php">
|
|
<h2>New Page</h2>
|
|
<label>Page Name <input type="text" name="page_name"></label>
|
|
<label>Add to menu? <input type="checkbox" name="page_in_menu"></label>
|
|
<label>Post (markdown):<br><textarea name="page_body"></textarea>
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
<hr class="small-divider">
|
|
<details>
|
|
<summary>Pages</summary>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Page URL</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</details>
|
|
</main>
|
|
</body>
|
|
</html>
|