From e3728f68987a2dd9c0e7340f03a87361bd5950bb Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Fri, 31 Aug 2012 21:07:36 -0700 Subject: [PATCH] fix new post dropdown --- lms/templates/discussion/_new_post.html | 42 +++++++++++++++---------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/lms/templates/discussion/_new_post.html b/lms/templates/discussion/_new_post.html index ef2dd75450..5b6be085e3 100644 --- a/lms/templates/discussion/_new_post.html +++ b/lms/templates/discussion/_new_post.html @@ -1,3 +1,26 @@ +<%def name="render_form_filter_dropdown(map)"> + % for child in map["children"]: + % if child in map["entries"]: + ${render_entry(map["entries"], child)} + %else: + ${render_category(map["subcategories"], child)} + %endif + %endfor + + +<%def name="render_entry(entries, entry)"> +
  • ${entry}
  • + + +<%def name="render_category(categories, category)"> +
  • + ${category} + +
  • + +
    @@ -10,22 +33,7 @@
    @@ -51,4 +59,4 @@ -
    \ No newline at end of file +