mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-13 21:49:26 +02:00
Add and improve routes
This commit is contained in:
@@ -1 +0,0 @@
|
||||
<h2>Edit bookmark {{ bookmark.id }}</h2>
|
5
bookmarks/templates/bookmarks/edit.html
Normal file
5
bookmarks/templates/bookmarks/edit.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "bookmarks/layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Edit bookmark</h2>
|
||||
{% endblock %}
|
@@ -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>
|
||||
|
5
bookmarks/templates/bookmarks/new.html
Normal file
5
bookmarks/templates/bookmarks/new.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "bookmarks/layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>New bookmark</h2>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user