diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2021-10-11 21:49:47 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2021-10-11 21:49:47 +0100 |
| commit | 523a84dd4b7cb611955e949fd6debc4a3c037b91 (patch) | |
| tree | 3ca2999adda1cf3e180390538d91f45f696fe175 /src/templates/edit.php | |
| parent | 0f273c0a8ead390346571c4be2296fa6e384eff6 (diff) | |
Implement very basic editing
Diffstat (limited to 'src/templates/edit.php')
| -rw-r--r-- | src/templates/edit.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/templates/edit.php b/src/templates/edit.php new file mode 100644 index 0000000..a3c6930 --- /dev/null +++ b/src/templates/edit.php @@ -0,0 +1,17 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Bookmarks</title> + </head> + <body> + <form action="/edit" method="POST"> + <input type="hidden" name="id" value="<?php echo $bookmark->id; ?>"/> + <input type="text" name="url" maxlength="512" autofocus value="<?php echo $bookmark->url; ?>"><br> + <input type="text" name="title" maxlength="256" value="<?php echo $bookmark->title; ?>"><br> + <input type="text" name="tag" maxlength="8" value="<?php echo $bookmark->tag; ?>"><br> + <button type="submit">Update</button> + </form> + </body> +</html> |
