summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/add.php16
-rw-r--r--src/templates/index.php1
2 files changed, 16 insertions, 1 deletions
diff --git a/src/templates/add.php b/src/templates/add.php
new file mode 100644
index 0000000..a44c4d3
--- /dev/null
+++ b/src/templates/add.php
@@ -0,0 +1,16 @@
+<!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="/add" method="POST">
+ <input type="text" name="url" maxlength="512" autofocus><br>
+ <input type="text" name="title" maxlength="256" ><br>
+ <input type="text" name="tag" maxlength="8" ><br>
+ <button type="submit">Add</button>
+ </form>
+ </body>
+</html>
diff --git a/src/templates/index.php b/src/templates/index.php
index 034f09c..9656551 100644
--- a/src/templates/index.php
+++ b/src/templates/index.php
@@ -6,7 +6,6 @@
<title>Bookmarks</title>
</head>
<body>
- <h1>Hello <?php echo 'World'; ?></h1>
<ul>
<?php foreach ($bookmarks as $bookmark) { ?>
<li><?php echo "[$bookmark->id] $bookmark->url"; ?></li>