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
75edc657
Commit
75edc657
authored
Jul 15, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Backbone notifications for setting graded status.
parent
5029f460
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
cms/djangoapps/contentstore/features/course-overview.feature
+9
-3
cms/djangoapps/contentstore/features/course-overview.py
+6
-0
cms/static/js/views/grader-select-view.js
+10
-1
No files found.
cms/djangoapps/contentstore/features/
studio-overview-togglesection
.feature
→
cms/djangoapps/contentstore/features/
course-overview
.feature
View file @
75edc657
Feature
:
Overview Toggle Section
In order to quickly view the details of a course's section
or to scan the inventory of sections
Feature
:
Course Overview
In order to quickly view the details of a course's section
and set release dates and grading
As a course author
I want to
toggle the visibility of each section's subsection details in the overview listing
I want to
use the course overview page
Scenario
:
The default layout for the overview page is to show sections in expanded view
Given
I have a course with multiple sections
...
...
@@ -57,3 +57,9 @@ Feature: Overview Toggle Section
And
I click the
"Expand All Sections"
link
Then
I see the
"Collapse All Sections"
link
And
all sections are expanded
Scenario
:
Notification is shown on grading status changes
Given
I have a course with 1 section
When
I navigate to the course overview page
And
I change an assignment's grading status
Then
I see a notification
cms/djangoapps/contentstore/features/
studio-overview-togglesection
.py
→
cms/djangoapps/contentstore/features/
course-overview
.py
View file @
75edc657
...
...
@@ -118,3 +118,9 @@ def all_sections_are_collapsed(step):
subsections
=
world
.
css_find
(
subsection_locator
)
for
index
in
range
(
len
(
subsections
)):
assert_false
(
world
.
css_visible
(
subsection_locator
,
index
=
index
))
@step
(
u"I change an assignment's grading status"
)
def
change_grading_status
(
step
):
world
.
css_find
(
'a.menu-toggle'
)
.
click
()
world
.
css_find
(
'.menu li'
)
.
first
.
click
()
cms/static/js/views/grader-select-view.js
View file @
75edc657
...
...
@@ -81,9 +81,18 @@ CMS.Views.OverviewAssignmentGrader = Backbone.View.extend({
this
.
removeMenu
(
e
);
var
saving
=
new
CMS
.
Views
.
Notification
.
Mini
({
title
:
gettext
(
'Saving'
)
+
'…'
});
saving
.
show
();
// TODO I'm not happy with this string fetch via the html for what should be an id. I'd rather use the id attr
// of the CourseGradingPolicy model or null for Not Graded (NOTE, change template's if check for is-selected accordingly)
this
.
assignmentGrade
.
save
(
'graderType'
,
$
(
e
.
target
).
text
());
this
.
assignmentGrade
.
save
(
'graderType'
,
$
(
e
.
target
).
text
(),
{
success
:
function
()
{
saving
.
hide
();
}}
);
this
.
render
();
}
...
...
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