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
80b0edf0
Commit
80b0edf0
authored
Aug 06, 2015
by
Tasawer
Committed by
Tasawer Nawaz
Aug 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing course settings page for change in minimum grade
ECOM-1987
parent
df936837
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
cms/static/js/views/settings/grading.js
+1
-1
cms/static/sass/views/_settings.scss
+10
-0
cms/templates/settings_graders.html
+2
-1
No files found.
cms/static/js/views/settings/grading.js
View file @
80b0edf0
...
...
@@ -102,7 +102,7 @@ var GradingView = ValidatingView.extend({
renderMinimumGradeCredit
:
function
()
{
var
minimum_grade_credit
=
this
.
model
.
get
(
'minimum_grade_credit'
);
this
.
$el
.
find
(
'#course-minimum_grade_credit'
).
val
(
Math
.
round
(
parseFloat
(
minimum_grade_credit
)
*
100
)
+
'%'
Math
.
round
(
parseFloat
(
minimum_grade_credit
)
*
100
)
);
},
setGracePeriod
:
function
(
event
)
{
...
...
cms/static/sass/views/_settings.scss
View file @
80b0edf0
...
...
@@ -225,6 +225,16 @@
}
}
}
.input-minimum-grade
{
@include
float
(
left
);
@include
size
(
92%
,
100%
);
}
.minimum-grade-percentage-sign
{
@include
line-height
(
30
);
padding-left
:
(
$baseline
/
4
);;
}
textarea
.long
{
height
:
(
$baseline
*
5
);
...
...
cms/templates/settings_graders.html
View file @
80b0edf0
...
...
@@ -86,7 +86,8 @@
<ol
class=
"list-input"
>
<li
class=
"field text"
id=
"field-course-minimum_grade_credit"
>
<label
for=
"course-minimum_grade_credit"
>
${_("Minimum Credit-Eligible Grade:")}
</label>
<input
type=
"text"
class=
"short time"
id=
"course-minimum_grade_credit"
value=
"0"
placeholder=
"80%"
autocomplete=
"off"
aria-describedby=
"minimum_grade_description"
/>
<input
type=
"text"
class=
"short time input-minimum-grade"
id=
"course-minimum_grade_credit"
value=
"0"
placeholder=
"80"
autocomplete=
"off"
aria-describedby=
"minimum_grade_description"
/>
<span
class=
"minimum-grade-percentage-sign"
>
%
</span>
<span
class=
"tip tip-inline"
id=
"minimum_grade_description"
>
${_("Must be greater than or equal to the course passing grade")}
</span>
</li>
</ol>
...
...
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