summaryrefslogtreecommitdiff
path: root/src/templates/view.php
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2021-11-14 08:49:37 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2021-11-14 08:49:37 +0000
commit8977f8cec4ca88f13528792a453eb27328e22845 (patch)
tree3479e7c7a3cec0a0ca923ea3c134d7243797b19d /src/templates/view.php
parent3226a642822a15e6cf937d3f0ec20fdf71651ea4 (diff)
Add description to todo
Diffstat (limited to 'src/templates/view.php')
-rw-r--r--src/templates/view.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/templates/view.php b/src/templates/view.php
new file mode 100644
index 0000000..35d4c36
--- /dev/null
+++ b/src/templates/view.php
@@ -0,0 +1,20 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Edit - Todo</title>
+ <link rel="shortcut icon" href="/images/favicon.png">
+ <link rel="stylesheet" href="/css/site.css">
+ </head>
+ <body>
+ <section>
+ <h1>Todo</h1>
+ <h2>View</h2>
+ <a href="/">Back</a>
+ <h3><?= htmlentities("$todo->task | $todo->tag"); ?></h3>
+ <p><?= nl2br(htmlentities($todo->description), false); ?></p>
+ <p>Copyright © 2021 David T. Sadler.</p>
+ </section>
+ </body>
+</html>