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
f637cc57
Commit
f637cc57
authored
Oct 02, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #800 from MITx/feature/tomg/cms-release-flow
private/public unit
parents
91eb2cf9
76559af8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
330 additions
and
323 deletions
+330
-323
cms/static/sass/_base.scss
+2
-2
cms/static/sass/_subsection.scss
+6
-2
cms/static/sass/_unit.scss
+312
-307
cms/templates/unit.html
+10
-12
No files found.
cms/static/sass/_base.scss
View file @
f637cc57
...
...
@@ -183,8 +183,8 @@ label {
}
.row
{
margin-bottom
:
1
5
px
;
padding-bottom
:
1
5
px
;
margin-bottom
:
1
0
px
;
padding-bottom
:
1
0
px
;
border-bottom
:
1px
solid
#cbd1db
;
}
}
...
...
cms/static/sass/_subsection.scss
View file @
f637cc57
...
...
@@ -83,7 +83,7 @@
label
{
display
:
inline-block
!
important
;
margin-right
:
10px
;
line-height
:
3
1px
;
line-height
:
2
1px
;
}
a
{
...
...
@@ -100,6 +100,10 @@
.large-toggle
{
width
:
41px
;
background
:
url(../img/large-toggles.png)
no-repeat
;
background-position
:
0
-5px
;
background-position
:
0
-50px
;
.hidden
{
background-position
:
0
-5px
;
}
}
}
cms/static/sass/_unit.scss
View file @
f637cc57
.unit
.main-wrapper
,
.subsection
.main-wrapper
{
margin
:
40px
;
margin
:
40px
;
}
.main-column
{
float
:
left
;
width
:
70%
;
float
:
left
;
width
:
70%
;
}
.unit-body.published
{
.components
>
li
{
border
:
none
;
.components
>
li
{
border
:
none
;
.rendered-component
{
padding
:
0
20px
;
}
.rendered-component
{
padding
:
0
20px
;
}
}
}
.unit-body
{
.breadcrumbs
{
border-radius
:
3px
3px
0
0
;
border-bottom
:
1px
solid
#cbd1db
;
background
:
-webkit-linear-gradient
(
top
,
rgba
(
255
,
255
,
255
,
.3
)
,
rgba
(
255
,
255
,
255
,
0
)
70%
)
#edf1f5
;
box-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,
.7
)
inset
;
@include
clearfix
;
li
{
float
:
left
;
}
a
,
.current-page
{
display
:
block
;
padding
:
15px
35px
15px
30px
;
font-size
:
14px
;
background
:
url(../img/breadcrumb-arrow.png)
no-repeat
right
center
;
}
.breadcrumbs
{
border-radius
:
3px
3px
0
0
;
border-bottom
:
1px
solid
#cbd1db
;
background
:
-webkit-linear-gradient
(
top
,
rgba
(
255
,
255
,
255
,
.3
)
,
rgba
(
255
,
255
,
255
,
0
)
70%
)
#edf1f5
;
box-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,
.7
)
inset
;
@include
clearfix
;
li
{
float
:
left
;
}
h2
{
margin
:
30px
40px
;
color
:
#646464
;
font-size
:
19px
;
font-weight
:
300
;
letter-spacing
:
1px
;
text-transform
:
uppercase
;
a
,
.current-page
{
display
:
block
;
padding
:
15px
35px
15px
30px
;
font-size
:
14px
;
background
:
url(../img/breadcrumb-arrow.png)
no-repeat
right
center
;
}
}
h2
{
margin
:
30px
40px
;
color
:
#646464
;
font-size
:
19px
;
font-weight
:
300
;
letter-spacing
:
1px
;
text-transform
:
uppercase
;
}
.components
{
>
li
{
position
:
relative
;
z-index
:
10
;
margin
:
20px
40px
;
border
:
1px
solid
#d1ddec
;
border-radius
:
3px
;
background
:
#fff
;
-webkit-transition
:
border-color
.15s
;
&
:hover
{
border-color
:
#6696d7
;
.drag-handle
,
.component-actions
a
{
background-color
:
$blue
;
}
.components
{
>
li
{
position
:
relative
;
z-index
:
10
;
margin
:
20px
40px
;
border
:
1px
solid
#d1ddec
;
border-radius
:
3px
;
background
:
#fff
;
-webkit-transition
:
border-color
.15s
;
.drag-handle
{
border-color
:
$blue
;
}
}
&
:hover
{
border-color
:
#6696d7
;
&
.editing
{
border-color
:
#6696d7
;
.drag-handle
,
.component-actions
a
{
background-color
:
$blue
;
}
&
:hover
{
.drag-handle
,
.component-actions
a
{
background-color
:
$blue
;
}
.drag-handle
{
border-color
:
$blue
;
}
}
.drag-handle
{
border-color
:
$blue
;
}
}
}
.rendered-component
{
padding
:
40px
20px
20px
;
}
.component-actions
{
position
:
absolute
;
top
:
4px
;
right
:
4px
;
-webkit-transition
:
opacity
.15s
;
}
.edit-button
,
.delete-button
{
float
:
left
;
padding
:
3px
10px
4px
;
margin-left
:
3px
;
border
:
1px
solid
#fff
;
border-radius
:
3px
;
background
:
#d1ddec
;
font-size
:
12px
;
color
:
#fff
;
-webkit-transition
:
all
.15s
;
&
:hover
{
background-color
:
$blue
;
color
:
#fff
;
}
&
.editing
{
border-color
:
#6696d7
;
.edit-icon
,
.delete-icon
{
margin-right
:
4px
;
}
}
.drag-handle
{
position
:
absolute
;
display
:
block
;
top
:
-1px
;
right
:
-16px
;
z-index
:
-1
;
width
:
15px
;
height
:
100%
;
border-radius
:
0
3px
3px
0
;
border
:
1px
solid
#d1ddec
;
background
:
url(../img/drag-handles.png)
center
no-repeat
#d1ddec
;
cursor
:
move
;
-webkit-transition
:
all
.15s
;
}
&
.new-component-item
{
padding
:
0
;
border
:
1px
solid
#8891a1
;
border-radius
:
3px
;
background
:
-webkit-linear-gradient
(
top
,
rgba
(
255
,
255
,
255
,
.3
)
,
rgba
(
255
,
255
,
255
,
0
))
#d1dae3
;
box-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,
.2
)
inset
;
-webkit-transition
:
background-color
.15s
,
border-color
.15s
;
&
:hover
{
.drag-handle
,
.component-actions
a
{
background-color
:
$blue
;
}
&
.adding
{
background-color
:
$blue
;
border-color
:
#437fbf
;
}
.drag-handle
{
border-color
:
$blue
;
}
}
}
.new-component-button
{
display
:
block
;
padding
:
20px
;
text-align
:
center
;
color
:
#6d788b
;
}
.rendered-component
{
padding
:
40px
20px
20px
;
}
h5
{
margin-bottom
:
8px
;
color
:
#fff
;
font-weight
:
700
;
}
.component-actions
{
position
:
absolute
;
top
:
4px
;
right
:
4px
;
-webkit-transition
:
opacity
.15s
;
}
.rendered-component
{
display
:
none
;
background
:
#fff
;
border-radius
:
3px
3px
0
0
;
}
.edit-button
,
.delete-button
{
float
:
left
;
padding
:
3px
10px
4px
;
margin-left
:
3px
;
border
:
1px
solid
#fff
;
border-radius
:
3px
;
// background: $blue;
background
:
#d1ddec
;
font-size
:
12px
;
color
:
#fff
;
-webkit-transition
:
all
.15s
;
&
:hover
{
background-color
:
$blue
;
color
:
#fff
;
}
.edit-icon
,
.delete-icon
{
margin-right
:
4px
;
}
}
.new-component-type
,
.new-component-template
{
@include
clearfix
;
a
{
position
:
relative
;
float
:
left
;
width
:
100px
;
height
:
100px
;
margin-right
:
10px
;
margin-bottom
:
10px
;
border-radius
:
8px
;
font-size
:
13px
;
line-height
:
14px
;
color
:
#fff
;
text-align
:
center
;
box-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
.4
)
,
0
1px
0
rgba
(
255
,
255
,
255
,
.4
)
inset
;
-webkit-transition
:
background-color
.15s
;
.drag-handle
{
position
:
absolute
;
display
:
block
;
top
:
-1px
;
right
:
-16px
;
z-index
:
-1
;
width
:
15px
;
height
:
100%
;
border-radius
:
0
3px
3px
0
;
border
:
1px
solid
#d1ddec
;
background
:
url(../img/drag-handles.png)
center
no-repeat
#d1ddec
;
cursor
:
move
;
-webkit-transition
:
all
.15s
;
&
:hover
{
background-color
:
rgba
(
255
,
255
,
255
,
.2
);
}
&
.new-component-item
{
padding
:
0
;
border
:
1px
solid
#8891a1
;
border-radius
:
3px
;
background
:
-webkit-linear-gradient
(
top
,
rgba
(
255
,
255
,
255
,
.3
)
,
rgba
(
255
,
255
,
255
,
0
))
#d1dae3
;
box-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,
.2
)
inset
;
-webkit-transition
:
background-color
.15s
,
border-color
.15s
;
&
.adding
{
background-color
:
$blue
;
border-color
:
#437fbf
;
}
.new-component-button
{
display
:
block
;
padding
:
20px
;
text-align
:
center
;
color
:
#6d788b
;
}
h5
{
margin-bottom
:
8px
;
color
:
#fff
;
font-weight
:
700
;
}
.rendered-component
{
display
:
none
;
background
:
#fff
;
border-radius
:
3px
3px
0
0
;
}
.new-component-type
,
.new-component-template
{
@include
clearfix
;
a
{
position
:
relative
;
float
:
left
;
width
:
100px
;
height
:
100px
;
margin-right
:
10px
;
margin-bottom
:
10px
;
border-radius
:
8px
;
font-size
:
13px
;
line-height
:
14px
;
color
:
#fff
;
text-align
:
center
;
box-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
.4
)
,
0
1px
0
rgba
(
255
,
255
,
255
,
.4
)
inset
;
-webkit-transition
:
background-color
.15s
;
&
:hover
{
background-color
:
rgba
(
255
,
255
,
255
,
.2
);
}
.name
{
position
:
absolute
;
bottom
:
5px
;
left
:
0
;
width
:
100%
;
padding
:
10px
;
box-sizing
:
border-box
;
}
}
}
.new-component-template
{
a
{
height
:
60px
;
}
}
.new-component
,
.new-component-templates
{
display
:
none
;
padding
:
20px
;
.cancel-button
{
@include
blue-button
;
border-color
:
#30649c
;
}
}
.name
{
position
:
absolute
;
bottom
:
5px
;
left
:
0
;
width
:
100%
;
padding
:
10px
;
box-sizing
:
border-box
;
}
}
}
}
.component-editor
{
@include
edit-box
;
display
:
none
;
padding
:
20px
;
border-radius
:
0
0
3px
3px
;
background
:
-webkit-linear-gradient
(
top
,
rgba
(
0
,
0
,
0
,
0
)
,
rgba
(
0
,
0
,
0
,
.1
))
$blue
;
.module-editor
{
background
:
white
;
.new-component-template
{
a
{
height
:
60px
;
}
}
h5
{
margin-bottom
:
8px
;
color
:
#fff
;
font-weight
:
700
;
}
.new-component
,
.new-component-templates
{
display
:
none
;
padding
:
20px
;
.save-button
{
margin-right
:
8px
;
.cancel-button
{
@include
blue-button
;
border-color
:
#30649c
;
}
}
}
}
}
}
.unit-properties
{
.window-contents
{
padding
:
10px
20px
;
}
.component-editor
{
@include
edit-box
;
display
:
none
;
padding
:
20px
;
border-radius
:
0
0
3px
3px
;
background
:
-webkit-linear-gradient
(
top
,
rgba
(
0
,
0
,
0
,
0
)
,
rgba
(
0
,
0
,
0
,
.1
))
$blue
;
.unit-actions
{
border-bottom
:
none
;
padding-bottom
:
0
;
.module-editor
{
background
:
white
;
}
.published-alert
{
padding
:
10px
;
border
:
1px
solid
#edbd3c
;
border-radius
:
3px
;
background
:
#fbf6e1
;
font-size
:
14px
;
line-height
:
1
.4
;
div
{
margin-top
:
15px
;
}
h5
{
margin-bottom
:
8px
;
color
:
#fff
;
font-weight
:
700
;
}
.s
tatus
{
display
:
none
;
.s
ave-button
{
margin-right
:
8px
;
}
}
}
.visibility-options
.option
{
margin-right
:
10px
;
padding
:
3px
13px
6px
;
border-radius
:
3px
;
background
:
#edf1f5
;
&
.checked
{
background
:
#d1dae3
;
}
input
[
type
=
"radio"
]
{
margin-right
:
7px
;
}
.unit-properties
{
.window-contents
{
padding
:
10px
20px
;
}
.unit-actions
{
border-bottom
:
none
;
padding-bottom
:
0
;
}
.published-alert
{
padding
:
10px
;
border
:
1px
solid
#edbd3c
;
border-radius
:
3px
;
background
:
#fbf6e1
;
font-size
:
14px
;
line-height
:
1
.4
;
div
{
margin-top
:
15px
;
}
}
.save-button
{
@include
white-button
;
margin-top
:
10px
;
}
.visibility-options
.option
{
margin-right
:
10px
;
padding
:
3px
13px
6px
;
border-radius
:
3px
;
background
:
#edf1f5
;
.preview-button
{
@include
white-button
;
margin-top
:
10px
;
&
.checked
{
background
:
#d1dae3
;
}
.publish-button
{
@include
orange-button
;
margin-top
:
10px
;
input
[
type
=
"radio"
]
{
margin-right
:
7px
;
}
}
.status
{
font-size
:
12px
;
.release-button
{
@include
blue-button
;
strong
{
font-weight
:
700
;
}
}
.preview-button
{
@include
white-button
;
margin-bottom
:
10px
;
}
.publish-button
{
@include
orange-button
;
}
.save-button
{
@include
blue-button
;
}
.save-button
,
.preview-button
,
.publish-button
{
font-size
:
11px
;
margin-top
:
10px
;
padding
:
6px
15px
8px
;
}
}
.unit-history
{
&
.collapsed
{
h4
{
border-bottom
:
none
;
border-radius
:
3px
;
}
&
.collapsed
{
h4
{
border-bottom
:
none
;
border-radius
:
3px
;
}
.window-contents
{
display
:
none
;
}
.window-contents
{
display
:
none
;
}
}
ol
{
border
:
1px
solid
#ced2db
;
ol
{
border
:
1px
solid
#ced2db
;
li
{
display
:
block
;
padding
:
6px
8px
8px
10px
;
background
:
#edf1f5
;
font-size
:
12px
;
li
{
display
:
block
;
padding
:
6px
8px
8px
10px
;
background
:
#edf1f5
;
font-size
:
12px
;
&
:hover
{
background
:
#fffcf1
;
&
:hover
{
background
:
#fffcf1
;
.item-actions
{
display
:
block
;
}
}
.item-actions
{
display
:
block
;
}
}
&
.checked
{
background
:
#d1dae3
;
}
&
.checked
{
background
:
#d1dae3
;
}
.item-actions
{
display
:
none
;
}
.item-actions
{
display
:
none
;
}
input
[
type
=
"radio"
]
{
margin-right
:
7px
;
}
}
input
[
type
=
"radio"
]
{
margin-right
:
7px
;
}
}
}
}
.unit-location
{
.url
{
width
:
100%
;
margin-bottom
:
10px
;
box-shadow
:
none
;
}
.url
{
width
:
100%
;
margin-bottom
:
10px
;
box-shadow
:
none
;
}
.window-contents
>
ol
{
@include
tree-view
;
.window-contents
>
ol
{
@include
tree-view
;
ol
{
.section-item
{
padding-left
:
30px
;
}
ol
{
.section-item
{
padding-left
:
30px
;
}
.new-unit-item
{
margin-left
:
30px
;
}
}
.new-unit-item
{
margin-left
:
30px
;
}
}
ol
ol
{
.section-item
{
padding-left
:
50px
;
}
ol
ol
{
.section-item
{
padding-left
:
50px
;
}
.new-unit-item
{
margin-left
:
50px
;
}
}
.new-unit-item
{
margin-left
:
50px
;
}
}
}
}
cms/templates/unit.html
View file @
f637cc57
...
...
@@ -49,8 +49,8 @@
</article>
</div>
<div
class=
"sidebar
wip-box
"
>
<div
class=
"unit-properties window"
>
<div
class=
"sidebar"
>
<div
class=
"unit-properties window
wip-box
"
>
<h4>
Unit Properties
</h4>
<div
class=
"window-contents"
>
<div
class=
"due-date-input row"
>
...
...
@@ -61,21 +61,19 @@
<a
href=
"#"
class=
"remove-date"
>
Remove due date
</a>
</div>
</div>
<div
class=
"visibility row"
>
<label>
Visibility:
<!-- <span class="description">Shows or hides this subsection and the units within it.</span>-->
</label>
<a
href=
"#"
class=
"toggle-off"
>
hidden
</a><a
href=
"#"
class=
"large-toggle"
></a><a
href=
"#"
class=
"toggle-on"
>
shown
</a>
</div>
<div
class=
"status row"
>
<label
class=
"inline-label"
>
Status:
</label>
<div
class=
"row visibility"
>
<label
class=
"inline-label"
>
Visibility:
</label>
<select>
<option>
Draft
</option>
<option>
Released
</option>
<option>
Public
</option>
<option>
Private
</option>
</select>
</div>
<div
class=
"row status"
>
<p>
This unit is scheduled to be released to
<strong>
students
</strong>
on
<strong>
10/12/2012
</strong>
with the subsection
<a
href=
"#"
>
"Administrivia and Circuit Elements."
</a></p>
</div>
<div
class=
"row unit-actions"
>
<a
href=
"#"
class=
"save-button"
>
Save
Draft
</a>
<a
href=
"#"
class=
"save-button"
>
Save
</a>
<a
href=
"preview.html"
target=
"_blank"
class=
"preview-button"
>
Preview
</a>
<a
href=
"#"
class=
"release-button"
>
Release
</a>
</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