diff --git a/common/lib/capa/capa/inputtypes.py b/common/lib/capa/capa/inputtypes.py index 16b36960c9..b8033d5859 100644 --- a/common/lib/capa/capa/inputtypes.py +++ b/common/lib/capa/capa/inputtypes.py @@ -726,6 +726,9 @@ def crystallography(element, value, status, render_template, msg=''): escapedict = {'"': '"'} value = saxutils.escape(value, escapedict) + molecules = element.get('molecules') + geometries = element.get('geometries') + context = {'id': eid, 'value': value, 'state': status, @@ -782,6 +785,8 @@ def vsepr_input(element, value, status, render_template, msg=''): 'width': width, 'height': height, 'display_file': display_file, + 'molecules': molecules, + 'geometries': geometries, } html = render_template("vsepr_input.html", context) diff --git a/common/lib/capa/capa/templates/vsepr_input.html b/common/lib/capa/capa/templates/vsepr_input.html index 1332b156a8..20e7e19dd3 100644 --- a/common/lib/capa/capa/templates/vsepr_input.html +++ b/common/lib/capa/capa/templates/vsepr_input.html @@ -2,7 +2,7 @@
-
+