From 727c47b46d6f201c06da082d29b6095fb7d2d836 Mon Sep 17 00:00:00 2001 From: gfawcett Date: Sun, 11 Jan 2009 04:01:41 +0000 Subject: [PATCH] renamed item-add, since it's heading-specific. Probably better to factor this template out. Real items have more in common with each other. git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@102 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- conifer/syrup/views.py | 2 +- conifer/templates/{item_add.xhtml => item_add_heading.xhtml} | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) rename conifer/templates/{item_add.xhtml => item_add_heading.xhtml} (87%) diff --git a/conifer/syrup/views.py b/conifer/syrup/views.py index 86f3b80..43a92a4 100644 --- a/conifer/syrup/views.py +++ b/conifer/syrup/views.py @@ -171,7 +171,7 @@ def item_add(request, course_id, item_id): assert item_type == 'HEADING', 'Sorry, only HEADINGs can be added right now.' if request.method == 'GET': - return g.render('item_add.xhtml', **locals()) + return g.render('item_add_heading.xhtml', **locals()) else: title = request.POST.get('title', '').strip() if not title: diff --git a/conifer/templates/item_add.xhtml b/conifer/templates/item_add_heading.xhtml similarity index 87% rename from conifer/templates/item_add.xhtml rename to conifer/templates/item_add_heading.xhtml index 847dee2..bd50ea3 100644 --- a/conifer/templates/item_add.xhtml +++ b/conifer/templates/item_add_heading.xhtml @@ -1,6 +1,3 @@ - + ${title} @@ -16,6 +14,7 @@ course_title = '%s: %s (%s)' % (course.code, course.title, course.term)
${course.department}

${course_title}

+
${nested_title(parent_item)}

${title}

-- 2.11.0