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
731ea226
Commit
731ea226
authored
Nov 19, 2012
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
settings - added disabled states for course name/org/number
parent
968b604b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
19 deletions
+36
-19
cms/static/sass/_settings.scss
+24
-12
cms/templates/settings.html
+12
-7
No files found.
cms/static/sass/_settings.scss
View file @
731ea226
...
@@ -141,6 +141,11 @@
...
@@ -141,6 +141,11 @@
border-color
:
$blue
;
border-color
:
$blue
;
outline
:
0
;
outline
:
0
;
}
}
&
:disabled
{
color
:
$darkGrey
;
background
:
$lightGrey
;
}
}
}
::-webkit-input-placeholder
{
::-webkit-input-placeholder
{
...
@@ -564,14 +569,14 @@
...
@@ -564,14 +569,14 @@
}
}
.grade-slider
{
.grade-slider
{
float
:
lef
t
;
float
:
righ
t
;
width
:
560px
;
width
:
95%
;
height
:
6
0px
;
height
:
8
0px
;
.grade-bar
{
.grade-bar
{
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
height
:
4
0px
;
height
:
5
0px
;
background
:
$lightGrey
;
background
:
$lightGrey
;
.increments
{
.increments
{
...
@@ -579,7 +584,7 @@
...
@@ -579,7 +584,7 @@
li
{
li
{
position
:
absolute
;
position
:
absolute
;
top
:
4
2px
;
top
:
5
2px
;
width
:
30px
;
width
:
30px
;
margin-left
:
-15px
;
margin-left
:
-15px
;
font-size
:
9px
;
font-size
:
9px
;
...
@@ -637,7 +642,7 @@
...
@@ -637,7 +642,7 @@
li
{
li
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
height
:
4
0px
;
height
:
5
0px
;
text-align
:
right
;
text-align
:
right
;
&
:hover
,
&
:hover
,
...
@@ -647,6 +652,11 @@
...
@@ -647,6 +652,11 @@
}
}
}
}
&
.is-dragging
{
}
.remove-button
{
.remove-button
{
display
:
none
;
display
:
none
;
position
:
absolute
;
position
:
absolute
;
...
@@ -678,16 +688,16 @@
...
@@ -678,16 +688,16 @@
.letter-grade
{
.letter-grade
{
display
:
block
;
display
:
block
;
margin
:
7px
5px
0
0
;
margin
:
10px
1
5px
0
0
;
font-size
:
1
4
px
;
font-size
:
1
6
px
;
font-weight
:
700
;
font-weight
:
700
;
line-height
:
14px
;
line-height
:
14px
;
}
}
.range
{
.range
{
display
:
block
;
display
:
block
;
margin-right
:
5px
;
margin-right
:
1
5px
;
font-size
:
9
px
;
font-size
:
10
px
;
line-height
:
12px
;
line-height
:
12px
;
}
}
...
@@ -695,14 +705,16 @@
...
@@ -695,14 +705,16 @@
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
right
:
-1px
;
right
:
-1px
;
height
:
4
0px
;
height
:
5
0px
;
width
:
2px
;
width
:
2px
;
background-color
:
#fff
;
background-color
:
#fff
;
@include
box-shadow
(
-1px
0
3px
rgba
(
0
,
0
,
0
,
0
.1
));
cursor
:
ew-resize
;
cursor
:
ew-resize
;
@include
transition
(
none
);
@include
transition
(
none
);
&
:hover
{
&
:hover
{
width
:
4
px
;
width
:
6
px
;
right
:
-2px
;
right
:
-2px
;
}
}
}
}
...
...
cms/templates/settings.html
View file @
731ea226
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
$
(
'.new-grade-button'
).
bind
(
'click'
,
addNewGrade
);
$
(
'.new-grade-button'
).
bind
(
'click'
,
addNewGrade
);
$body
.
on
(
'click'
,
'.remove-button'
,
removeGrade
);
$body
.
on
(
'click'
,
'.remove-button'
,
removeGrade
);
$
(
'.set-date'
).
datepicker
();
$
(
'.set-date'
).
datepicker
(
{
'dateFormat'
:
'm/d/yy'
}
);
})();
})();
function
addNewGrade
(
e
)
{
function
addNewGrade
(
e
)
{
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
<label
for=
"course-name-input"
>
Course Name:
</label>
<label
for=
"course-name-input"
>
Course Name:
</label>
<div
class=
"field"
>
<div
class=
"field"
>
<div
class=
"input"
>
<div
class=
"input"
>
<input
type=
"text"
class=
"long"
id=
"course-name-input"
>
<input
type=
"text"
class=
"long"
id=
"course-name-input"
disabled=
"disabled"
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
<label
for=
"course-organization-input"
>
Organization:
</label>
<label
for=
"course-organization-input"
>
Organization:
</label>
<div
class=
"field"
>
<div
class=
"field"
>
<div
class=
"input"
>
<div
class=
"input"
>
<input
type=
"text"
class=
"long"
id=
"course-organization-input"
>
<input
type=
"text"
class=
"long"
id=
"course-organization-input"
disabled=
"disabled"
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
<label
for=
"course-number-input"
>
Course Number:
</label>
<label
for=
"course-number-input"
>
Course Number:
</label>
<div
class=
"field"
>
<div
class=
"field"
>
<div
class=
"input"
>
<div
class=
"input"
>
<input
type=
"text"
class=
"short"
id=
"course-number-input"
>
<input
type=
"text"
class=
"short"
id=
"course-number-input"
disabled=
"disabled"
>
<span
class=
"tip tip-inline"
>
e.g. 101x
</span>
<span
class=
"tip tip-inline"
>
e.g. 101x
</span>
</div>
</div>
</div>
</div>
...
@@ -170,7 +170,7 @@
...
@@ -170,7 +170,7 @@
<label
for=
"course-start-date-input"
>
Course Start Date:
</label>
<label
for=
"course-start-date-input"
>
Course Start Date:
</label>
<div
class=
"field"
>
<div
class=
"field"
>
<div
class=
"input"
>
<div
class=
"input"
>
<input
type=
"text"
class=
"
date"
id=
"course-start-date-input
"
>
<input
type=
"text"
class=
"
start-date date set-date"
id=
"course-start-date-input"
placeholder=
"MM/DD/YYYY
"
>
<span
class=
"tip tip-inline"
>
First day the class begins
</span>
<span
class=
"tip tip-inline"
>
First day the class begins
</span>
</div>
</div>
</div>
</div>
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
<label
for=
"course-end-date-input"
>
Course End Date:
</label>
<label
for=
"course-end-date-input"
>
Course End Date:
</label>
<div
class=
"field"
>
<div
class=
"field"
>
<div
class=
"input"
>
<div
class=
"input"
>
<input
type=
"text"
class=
"
date"
id=
"course-end-date-input
"
>
<input
type=
"text"
class=
"
end-date date set-date"
id=
"course-end-date-input"
placeholder=
"MM/DD/YYYY
"
>
<span
class=
"tip tip-inline"
>
Last day the class begins
</span>
<span
class=
"tip tip-inline"
>
Last day the class begins
</span>
</div>
</div>
</div>
</div>
...
@@ -280,7 +280,6 @@
...
@@ -280,7 +280,6 @@
<div
class=
"field"
>
<div
class=
"field"
>
<div
class=
"input input-existing"
>
<div
class=
"input input-existing"
>
<div
class=
" current current-course-introduction-video"
>
<div
class=
" current current-course-introduction-video"
>
</div>
</div>
<a
href=
"#"
class=
"replace-item replace-course-introduction-video add-video-data"
id=
"course-introduction-video"
>
<a
href=
"#"
class=
"replace-item replace-course-introduction-video add-video-data"
id=
"course-introduction-video"
>
...
@@ -621,6 +620,12 @@
...
@@ -621,6 +620,12 @@
<a
href=
"#"
class=
"drag-bar"
></a>
<a
href=
"#"
class=
"drag-bar"
></a>
<a
href=
"#"
class=
"remove-button"
>
remove
</a>
<a
href=
"#"
class=
"remove-button"
>
remove
</a>
</li>
</li>
<li
class=
"bar-fail"
style=
"width: 50%;"
>
<span
class=
"letter-grade"
contenteditable
>
F
</span>
<span
class=
"range"
>
0-50
</span>
<a
href=
"#"
class=
"drag-bar"
></a>
<a
href=
"#"
class=
"remove-button"
>
remove
</a>
</li>
</ol>
</ol>
</div>
</div>
</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