Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
44196db2
Commit
44196db2
authored
Dec 07, 2015
by
Diana Huang
Committed by
Andy Armstrong
Dec 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new staff grading section.
parent
dbf4d08d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletions
+19
-1
openassessment/templates/openassessmentblock/staff_area/oa_staff_area.html
+14
-0
openassessment/xblock/static/js/spec/lms/oa_staff_area.js
+2
-1
test/acceptance/tests.py
+3
-0
No files found.
openassessment/templates/openassessmentblock/staff_area/oa_staff_area.html
View file @
44196db2
...
...
@@ -5,6 +5,7 @@
<div
class=
"wrapper--staff-toolbar"
>
<button
class=
"ui-staff__button button-staff-tools"
data-panel=
"openassessment__staff-tools"
>
{% trans "Manage Individual Learners" %}
</button>
<button
class=
"ui-staff__button button-staff-info"
data-panel=
"openassessment__staff-info"
>
{% trans "View Assignment Statistics" %}
</button>
<button
class=
"ui-staff__button button-staff-grading"
data-panel=
"openassessment__staff-grading"
>
{% trans "Grade Available Responses" %}
</button>
</div>
<div
class=
"openassessment__staff-tools wrapper--staff-tools wrapper--ui-staff is--hidden"
>
...
...
@@ -163,4 +164,17 @@
</div>
</div>
</div>
<div
class=
"openassessment__staff-grading wrapper--staff-grading wrapper--ui-staff is--hidden"
>
<div
class=
"staff-grading ui-staff"
>
<h2
class=
"staff-grading__title ui-staff__title"
>
<span
class=
"staff-info__title__copy"
>
{% trans "Staff Grading" %}
</span>
<button
class=
"ui-staff_close_button"
><span
class=
"sr"
>
{% trans "Close" %}
</span>
<i
class=
"icon fa fa-close"
aria-hidden=
"true"
></i></button>
</h2>
<div
class=
"staff-info__content ui-staff__content"
>
</div>
</div>
</div>
</div>
openassessment/xblock/static/js/spec/lms/oa_staff_area.js
View file @
44196db2
...
...
@@ -204,9 +204,10 @@ describe('OpenAssessment.StaffAreaView', function() {
it
(
'shows the correct buttons with no panels initially'
,
function
()
{
var
view
=
createStaffArea
(),
$buttons
=
$
(
'.ui-staff__button'
,
view
.
element
);
expect
(
$buttons
.
length
).
toBe
(
2
);
expect
(
$buttons
.
length
).
toBe
(
3
);
expect
(
$
(
$buttons
[
0
]).
text
().
trim
()).
toEqual
(
'Manage Individual Learners'
);
expect
(
$
(
$buttons
[
1
]).
text
().
trim
()).
toEqual
(
'View Assignment Statistics'
);
expect
(
$
(
$buttons
[
2
]).
text
().
trim
()).
toEqual
(
'Grade Available Responses'
);
expect
(
getVisibleStaffPanels
(
view
).
length
).
toBe
(
0
);
});
...
...
test/acceptance/tests.py
View file @
44196db2
...
...
@@ -381,6 +381,8 @@ class StaffAreaTest(OpenAssessmentTest):
self
.
assertEqual
(
self
.
staff_area_page
.
selected_button_names
,
[])
self
.
staff_area_page
.
click_staff_toolbar_button
(
"staff-tools"
)
self
.
assertEqual
(
self
.
staff_area_page
.
selected_button_names
,
[
"MANAGE INDIVIDUAL LEARNERS"
])
self
.
staff_area_page
.
click_staff_toolbar_button
(
"staff-grading"
)
self
.
assertEqual
(
self
.
staff_area_page
.
selected_button_names
,
[
"GRADE AVAILABLE RESPONSES"
])
self
.
staff_area_page
.
click_staff_toolbar_button
(
"staff-info"
)
self
.
assertEqual
(
self
.
staff_area_page
.
selected_button_names
,
[
"VIEW ASSIGNMENT STATISTICS"
])
self
.
staff_area_page
.
click_staff_toolbar_button
(
"staff-info"
)
...
...
@@ -391,6 +393,7 @@ class StaffAreaTest(OpenAssessmentTest):
@ddt.data
(
(
"staff-tools"
,
"MANAGE INDIVIDUAL LEARNERS"
),
(
"staff-info"
,
"VIEW ASSIGNMENT STATISTICS"
),
(
"staff-grading"
,
"GRADE AVAILABLE RESPONSES"
),
)
@ddt.unpack
def
test_staff_area_panel
(
self
,
panel_name
,
button_label
):
...
...
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