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
c6cf4b5b
Commit
c6cf4b5b
authored
Oct 10, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #851 from MITx/feature/tomg/cas-edit-on-top
moved component editor to top
parents
a9560cdf
5fd912ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
18 deletions
+27
-18
cms/static/sass/_header.scss
+4
-0
cms/static/sass/_unit.scss
+15
-10
cms/templates/component.html
+7
-7
cms/templates/widgets/metadata-edit.html
+1
-1
No files found.
cms/static/sass/_header.scss
View file @
c6cf4b5b
...
...
@@ -13,6 +13,10 @@ body.no-header {
color
:
#fff
;
@include
box-shadow
(
0
1px
1px
rgba
(
0
,
0
,
0
,
0
.2
)
,
0
-1px
0px
rgba
(
255
,
255
,
255
,
0
.05
)
inset
);
.left
{
width
:
700px
;
}
.drop-icon
{
margin-left
:
5px
;
font-size
:
11px
;
...
...
cms/static/sass/_unit.scss
View file @
c6cf4b5b
...
...
@@ -75,15 +75,9 @@
&
.editing
{
border-color
:
#6696d7
;
&
:hover
{
.drag-handle
,
.component-actions
a
{
background-color
:
$blue
;
}
.drag-handle
{
border-color
:
$blue
;
}
.drag-handle
,
.component-actions
{
display
:
none
;
}
}
...
...
@@ -234,14 +228,24 @@
@include
edit-box
;
display
:
none
;
padding
:
20px
;
border-radius
:
0
0
3px
3px
;
border-radius
:
2px
2px
0
0
;
@include
linear-gradient
(
top
,
rgba
(
0
,
0
,
0
,
0
)
,
rgba
(
0
,
0
,
0
,
.1
));
background-color
:
$blue
;
color
:
#fff
;
@include
box-shadow
(
none
);
.metadata_edit
{
margin-bottom
:
20px
;
font-size
:
13px
;
li
{
margin-bottom
:
10px
;
}
label
{
display
:
inline-block
;
margin-right
:
10px
;
}
}
.CodeMirror
{
...
...
@@ -249,6 +253,7 @@
}
h3
{
margin-bottom
:
10px
;
font-size
:
18px
;
font-weight
:
700
;
}
...
...
cms/templates/component.html
View file @
c6cf4b5b
${preview}
<div
class=
"component-actions"
>
<a
href=
"#"
class=
"edit-button"
><span
class=
"edit-icon white"
></span>
Edit
</a>
<a
href=
"#"
class=
"delete-button"
><span
class=
"delete-icon white"
></span>
Delete
</a>
</div>
<a
href=
"#"
class=
"drag-handle"
></a>
<div
class=
"component-editor"
>
<div
class=
"module-editor"
>
${editor}
...
...
@@ -11,4 +5,9 @@ ${preview}
<a
href=
"#"
class=
"save-button"
>
Save
</a>
<a
href=
"#"
class=
"cancel-button"
>
Cancel
</a>
</div>
<div
class=
"component-actions"
>
<a
href=
"#"
class=
"edit-button"
><span
class=
"edit-icon white"
></span>
Edit
</a>
<a
href=
"#"
class=
"delete-button"
><span
class=
"delete-icon white"
></span>
Delete
</a>
</div>
<a
href=
"#"
class=
"drag-handle"
></a>
${preview}
\ No newline at end of file
cms/templates/widgets/metadata-edit.html
View file @
c6cf4b5b
...
...
@@ -3,7 +3,7 @@
<h3>
Metadata
</h3>
<ul>
% for keyname in editable_metadata_fields:
<li>
${keyname}:
<input
type=
'text'
data-metadata-name=
'${keyname}'
value=
'${metadata[keyname]}'
size=
'60'
/></li>
<li>
<label>
${keyname}:
</label>
<input
type=
'text'
data-metadata-name=
'${keyname}'
value=
'${metadata[keyname]}'
size=
'60'
/></li>
% endfor
</ul>
</section>
...
...
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