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
c04455c5
Commit
c04455c5
authored
Jan 04, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix html display
parent
6a535262
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
common/lib/xmodule/xmodule/open_ended_module.py
+3
-2
lms/templates/open_ended.html
+6
-3
No files found.
common/lib/xmodule/xmodule/open_ended_module.py
View file @
c04455c5
...
@@ -635,9 +635,9 @@ class OpenEndedModule():
...
@@ -635,9 +635,9 @@ class OpenEndedModule():
#set context variables and render template
#set context variables and render template
if
self
.
state
!=
self
.
INITIAL
:
if
self
.
state
!=
self
.
INITIAL
:
latest
=
self
.
latest_answer
()
latest
=
self
.
latest_answer
()
previous_answer
=
latest
if
latest
is
not
None
else
''
previous_answer
=
latest
if
latest
is
not
None
else
self
.
initial_display
else
:
else
:
previous_answer
=
''
previous_answer
=
self
.
initial_display
context
=
{
context
=
{
'prompt'
:
self
.
prompt
,
'prompt'
:
self
.
prompt
,
...
@@ -648,6 +648,7 @@ class OpenEndedModule():
...
@@ -648,6 +648,7 @@ class OpenEndedModule():
'cols'
:
80
,
'cols'
:
80
,
'hidden'
:
''
,
'hidden'
:
''
,
'id'
:
'open_ended'
,
'id'
:
'open_ended'
,
'msg'
:
""
,
}
}
html
=
system
.
render_template
(
'open_ended.html'
,
context
)
html
=
system
.
render_template
(
'open_ended.html'
,
context
)
...
...
lms/templates/open_ended.html
View file @
c04455c5
<section
id=
"openended_${id}"
class=
"open-ended-child"
data-state=
"${state}"
>
<section
id=
"openended_${id}"
class=
"open-ended-child"
data-state=
"${state}"
>
${prompt|n}
<textarea
rows=
"${rows}"
cols=
"${cols}"
name=
"input_${id}"
class=
"short-form-response"
id=
"input_${id}"
<textarea
rows=
"${rows}"
cols=
"${cols}"
name=
"input_${id}"
class=
"short-form-response"
id=
"input_${id}"
%
if
hidden:
%
if
hidden:
style=
"display:none;"
style=
"display:none;"
%
endif
%
endif
>
${
value
|h}
</textarea>
>
${
previous_answer
|h}
</textarea>
<div
class=
"grader-status"
>
<div
class=
"grader-status"
>
% if state == 'initial':
% if state == 'initial':
...
@@ -21,14 +22,16 @@
...
@@ -21,14 +22,16 @@
% endif
% endif
</div>
</div>
<input
type=
"button"
value=
"Submit"
class=
"submit-button"
name=
"show"
/>
<span
id=
"answer_${id}"
></span>
<span
id=
"answer_${id}"
></span>
% if stat
us == 'queued
':
% if stat
e == 'assessing
':
<input
name=
"reload"
class=
"reload"
type=
"button"
value=
"Recheck for Feedback"
onclick=
"document.location.reload(true);"
/>
<input
name=
"reload"
class=
"reload"
type=
"button"
value=
"Recheck for Feedback"
onclick=
"document.location.reload(true);"
/>
% endif
% endif
<div
class=
"external-grader-message"
>
<div
class=
"external-grader-message"
>
${msg|n}
${msg|n}
% if stat
us in ['correct','incorrect']
:
% if stat
e == 'done'
:
<div
class=
"collapsible evaluation-response"
>
<div
class=
"collapsible evaluation-response"
>
<header>
<header>
<a
href=
"#"
>
Respond to Feedback
</a>
<a
href=
"#"
>
Respond to Feedback
</a>
...
...
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