summaryrefslogtreecommitdiff
path: root/src/templates/edit.php
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2021-11-13 09:22:25 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2021-11-13 09:22:25 +0000
commit40997195b7ee07cb1bda978186c1804371e1f16e (patch)
tree17a6e4bd6eaca795cfa8d57b9aa6ea8ad7066593 /src/templates/edit.php
parent35dc6c245d93560d7ac81df6323e8b22e571aa95 (diff)
Create site
Diffstat (limited to 'src/templates/edit.php')
-rw-r--r--src/templates/edit.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/templates/edit.php b/src/templates/edit.php
new file mode 100644
index 0000000..9a8a1a6
--- /dev/null
+++ b/src/templates/edit.php
@@ -0,0 +1,23 @@
+<!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>Edit</h2>
+ <a href="/">Back</a>
+ <form action="/update/" method="POST">
+ <input type="hidden" name="id" value="<?= $todo->id; ?>"/>
+ <?php require_once('form_fields.php'); ?>
+ <button type="submit">Update</button>
+ </form>
+ <p>Copyright © 2021 David T. Sadler.</p>
+ </section>
+ </body>
+</html>