From ab5061c2faed05f1830e38c5fe4a092ad6c9fb8e Mon Sep 17 00:00:00 2001 From: iou1name Date: Wed, 5 Sep 2018 12:48:24 -0400 Subject: [PATCH] edit_quest page added --- quest/jinja2/quest/edit_quest.html | 31 ++++++++++++++++++++++++++++++ quest/jinja2/quest/quest.html | 2 +- quest/urls.py | 2 ++ quest/views.py | 18 +++++++++++++++-- todo | 3 +-- 5 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 quest/jinja2/quest/edit_quest.html diff --git a/quest/jinja2/quest/edit_quest.html b/quest/jinja2/quest/edit_quest.html new file mode 100644 index 0000000..cc0ae4a --- /dev/null +++ b/quest/jinja2/quest/edit_quest.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} +{% block title %}Edit {{ quest.title }}{% endblock %} +{% block content %} +

{{ quest.title }}

+
+ {{ csrf_input }} + + + + + + + + + + + + + + + + + + + + + +
Quest Title:
Visible:
Anonymous Name:
Live:
Live In:Placeholder
+ +
+{% endblock %} diff --git a/quest/jinja2/quest/quest.html b/quest/jinja2/quest/quest.html index 82c1eb0..5021be9 100644 --- a/quest/jinja2/quest/quest.html +++ b/quest/jinja2/quest/quest.html @@ -15,7 +15,7 @@ {% endblock %} {% block header %} {% if request.user == quest.owner %} -
  • Edit Quest
  • +
  • Edit Quest
  • {% endif %}