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
5ae6ce9d
Commit
5ae6ce9d
authored
Jul 25, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add in css borders
parent
579b66d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
33 deletions
+48
-33
common/lib/xmodule/xmodule/css/combinedopenended/display.scss
+19
-7
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+5
-4
lms/templates/combinedopenended/combined_open_ended.html
+24
-22
No files found.
common/lib/xmodule/xmodule/css/combinedopenended/display.scss
View file @
5ae6ce9d
...
@@ -36,28 +36,40 @@ div.name{
...
@@ -36,28 +36,40 @@ div.name{
}
}
section
.combined-open-ended
{
section
.combined-open-ended
{
@include
clearfix
;
@include
clearfix
;
}
div
.problemwrapper
{
border
:
1px
solid
;
border-color
:
lightgray
;
-webkit-border-radius
:
20px
;
-moz-border-radius
:
20px
;
border-radius
:
20px
;
padding
:
5px
;
.status-bar
.status-bar
{
{
float
:
right
;
float
:
right
;
display
:
inline-block
;
display
:
inline-block
;
padding
:
5px
;
.problemtype
{
.problemtype
{
display
:
inline
;
display
:
inline
;
margin-right
:
1
40
px
;
margin-right
:
1
35
px
;
}
}
.status-container
.status-container
{
{
padding-bottom
:
5px
;
padding-bottom
:
5px
;
display
:
inline-block
;
display
:
inline-block
;
padding-right
:
20px
}
}
border-bottom
:
1px
solid
;
border-color
:
lightgray
;
}
}
.item-container
.item-container
{
{
padding-bottom
:
10px
;
padding-bottom
:
10px
;
display
:
inline-block
;
display
:
inline-block
;
padding
:
15px
;
}
}
.result-container
.result-container
...
@@ -66,10 +78,6 @@ section.combined-open-ended {
...
@@ -66,10 +78,6 @@ section.combined-open-ended {
width
:
100%
;
width
:
100%
;
position
:relative
;
position
:relative
;
}
}
h4
{
margin-bottom
:
10px
;
}
}
}
section
.legend-container
{
section
.legend-container
{
...
@@ -694,4 +702,8 @@ section.open-ended-child {
...
@@ -694,4 +702,8 @@ section.open-ended-child {
}
}
}
}
div
.prompt
{
padding
:
10px
;
background-color
:white
;
}
}
}
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
5ae6ce9d
...
@@ -140,8 +140,6 @@ class @CombinedOpenEnded
...
@@ -140,8 +140,6 @@ class @CombinedOpenEnded
@
accept_file_upload
=
@
coe
.
data
(
'accept-file-upload'
)
@
accept_file_upload
=
@
coe
.
data
(
'accept-file-upload'
)
@
location
=
@
coe
.
data
(
'location'
)
@
location
=
@
coe
.
data
(
'location'
)
console
.
log
(
@
child_state
)
# set up handlers for click tracking
# set up handlers for click tracking
Rubric
.
initialize
(
@
location
,
@
coe
)
Rubric
.
initialize
(
@
location
,
@
coe
)
@
is_ctrl
=
false
@
is_ctrl
=
false
...
@@ -174,8 +172,6 @@ class @CombinedOpenEnded
...
@@ -174,8 +172,6 @@ class @CombinedOpenEnded
console
.
log
(
@
results_container
)
console
.
log
(
@
results_container
)
@
combined_rubric_container
=
@
$
(
@
combined_rubric_sel
)
@
combined_rubric_container
=
@
$
(
@
combined_rubric_sel
)
@
legend_container
=
@
$
(
@
legend_sel
)
@
show_legend_current
()
# Where to put the rubric once we load it
# Where to put the rubric once we load it
console
.
log
(
"started child"
)
console
.
log
(
"started child"
)
...
@@ -205,6 +201,10 @@ class @CombinedOpenEnded
...
@@ -205,6 +201,10 @@ class @CombinedOpenEnded
else
if
@
task_number
==
1
and
@
child_state
!=
'initial'
else
if
@
task_number
==
1
and
@
child_state
!=
'initial'
@
prompt_hide
()
@
prompt_hide
()
if
@
child_state
!=
"initial"
@
show_legend_current
()
@
legend_container
=
@
$
(
@
legend_sel
)
@
find_assessment_elements
()
@
find_assessment_elements
()
@
find_hint_elements
()
@
find_hint_elements
()
...
@@ -339,6 +339,7 @@ class @CombinedOpenEnded
...
@@ -339,6 +339,7 @@ class @CombinedOpenEnded
if
@
task_number
==
1
and
@
task_count
==
1
if
@
task_number
==
1
and
@
task_count
==
1
@
grader_status
=
@
$
(
@
grader_status_sel
)
@
grader_status
=
@
$
(
@
grader_status_sel
)
@
grader_status
.
html
(
"<p>Response submitted for scoring.</p>"
)
@
grader_status
.
html
(
"<p>Response submitted for scoring.</p>"
)
@
legend_container
.
hide
()
else
if
@
child_state
==
'post_assessment'
else
if
@
child_state
==
'post_assessment'
if
@
child_type
==
"openended"
if
@
child_type
==
"openended"
@
skip_button
.
show
()
@
skip_button
.
show
()
...
...
lms/templates/combinedopenended/combined_open_ended.html
View file @
5ae6ce9d
...
@@ -5,34 +5,36 @@
...
@@ -5,34 +5,36 @@
Progress: ${human_state}
Progress: ${human_state}
</div>
</div>
</div>
</div>
<div
class=
"status-bar"
>
<div
class=
"problemwrapper"
>
<div
class=
"problemtype"
>
<div
class=
"status-bar"
>
Open Response Assessment
<div
class=
"problemtype"
>
Open Response Assessment
</div>
Assessments:
<div
class=
"status-container"
>
${status|n}
</div>
</div>
</div>
Assessments:
<div
class=
"status-container"
>
${status|n}
</div>
</div>
<div
class=
"item-container"
>
<div
class=
"item-container"
>
<h4>
Prompt
<a
href=
"#"
class=
"question-header"
>
(Hide)
</a>
</h4>
<h4>
Prompt
<a
href=
"#"
class=
"question-header"
>
(Hide)
</a>
</h4>
<div
class=
"problem-container"
>
<div
class=
"problem-container"
>
% for item in items:
% for item in items:
<div
class=
"item"
>
${item['content'] | n}
</div>
<div
class=
"item"
>
${item['content'] | n}
</div>
% endfor
% endfor
</div>
</div>
<input
type=
"button"
value=
"Reset"
class=
"reset-button"
name=
"reset"
/>
<input
type=
"button"
value=
"Reset"
class=
"reset-button"
name=
"reset"
/>
<input
type=
"button"
value=
"Next Step"
class=
"next-step-button"
name=
"reset"
/>
<input
type=
"button"
value=
"Next Step"
class=
"next-step-button"
name=
"reset"
/>
</div>
</div>
<div
class=
"combined-rubric-container"
>
<div
class=
"combined-rubric-container"
>
</div>
</div>
<section
class=
"legend-container"
>
<section
class=
"legend-container"
>
</section>
</section>
<div
class=
"result-container"
>
<div
class=
"result-container"
>
</div>
</div>
</div>
</section>
</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