From: gfawcett Date: Sun, 11 Jan 2009 04:01:41 +0000 (+0000) Subject: renamed item-add, since it's heading-specific. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=727c47b46d6f201c06da082d29b6095fb7d2d836;p=syrup%2Fmasslnc.git 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 --- 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.xhtml deleted file mode 100644 index 847dee2..0000000 --- a/conifer/templates/item_add.xhtml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - ${title} - - -
-
${course.department}
-

${course_title}

-

${title}

-
- - -
Heading
-

-
-
- - diff --git a/conifer/templates/item_add_heading.xhtml b/conifer/templates/item_add_heading.xhtml new file mode 100644 index 0000000..bd50ea3 --- /dev/null +++ b/conifer/templates/item_add_heading.xhtml @@ -0,0 +1,27 @@ + + + + + + ${title} + + +
+
${course.department}
+

${course_title}

+
${nested_title(parent_item)}
+

${title}

+
+ + +
Heading
+

+
+
+ +