diff options
Diffstat (limited to 'src/templates/create.php')
| -rw-r--r-- | src/templates/create.php | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/templates/create.php b/src/templates/create.php index 2769290..0124e03 100644 --- a/src/templates/create.php +++ b/src/templates/create.php @@ -8,18 +8,7 @@ <body> <a href="/">Back</a> <form action="/store" method="POST"> - <input type="text" name="url" maxlength="512" autofocus><br> - <?php if ($errors->has('url')) { ?> - <p><?php echo implode(', ', $errors->get('url')); ?></p> - <?php } ?> - <input type="text" name="title" maxlength="256" ><br> - <?php if ($errors->has('title')) { ?> - <p><?php echo implode(', ', $errors->get('title')); ?></p> - <?php } ?> - <input type="text" name="tag" maxlength="8" ><br> - <?php if ($errors->has('tag')) { ?> - <p><?php echo implode(', ', $errors->get('tag')); ?></p> - <?php } ?> + <?php require_once('form_fields.php'); ?> <button type="submit">Add</button> </form> </body> |
