Commit 166ff823 by Александр

removed hidden parameter to template, style='hidden' is set by default for input

parent 111667de
...@@ -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
......
...@@ -23,19 +23,8 @@ ...@@ -23,19 +23,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