<%inherit file="base.html" /> <%! from django.core.urlresolvers import reverse %> <%namespace name="units" file="widgets/units.html" /> <%block name="bodyclass">unit <%block name="title">CMS Unit <%block name="jsextra"> <%block name="content">

You are editing a draft. % if published_date: This unit was originally published on ${published_date}. % endif

Preview the published version

    % for id in components:
  1. % endfor
  2. Add New Component
      % for type in sorted(component_templates.keys()):
    • ${type}
    • % endfor
    % for type, templates in sorted(component_templates.items()):
    % if type == "problem":
    % endif
      % for name, location, has_markdown, is_empty in templates: % if has_markdown or type != "problem": % if is_empty:
    • ${name}
    • % else:
    • ${name}
    • % endif % endif %endfor
    % if type == "problem":
      % for name, location, has_markdown, is_empty in templates: % if not has_markdown: % if is_empty:
    • ${name}
    • % else:
    • ${name}
    • % endif % endif % endfor
    % endif Cancel
    % endfor