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
8abf93cc
Commit
8abf93cc
authored
Nov 16, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search and upload button added to widget
parent
9613f92f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
9 deletions
+54
-9
cms/static/sass/_assets.scss
+39
-1
cms/templates/unit.html
+15
-8
No files found.
cms/static/sass/_assets.scss
View file @
8abf93cc
...
...
@@ -108,13 +108,44 @@
.asset-library
{
@include
clearfix
;
display
:
block
;
&
.widget
{
position
:
absolute
;
left
:
50%
;
z-index
:
99999
;
width
:
900px
;
padding
:
20px
;
margin-left
:
-450px
;
z-index
:
99999
;
border-radius
:
3px
;
background
:
$lightGrey
;
header
{
height
:
40px
;
margin-bottom
:
20px
;
}
.close-button
{
@include
white-button
;
width
:
29px
;
height
:
29px
;
padding
:
0
;
border-radius
:
29px
;
text-align
:
center
;
.close-icon
{
margin-top
:
8px
;
}
}
.search
{
width
:
400px
;
height
:
38px
;
padding-left
:
36px
;
background-color
:
#fff
;
background-position
:
12px
10px
;
font-size
:
14px
;
}
.thumb-col
{
width
:
50px
;
...
...
@@ -124,6 +155,13 @@
width
:
50px
;
max-height
:
50px
;
}
.upload-button
{
@include
blue-button
;
float
:
right
;
padding
:
8px
30px
10px
;
font-size
:
12px
;
}
}
table
{
...
...
cms/templates/unit.html
View file @
8abf93cc
...
...
@@ -55,6 +55,13 @@
<script
type=
"text/template"
id=
"asset-library-widget"
>
<
article
class
=
"asset-library widget"
>
<
a
href
=
"#"
class
=
"close-button"
>
<
span
class
=
"close-icon"
><
/span
>
<
/a
>
<
header
>
<
input
type
=
"text"
class
=
"search"
>
<
a
href
=
"#"
class
=
"upload-button"
>
Upload
New
File
<
/a
>
<
/header
>
<
table
>
<
thead
>
<
tr
>
...
...
@@ -72,11 +79,11 @@
<
/div
>
<
/td
>
<
td
class
=
"name-col"
>
<
a
href
=
"#"
class
=
"filename"
>
my
-
image
.
jp
g
<
/a
>
<
a
href
=
"#"
class
=
"filename"
>
ut
-
logo
-
350
-
150
.
pn
g
<
/a
>
<
div
class
=
"embeddable-xml"
><
/div
>
<
/td
>
<
td
class
=
"date-col"
>
date
30
October
,
2012
at
07
:
17
PM
<
/td
>
<
td
class
=
"insert-col"
>
<
a
href
=
"#"
class
=
"insert-asset-button"
data
-
markup
=
"<img src='/c4x/Giannattasio/313/asset/ut-logo-350-150.png'/>"
>
Insert
<
/a
>
...
...
@@ -89,14 +96,14 @@
<
/div
>
<
/td
>
<
td
class
=
"name-col"
>
<
a
href
=
"#"
class
=
"filename"
>
asset
name
<
/a
>
<
a
href
=
"#"
class
=
"filename"
>
ut
-
logo
-
350
-
150
.
png
<
/a
>
<
div
class
=
"embeddable-xml"
><
/div
>
<
/td
>
<
td
class
=
"date-col"
>
date
30
October
,
2012
at
07
:
17
PM
<
/td
>
<
td
class
=
"insert-col"
>
<
a
href
=
"#"
class
=
"insert-asset-button"
>
Insert
<
/a
>
<
a
href
=
"#"
class
=
"insert-asset-button"
data
-
markup
=
"<img src='/c4x/Giannattasio/313/asset/ut-logo-350-150.png'/>"
>
Insert
<
/a
>
<
/td
>
<
/tr
>
<
tr
data
-
id
=
"id"
>
...
...
@@ -106,14 +113,14 @@
<
/div
>
<
/td
>
<
td
class
=
"name-col"
>
<
a
href
=
"#"
class
=
"filename"
>
asset
name
<
/a
>
<
a
href
=
"#"
class
=
"filename"
>
ut
-
logo
-
350
-
150
.
png
<
/a
>
<
div
class
=
"embeddable-xml"
><
/div
>
<
/td
>
<
td
class
=
"date-col"
>
date
30
October
,
2012
at
07
:
17
PM
<
/td
>
<
td
class
=
"insert-col"
>
<
a
href
=
"#"
class
=
"insert-asset-button"
>
Insert
<
/a
>
<
a
href
=
"#"
class
=
"insert-asset-button"
data
-
markup
=
"<img src='/c4x/Giannattasio/313/asset/ut-logo-350-150.png'/>"
>
Insert
<
/a
>
<
/td
>
<
/tr
>
<
/tbody
>
...
...
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