diff --git a/cms/djangoapps/contentstore/views.py b/cms/djangoapps/contentstore/views.py
index 87a2943773..1ae0757393 100644
--- a/cms/djangoapps/contentstore/views.py
+++ b/cms/djangoapps/contentstore/views.py
@@ -273,7 +273,7 @@ def edit_unit(request, location):
template.display_name,
template.location.url(),
'markdown' in template.metadata,
- template.location.name == 'Empty'
+ 'empty' in template.metadata
))
components = [
diff --git a/cms/templates/base.html b/cms/templates/base.html
index 709ef80eb2..84f10fc2d1 100644
--- a/cms/templates/base.html
+++ b/cms/templates/base.html
@@ -31,7 +31,6 @@
-
<%static:js group='main'/>
<%static:js group='module-js'/>
diff --git a/cms/templates/unit.html b/cms/templates/unit.html
index eaf9294e38..3777c33591 100644
--- a/cms/templates/unit.html
+++ b/cms/templates/unit.html
@@ -64,8 +64,7 @@
% for type, templates in sorted(component_templates.items()):
-
-
+
-
Common Problem Types
@@ -77,59 +76,51 @@
% for name, location, has_markdown, is_empty in templates:
-
- % if is_empty:
- -
-
- ${name}
-
-
-
- % elif has_markdown:
- -
-
- ${name}
-
-
- % else:
- -
-
- ${name}
-
-
+ % if has_markdown or type != "problem":
+ % if is_empty:
+
-
+
+ ${name}
+
+
-
+ % else:
+ -
+
+ ${name}
+
+
+ % endif
% endif
%endfor
-
- % for name, location, has_markdown, is_empty in templates:
-
- % if is_empty:
- -
-
- ${name}
-
-
-
- % elif has_markdown:
-
- % else:
- -
-
- ${name}
-
-
-
- % 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
diff --git a/common/lib/xmodule/xmodule/templates/html/empty.yaml b/common/lib/xmodule/xmodule/templates/html/empty.yaml
index 1262ed37cf..b6d867d7d6 100644
--- a/common/lib/xmodule/xmodule/templates/html/empty.yaml
+++ b/common/lib/xmodule/xmodule/templates/html/empty.yaml
@@ -1,6 +1,7 @@
---
metadata:
- display_name: Empty
+ display_name: Blank HTML Page
+ empty: True
data: |
diff --git a/common/lib/xmodule/xmodule/templates/problem/empty.yaml b/common/lib/xmodule/xmodule/templates/problem/empty.yaml
index 346f49609c..39c9e7671c 100644
--- a/common/lib/xmodule/xmodule/templates/problem/empty.yaml
+++ b/common/lib/xmodule/xmodule/templates/problem/empty.yaml
@@ -1,10 +1,11 @@
---
metadata:
- display_name: Empty
+ display_name: Blank Common Problem
rerandomize: never
showanswer: always
markdown: ""
weight: ""
+ empty: True
attempts: ""
data: |
diff --git a/common/lib/xmodule/xmodule/templates/problem/emptyadvanced.yaml b/common/lib/xmodule/xmodule/templates/problem/emptyadvanced.yaml
new file mode 100644
index 0000000000..bba7b3a8ac
--- /dev/null
+++ b/common/lib/xmodule/xmodule/templates/problem/emptyadvanced.yaml
@@ -0,0 +1,13 @@
+---
+metadata:
+ display_name: Blank Advanced Problem
+ rerandomize: never
+ showanswer: always
+ weight: ""
+ attempts: ""
+ empty: True
+data: |
+
+
+
+children: []