Commit 18ecd115 by Don Mitchell Committed by marco

Only tabify the problems submenu.

parent 62d389c8
...@@ -64,15 +64,17 @@ ...@@ -64,15 +64,17 @@
</div> </div>
% for type, templates in sorted(component_templates.items()): % for type, templates in sorted(component_templates.items()):
<div class="new-component-templates new-component-${type}"> <div class="new-component-templates new-component-${type}">
<div class="tab-group tabs"> % if type == "problem":
<ul class="problem-type-tabs nav-tabs"> <div class="tab-group tabs">
<li class="current"> <ul class="problem-type-tabs nav-tabs">
<a class="link-tab" href="#tab1">Common Problem Types</a> <li class="current">
</li> <a class="link-tab" href="#tab1">Common Problem Types</a>
<li> </li>
<a class="link-tab" href="#tab2">Advanced</a> <li>
</li> <a class="link-tab" href="#tab2">Advanced</a>
</ul> </li>
</ul>
% endif
<div class="tab current" id="tab1"> <div class="tab current" id="tab1">
<ul class="new-component-template"> <ul class="new-component-template">
% for name, location, has_markdown, is_empty in templates: % for name, location, has_markdown, is_empty in templates:
...@@ -92,13 +94,13 @@ ...@@ -92,13 +94,13 @@
</li> </li>
% endif % endif
% endif % endif
%endfor %endfor
</ul> </ul>
</div> </div>
<div class="tab" id="tab2"> % if type == "problem":
<ul class="new-component-template"> <div class="tab" id="tab2">
% if type == "problem": <ul class="new-component-template">
% for name, location, has_markdown, is_empty in templates: % for name, location, has_markdown, is_empty in templates:
% if not has_markdown: % if not has_markdown:
% if is_empty: % if is_empty:
...@@ -118,10 +120,10 @@ ...@@ -118,10 +120,10 @@
% endif % endif
% endif % endif
% endfor % endfor
% endif </ul>
</ul> </div>
</div>
</div> </div>
% endif
<a href="#" class="cancel-button">Cancel</a> <a href="#" class="cancel-button">Cancel</a>
</div> </div>
% endfor % endfor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment