From f23100d2b2d1a82c863992191da8dd12b53084d8 Mon Sep 17 00:00:00 2001
From: Thierry Carrez
Date: Fri, 31 May 2013 16:41:14 +0200
Subject: [PATCH] Separate edition from viewing
---
cfp/templates/cfpdetails.html | 3 +++
cfp/templates/cfpedit.html | 2 +-
cfp/urls.py | 1 +
cfp/views.py | 23 +++++++++++++++++------
4 files changed, 22 insertions(+), 7 deletions(-)
diff --git a/cfp/templates/cfpdetails.html b/cfp/templates/cfpdetails.html
index a1c00c7..822d130 100644
--- a/cfp/templates/cfpdetails.html
+++ b/cfp/templates/cfpdetails.html
@@ -25,5 +25,8 @@ Scheduled
{{ proposal.get_status_display }}
{% endif %}
state.
+{% if editable %}
+Edit
+{% endif %}
Back
{% endblock %}
diff --git a/cfp/templates/cfpedit.html b/cfp/templates/cfpedit.html
index 8541b6c..7989e01 100644
--- a/cfp/templates/cfpedit.html
+++ b/cfp/templates/cfpedit.html
@@ -9,7 +9,7 @@
Reviewer notes:
{{ proposal.reviewer_notes }}
{% endif %}
-