From ca3aecd6ad25b133f84a1ff7a6a9c1fbd4346783 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Wed, 3 Oct 2012 14:07:21 -0400 Subject: [PATCH] add subsection edit page to the project with a shared 'unit' widget that will render out unit lists. Both edit_subsection and overview.html will share this widget --- cms/templates/widgets/units.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 cms/templates/widgets/units.html diff --git a/cms/templates/widgets/units.html b/cms/templates/widgets/units.html new file mode 100644 index 0000000000..12b0d33039 --- /dev/null +++ b/cms/templates/widgets/units.html @@ -0,0 +1,27 @@ +<%! from django.core.urlresolvers import reverse %> + + +<%def name="enum_units(subsection)"> +
    + % for unit in subsection.get_children(): +
  1. + +
  2. + % endfor +
  3. + + New Unit + +
  4. +
+