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
ec99e20a
Commit
ec99e20a
authored
Aug 02, 2013
by
marco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styled rubric, dividers between sections
parent
cc7c0254
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
88 additions
and
49 deletions
+88
-49
common/lib/xmodule/xmodule/css/combinedopenended/display.scss
+63
-37
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+4
-4
lms/static/coffee/src/staff_grading/test_grading.html
+5
-1
lms/templates/combinedopenended/combined_open_ended.html
+1
-1
lms/templates/combinedopenended/openended/open_ended.html
+5
-1
lms/templates/combinedopenended/openended/open_ended_rubric.html
+6
-2
lms/templates/combinedopenended/selfassessment/self_assessment_prompt.html
+4
-3
No files found.
common/lib/xmodule/xmodule/css/combinedopenended/display.scss
View file @
ec99e20a
// lms - xmodule - combinedopenended
// ====================
h2
{
h2
{
margin-top
:
0
;
margin-top
:
0
;
margin-bottom
:
15px
;
margin-bottom
:
15px
;
...
@@ -16,6 +19,7 @@ h2 {
...
@@ -16,6 +19,7 @@ h2 {
}
}
}
}
// Problem Header
div
.name
{
div
.name
{
padding-bottom
:
15px
;
padding-bottom
:
15px
;
...
@@ -38,6 +42,7 @@ section.combined-open-ended {
...
@@ -38,6 +42,7 @@ section.combined-open-ended {
@include
clearfix
;
@include
clearfix
;
}
}
div
.problemwrapper
{
div
.problemwrapper
{
border
:
1px
solid
lightgray
;
border
:
1px
solid
lightgray
;
border-radius
:
$baseline
/
2
;
border-radius
:
$baseline
/
2
;
...
@@ -85,29 +90,6 @@ div.problemwrapper {
...
@@ -85,29 +90,6 @@ div.problemwrapper {
.item-container
{
.item-container
{
padding-bottom
:
$baseline
/
2
;
padding-bottom
:
$baseline
/
2
;
margin
:
15px
;
margin
:
15px
;
.visibility-control-prompt
{
display
:
block
;
height
:
40px
;
width
:
100%
;
.inner
{
float
:
left
;
height
:
5px
;
margin-top
:
17px
;
border-top
:
1px
dotted
#ddd
;
width
:
85%
;
}
}
a
{
display
:
block
;
text-align
:
center
;
width
:
15%
;
float
:
right
;
padding-top
:
$baseline
/
2
;
font-size
:
.9em
;
}
}
}
.result-container
{
.result-container
{
...
@@ -163,7 +145,6 @@ section.combined-open-ended-status {
...
@@ -163,7 +145,6 @@ section.combined-open-ended-status {
.statusitem-current
{
.statusitem-current
{
background-color
:
#fff
;
background-color
:
#fff
;
box-shadow
:
inset
0
1px
1px
gray
;
color
:
#222
;
color
:
#222
;
}
}
...
@@ -203,6 +184,63 @@ section.combined-open-ended-status {
...
@@ -203,6 +184,63 @@ section.combined-open-ended-status {
}
}
}
}
// Problem Section Controls
.visibility-control
,
.visibility-control-prompt
{
display
:
block
;
height
:
40px
;
width
:
100%
;
.inner
{
float
:
left
;
height
:
5px
;
margin-top
:
$baseline
;
border-top
:
1px
dotted
#ddd
;
width
:
85%
;
}
}
.section-header
{
display
:
block
;
text-align
:
center
;
width
:
15%
;
float
:
right
;
padding-top
:
$baseline
/
2
;
font-size
:
.9em
;
}
// Rubric Styling
.wrapper-score-selection
{
display
:
table-cell
;
padding
:
0
$baseline
/
2
;
width
:
20px
;
vertical-align
:
middle
;
}
.wrappable
{
display
:
table-cell
;
padding
:
$baseline
/
4
0
;
}
.rubric-list-item
{
margin-bottom
:
2px
;
padding
:
$baseline
/
2
;
&
:hover
{
background-color
:
#eee
;
}
}
span
.rubric-category
{
display
:
block
;
width
:
100%
;
border-bottom
:
1px
solid
lightgray
;
font-size
:
.9em
;
}
div
.combined-rubric-container
{
div
.combined-rubric-container
{
margin
:
15px
;
margin
:
15px
;
padding-bottom
:
5px
;
padding-bottom
:
5px
;
...
@@ -217,21 +255,9 @@ div.combined-rubric-container {
...
@@ -217,21 +255,9 @@ div.combined-rubric-container {
&
.rubric-list-item
{
&
.rubric-list-item
{
margin-bottom
:
2px
;
margin-bottom
:
2px
;
padding
:
0px
;
padding
:
$baseline
/
2
;
}
}
}
}
.score-selection
{
//display: inline-block;
//padding-right: $baseline/2;
//width: 5%;
//vertical-align: center;
}
.wrappable
{
//display: inline-block;
//width: 94%;
}
}
}
h4
{
h4
{
padding-top
:
10px
;
padding-top
:
10px
;
...
...
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
ec99e20a
...
@@ -561,11 +561,11 @@ class @CombinedOpenEnded
...
@@ -561,11 +561,11 @@ class @CombinedOpenEnded
@
prompt_container
.
slideToggle
()
@
prompt_container
.
slideToggle
()
@
prompt_container
.
toggleClass
(
'open'
)
@
prompt_container
.
toggleClass
(
'open'
)
if
@
question_header
.
text
()
==
"(Hide)"
if
@
question_header
.
text
()
==
"(Hide)"
new_text
=
"
↧
Show Prompt"
new_text
=
"Show Prompt"
Logger
.
log
'oe_hide_question'
,
{
location
:
@
location
}
Logger
.
log
'oe_hide_question'
,
{
location
:
@
location
}
else
else
Logger
.
log
'oe_show_question'
,
{
location
:
@
location
}
Logger
.
log
'oe_show_question'
,
{
location
:
@
location
}
new_text
=
"
↥
Hide Prompt"
new_text
=
"Hide Prompt"
@
question_header
.
text
(
new_text
)
@
question_header
.
text
(
new_text
)
return
false
return
false
...
@@ -573,13 +573,13 @@ class @CombinedOpenEnded
...
@@ -573,13 +573,13 @@ class @CombinedOpenEnded
if
@
prompt_container
.
is
(
":hidden"
)
==
true
if
@
prompt_container
.
is
(
":hidden"
)
==
true
@
prompt_container
.
slideToggle
()
@
prompt_container
.
slideToggle
()
@
prompt_container
.
toggleClass
(
'open'
)
@
prompt_container
.
toggleClass
(
'open'
)
@
question_header
.
text
(
"
↥
Hide Prompt"
)
@
question_header
.
text
(
"Hide Prompt"
)
prompt_hide
:
()
=>
prompt_hide
:
()
=>
if
@
prompt_container
.
is
(
":visible"
)
==
true
if
@
prompt_container
.
is
(
":visible"
)
==
true
@
prompt_container
.
slideToggle
()
@
prompt_container
.
slideToggle
()
@
prompt_container
.
toggleClass
(
'open'
)
@
prompt_container
.
toggleClass
(
'open'
)
@
question_header
.
text
(
"
↧
Show Prompt"
)
@
question_header
.
text
(
"Show Prompt"
)
log_feedback_click
:
(
event
)
->
log_feedback_click
:
(
event
)
->
link_text
=
@
$
(
event
.
target
).
html
()
link_text
=
@
$
(
event
.
target
).
html
()
...
...
lms/static/coffee/src/staff_grading/test_grading.html
View file @
ec99e20a
...
@@ -23,7 +23,11 @@
...
@@ -23,7 +23,11 @@
</section>
</section>
<section
class=
"rubric-wrapper"
>
<section
class=
"rubric-wrapper"
>
<h3>
Rubric
</h3>
<div
class=
"visibility-control visibility-control-rubric"
>
<div
class=
"inner"
>
</div>
<span
class=
"section-header section-header-rubric"
>
Rubric
</span>
</div>
<div
class=
"rubric-container"
>
<div
class=
"rubric-container"
>
</div>
</div>
...
...
lms/templates/combinedopenended/combined_open_ended.html
View file @
ec99e20a
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<div
class=
"visibility-control visibility-control-prompt"
>
<div
class=
"visibility-control visibility-control-prompt"
>
<div
class=
"inner"
>
<div
class=
"inner"
>
</div>
</div>
<
a
href=
""
class=
"question-header"
>
↥
Hide Prompt
</a
>
<
span
class=
"section-header question-header section-header-prompt"
>
Prompt
</span
>
</div>
</div>
<div
class=
"problem-container"
>
<div
class=
"problem-container"
>
% for item in items:
% for item in items:
...
...
lms/templates/combinedopenended/openended/open_ended.html
View file @
ec99e20a
...
@@ -3,7 +3,11 @@
...
@@ -3,7 +3,11 @@
<div
class=
"prompt"
>
<div
class=
"prompt"
>
${prompt|n}
${prompt|n}
</div>
</div>
<h4>
Response
</h4>
<div
class=
"visibility-control visibility-control-response"
>
<div
class=
"inner"
>
</div>
<span
class=
"section-header section-header-response"
>
Response
</span>
</div>
<textarea
rows=
"${rows}"
cols=
"${cols}"
name=
"answer"
class=
"answer short-form-response"
id=
"input_${id}"
>
${previous_answer|h}
</textarea>
<textarea
rows=
"${rows}"
cols=
"${cols}"
name=
"answer"
class=
"answer short-form-response"
id=
"input_${id}"
>
${previous_answer|h}
</textarea>
<div
class=
"message-wrapper"
></div>
<div
class=
"message-wrapper"
></div>
...
...
lms/templates/combinedopenended/openended/open_ended_rubric.html
View file @
ec99e20a
<form
class=
"rubric-template"
id=
"inputtype_${id}"
xmlns=
"http://www.w3.org/1999/html"
>
<form
class=
"rubric-template"
id=
"inputtype_${id}"
xmlns=
"http://www.w3.org/1999/html"
>
<h3>
Rubric
</h3>
<div
class=
"visibility-control visibility-control-rubric"
>
<div
class=
"inner"
>
</div>
<span
class=
"section-header section-header-rubric"
>
Rubric
</span>
</div>
<p>
Select the criteria you feel best represents this submission in each category.
</p>
<p>
Select the criteria you feel best represents this submission in each category.
</p>
<div
class=
"rubric"
>
<div
class=
"rubric"
>
% for i in range(len(categories)):
% for i in range(len(categories)):
...
@@ -14,7 +18,7 @@
...
@@ -14,7 +18,7 @@
<li
class=
"rubric-list-item"
>
<li
class=
"rubric-list-item"
>
% endif
% endif
<label
class=
"rubric-label"
for=
"score-${i}-${j}"
>
<label
class=
"rubric-label"
for=
"score-${i}-${j}"
>
<
input
type=
"radio"
class=
"score-selection"
data-category=
"${i}"
name=
"score-selection-${i}"
id=
"score-${i}-${j}"
value=
"${option['points']}"
/
>
<
span
class=
"wrapper-score-selection"
><input
type=
"radio"
class=
"score-selection"
data-category=
"${i}"
name=
"score-selection-${i}"
id=
"score-${i}-${j}"
value=
"${option['points']}"
/></span
>
<span
class=
"wrappable"
>
${option['points']} points : ${option['text']}
</span>
<span
class=
"wrappable"
>
${option['points']} points : ${option['text']}
</span>
</label>
</label>
</li>
</li>
...
...
lms/templates/combinedopenended/selfassessment/self_assessment_prompt.html
View file @
ec99e20a
...
@@ -3,10 +3,11 @@
...
@@ -3,10 +3,11 @@
<div
class=
"error"
></div>
<div
class=
"error"
></div>
<div
class=
"prompt"
>
<div
class=
"prompt"
>
${prompt}
${prompt}
<div
class=
"visibility-control visibility-control-response"
>
<div
class=
"inner"
>
</div>
<span
class=
"section-header section-header-response"
>
Response
</span>
</div>
</div>
<h4>
Response
</h4>
<div>
<textarea
name=
"answer"
class=
"answer short-form-response"
cols=
"70"
rows=
"20"
>
${previous_answer|n}
</textarea>
<textarea
name=
"answer"
class=
"answer short-form-response"
cols=
"70"
rows=
"20"
>
${previous_answer|n}
</textarea>
</div>
</div>
...
...
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