summaryrefslogtreecommitdiff
path: root/src/templates/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/index.php')
-rw-r--r--src/templates/index.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/templates/index.php b/src/templates/index.php
index 1298985..ed84fd4 100644
--- a/src/templates/index.php
+++ b/src/templates/index.php
@@ -6,10 +6,11 @@
<title>Bookmarks</title>
</head>
<body>
- <ul>
- <?php foreach ($bookmarks as $bookmark) { ?>
- <li><a href="/edit?id=<?php echo $bookmark->id; ?>"><?php echo $bookmark->title; ?></a> | <a href="/delete?id=<?php echo $bookmark->id; ?>">Delete</a></li>
- <?php } ?>
- </ul>
+ <a href="/create">Add</a>
+ <ul>
+ <?php foreach ($bookmarks as $bookmark) { ?>
+ <li><a href="/edit?id=<?php echo $bookmark->id; ?>"><?php echo $bookmark->title; ?></a> | <a href="/delete/confirm?id=<?php echo $bookmark->id; ?>">Delete</a></li>
+ <?php } ?>
+ </ul>
</body>
</html>