diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2021-10-26 21:07:43 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2021-10-26 21:07:43 +0100 |
| commit | ae205d810b62dce5e3e11aef07358c11ded48c77 (patch) | |
| tree | 0196ae98aefb93b719d6b21cc065e22c1ecf992b /src/templates/edit.php | |
| parent | d4122f116c937e0ec509d8cefe540146ec27a0cd (diff) | |
Implement old
Diffstat (limited to 'src/templates/edit.php')
| -rw-r--r-- | src/templates/edit.php | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/templates/edit.php b/src/templates/edit.php index c1b7bda..e77dd48 100644 --- a/src/templates/edit.php +++ b/src/templates/edit.php @@ -9,18 +9,7 @@ <a href="/">Back</a> <form action="/update" 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> - <?php if ($errors->has('url')) { ?> - <p><?php echo implode(', ', $errors->get('url')); ?></p> - <?php } ?> - <input type="text" name="title" maxlength="256" value="<?php echo $bookmark->title; ?>"><br> - <?php if ($errors->has('title')) { ?> - <p><?php echo implode(', ', $errors->get('title')); ?></p> - <?php } ?> - <input type="text" name="tag" maxlength="8" value="<?php echo $bookmark->tag; ?>"><br> - <?php if ($errors->has('tag')) { ?> - <p><?php echo implode(', ', $errors->get('tag')); ?></p> - <?php } ?> + <?php require_once('form_fields.php'); ?> <button type="submit">Update</button> </form> </body> |
