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
032bb1b1
Commit
032bb1b1
authored
Oct 11, 2012
by
Александр
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryst inputtypes template - same as textline + js files
parent
59da196a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
9 deletions
+48
-9
common/lib/capa/capa/templates/crystallography.html
+48
-9
No files found.
common/lib/capa/capa/templates/crystallography.html
View file @
032bb1b1
<
%
doinline =
"inline"
if
inline
else
""
%
>
<section
id=
"cryst_${id}"
class=
"cryst"
>
<div
id=
"holder"
style=
"width:${width};height:${height}"
></div>
<div
class=
"script_placeholder"
data-src=
"/static/js/jquery.js"
></div>
<section
id=
"textinput_${id}"
class=
"textinput ${doinline}"
>
<div
id=
"holder"
style=
"width:${width};height:${height}"
></div>
<div
class=
"script_placeholder"
data-src=
"/static/js/raphael.js"
></div><div
class=
"script_placeholder"
data-src=
"/static/js/sylvester.js"
></div><div
class=
"script_placeholder"
data-src=
"/static/js/underscore-min.js"
></div>
<div
class=
"script_placeholder"
data-src=
"/static/js/${display_file}"
></div>
<input
type=
"hidden"
name=
"cryst_answer_${id}"
id=
"cryst_answer"
class=
"answer"
/>
<input
type=
"text"
name=
"cryst_answer_test_${id}"
id=
"cryst_answer_test"
class=
"answer"
/>
<!-- <input class="check" type="button" value="Check"/> -->
<div
class=
"script_placeholder"
data-src=
"/static/js/crystallography.js"
></div>
% if state == 'unsubmitted':
<div
class=
"unanswered ${doinline}"
id=
"status_${id}"
>
% elif state == 'correct':
<div
class=
"correct ${doinline}"
id=
"status_${id}"
>
% elif state == 'incorrect':
<div
class=
"incorrect ${doinline}"
id=
"status_${id}"
>
% elif state == 'incomplete':
<div
class=
"incorrect ${doinline}"
id=
"status_${id}"
>
% endif
% if hidden:
<div
style=
"display:none;"
name=
"${hidden}"
inputid=
"input_${id}"
/>
% endif
<input
type=
"text"
name=
"input_${id}"
id=
"input_${id}"
value=
"${value}"
%
if
size:
size=
"${size}"
%
endif
%
if
hidden:
style=
"display:none;"
%
endif
/>
<p
class=
"status"
>
% if state == 'unsubmitted':
unanswered
% elif state == 'correct':
correct
% elif state == 'incorrect':
incorrect
% elif state == 'incomplete':
incomplete
% endif
</p>
<p
id=
"answer_${id}"
class=
"answer"
></p>
% if msg:
<span
class=
"message"
>
${msg|n}
</span>
% endif
% if state in ['unsubmitted', 'correct', 'incorrect', 'incomplete'] or hidden:
</div>
% endif
</section>
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