Add and improve routes

This commit is contained in:
Sascha Ißbrücker
2019-06-28 07:33:08 +02:00
parent d9e1c64340
commit e2a834a56c
7 changed files with 33 additions and 11 deletions

View File

@@ -1 +0,0 @@
<h2>Edit bookmark {{ bookmark.id }}</h2>

View File

@@ -0,0 +1,5 @@
{% extends "bookmarks/layout.html" %}
{% block content %}
<h2>Edit bookmark</h2>
{% endblock %}

View File

@@ -1,7 +1,10 @@
{% extends "bookmarks/layout.html" %}
{% block content %}
<h2>Bookmarks</h2>
<div>
<h2>Bookmarks</h2>
<a href="{% url 'bookmarks:new' %}">Add</a>
</div>
<ul class="bookmark-list">
{% for bookmark in bookmarks %}
<li>
@@ -12,7 +15,7 @@
<p>{{ bookmark.description }}</p>
{% endif %}
<p>
<a href="{% url 'bookmarks:detail' bookmark.id %}">Edit</a>
<a href="{% url 'bookmarks:edit' bookmark.id %}">Edit</a>
<a href="{% url 'bookmarks:remove' bookmark.id %}"
onclick="return confirm('Do you really want to delete this bookmark?')">Remove</a>
</p>

View File

@@ -0,0 +1,5 @@
{% extends "bookmarks/layout.html" %}
{% block content %}
<h2>New bookmark</h2>
{% endblock %}