Commit 37714d45 by Valera Rozuvan

Merge branch 'feature/alex/crystallography-update-mitx' of github.com:MITx/mitx…

Merge branch 'feature/alex/crystallography-update-mitx' of github.com:MITx/mitx into feature/alex/crystallography-update-mitx
parents 19c463b7 166ff823
...@@ -671,18 +671,15 @@ class Crystallography(InputTypeBase): ...@@ -671,18 +671,15 @@ class Crystallography(InputTypeBase):
""" """
Note: height, width are required. Note: height, width are required.
""" """
return [Attribute('size', None), return [Attribute('height'),
Attribute('height'),
Attribute('width'), Attribute('width'),
# can probably be removed (textline should prob be always-hidden)
Attribute('hidden', ''),
] ]
registry.register(Crystallography) registry.register(Crystallography)
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
class VseprInput(InputTypeBase): class VseprInput(InputTypeBase):
""" """
Input for molecular geometry--show possible structures, let student Input for molecular geometry--show possible structures, let student
......
...@@ -19,19 +19,8 @@ ...@@ -19,19 +19,8 @@
<div class="incorrect" id="status_${id}"> <div class="incorrect" id="status_${id}">
% endif % endif
% if hidden:
<div style="display:none;" name="${hidden}" inputid="input_${id}"></div>
% endif
<input type="text" name="input_${id}" id="input_${id}" value="${value|h}"
% if size:
size="${size}"
% endif
% if hidden: <input type="text" name="input_${id}" id="input_${id}" value="${value|h}" style="display:none;"/>
style="display:none;"
% endif
/>
<p class="status"> <p class="status">
% if status == 'unsubmitted': % if status == 'unsubmitted':
......
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