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
e3457fa2
Commit
e3457fa2
authored
Oct 18, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
started styling section date pickers
parent
b0055879
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
17 deletions
+43
-17
cms/static/js/base.js
+0
-0
cms/static/sass/_courseware.scss
+38
-7
cms/templates/overview.html
+5
-10
No files found.
cms/static/js/base.js
View file @
e3457fa2
cms/static/sass/_courseware.scss
View file @
e3457fa2
...
...
@@ -28,14 +28,45 @@ input.courseware-unit-search-input {
&
.collapsed
{
padding-bottom
:
0
;
}
header
{
height
:
47px
;
label
{
float
:
left
;
line-height
:
29px
;
}
h4
{
display
:
none
!
important
;
.datepair
{
float
:
left
;
margin-left
:
10px
;
}
.section-published-date
{
position
:
absolute
;
top
:
12px
;
right
:
90px
;
width
:
250px
;
font-size
:
13px
;
}
.datepair
.date
,
.datepair
.time
{
padding-left
:
0
;
padding-right
:
0
;
border
:
none
;
background
:
none
;
@include
box-shadow
(
none
);
font-size
:
13px
;
font-weight
:
700
;
color
:
$blue
;
cursor
:
pointer
;
}
.datepair
.date
{
width
:
80px
;
}
.datepair
.time
{
width
:
65px
;
}
&
.collapsed
.subsection-list
,
...
...
@@ -45,11 +76,11 @@ input.courseware-unit-search-input {
}
header
{
height
:
67
px
;
height
:
55
px
;
.item-details
{
float
:
left
;
padding
:
1
0
px
0
0
;
padding
:
1
5
px
0
0
;
}
.item-actions
{
...
...
@@ -64,7 +95,7 @@ input.courseware-unit-search-input {
.expand-collapse-icon
{
float
:
left
;
margin
:
16
px
6px
16px
16px
;
margin
:
20
px
6px
16px
16px
;
@include
transition
(
none
);
}
...
...
cms/templates/overview.html
View file @
e3457fa2
...
...
@@ -74,23 +74,18 @@
<a
href=
"#"
class=
"save-button edit-section-name-save"
>
Save
</a><a
href=
"#"
class=
"cancel-button edit-section-name-cancel"
>
Cancel
</a>
</div>
</h3>
<h4
class=
'section-published-date'
>
<div
class=
"section-published-date"
>
<label>
Release Date:
</label>
<
%
start_date =
datetime.fromtimestamp(mktime(section.start))
if
section
.
start
is
not
None
else
None
start_date_str =
start_date.strftime('%m/%d/%Y')
if
start_date
is
not
None
else
''
start_time_str =
start_date.strftime('%H:%M')
if
start_date
is
not
None
else
''
%
>
%if start_date is None:
<strong>
Unscheduled:
</strong>
<a
href=
"#"
class=
"set-publish-date"
>
click here to set
</a>
%else:
<strong>
${start_date_str} at ${start_time_str}
</strong>
<a
href=
"#"
class=
"set-publish-date"
>
click here to edit
</a>
%endif
</h4>
<div
class=
"datepair"
data-language=
"javascript"
style=
"display: none"
>
<div
class=
"datepair"
data-language=
"javascript"
>
<input
type=
"text"
name=
"start_date"
value=
"${start_date_str}"
placeholder=
"MM/DD/YYYY"
class=
"date"
size=
'15'
autocomplete=
"off"
/>
<input
type=
"text"
name=
"start_time"
value=
"${start_time_str}"
placeholder=
"HH:MM"
class=
"time"
size=
'10'
autocomplete=
"off"
/>
<a
href=
"#"
class=
"save-button edit-section-start-save"
>
Save
</a><a
href=
"#"
class=
"cancel-button edit-section-start-cancel"
>
Cancel
</a>
<!--<a href="#" class="save-button edit-section-start-save">Save</a><a href="#" class="cancel-button edit-section-start-cancel">Cancel</a>-->
</div>
</div>
</div>
<div
class=
"item-actions"
>
...
...
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