From 2e9cd65e869b8bd31e6e6ba66b52705c023af5ec Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 1 Feb 2013 09:49:20 +0200 Subject: Some improvements --- notes/templates/edit.html | 13 +++++++++---- notes/templates/view.html | 10 +++++++++- 2 files changed, 18 insertions(+), 5 deletions(-) (limited to 'notes/templates') diff --git a/notes/templates/edit.html b/notes/templates/edit.html index 6d2ec1e..51c1e7d 100644 --- a/notes/templates/edit.html +++ b/notes/templates/edit.html @@ -3,14 +3,19 @@ {% block content %}
- Notes -

New Note

- Done + Notes +

{{ note.title }}

+ Done
-
+ {% csrf_token %} {{ form }} + {% if form.is_bound %} Delete diff --git a/notes/templates/view.html b/notes/templates/view.html index a6d3473..fa2a59d 100644 --- a/notes/templates/view.html +++ b/notes/templates/view.html @@ -6,10 +6,18 @@
Notes

{{ note.title }}

- Edit + Edit

{{ version.content|restructuredtext }}

+ +
+
+ Delete
{% endblock content %} -- cgit v1.2.3