Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
166ff823
Commit
166ff823
authored
Nov 22, 2012
by
Александр
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed hidden parameter to template, style='hidden' is set by default for input
parent
111667de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
17 deletions
+3
-17
common/lib/capa/capa/inputtypes.py
+2
-5
common/lib/capa/capa/templates/crystallography.html
+1
-12
No files found.
common/lib/capa/capa/inputtypes.py
View file @
166ff823
...
...
@@ -671,18 +671,15 @@ class Crystallography(InputTypeBase):
"""
Note: height, width are required.
"""
return
[
Attribute
(
'size'
,
None
),
Attribute
(
'height'
),
return
[
Attribute
(
'height'
),
Attribute
(
'width'
),
# can probably be removed (textline should prob be always-hidden)
Attribute
(
'hidden'
,
''
),
]
registry
.
register
(
Crystallography
)
# -------------------------------------------------------------------------
class
VseprInput
(
InputTypeBase
):
"""
Input for molecular geometry--show possible structures, let student
...
...
common/lib/capa/capa/templates/crystallography.html
View file @
166ff823
...
...
@@ -23,19 +23,8 @@
<div
class=
"incorrect"
id=
"status_${id}"
>
% 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:
style=
"display:none;"
%
endif
/>
<input
type=
"text"
name=
"input_${id}"
id=
"input_${id}"
value=
"${value|h}"
style=
"display:none;"
/>
<p
class=
"status"
>
% if status == 'unsubmitted':
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment