Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, April 9th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
e3457fa2
Commit
e3457fa2
authored
12 years ago
by
Tom Giannattasio
Browse files
Options
Downloads
Patches
Plain Diff
started styling section date pickers
parent
b0055879
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cms/static/js/base.js
+1
-1
1 addition, 1 deletion
cms/static/js/base.js
cms/static/sass/_courseware.scss
+41
-10
41 additions, 10 deletions
cms/static/sass/_courseware.scss
cms/templates/overview.html
+8
-13
8 additions, 13 deletions
cms/templates/overview.html
with
50 additions
and
24 deletions
cms/static/js/base.js
+
1
−
1
View file @
e3457fa2
...
...
@@ -734,7 +734,7 @@ function saveSetSectionScheduleDate(e) {
id
=
$
(
this
).
closest
(
"
section.courseware-section
"
).
data
(
"
id
"
);
var
$_this
=
$
(
this
);
// call into server to commit the new order
// call into server to commit the new order
$
.
ajax
({
url
:
"
/save_item
"
,
type
:
"
POST
"
,
...
...
This diff is collapsed.
Click to expand it.
cms/static/sass/_courseware.scss
+
41
−
10
View file @
e3457fa2
...
...
@@ -28,14 +28,45 @@ input.courseware-unit-search-input {
&
.collapsed
{
padding-bottom
:
0
;
}
header
{
height
:
47px
;
}
h4
{
display
:
none
!
important
;
}
label
{
float
:
left
;
line-height
:
29px
;
}
.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
);
}
...
...
This diff is collapsed.
Click to expand it.
cms/templates/overview.html
+
8
−
13
View file @
e3457fa2
...
...
@@ -74,24 +74,19 @@
<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"
>
<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>
</div>
<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>-->
</div>
</div>
</div>
<div
class=
"item-actions"
>
<a
href=
"#"
class=
"delete-button delete-section-button"
><span
class=
"delete-icon"
></span></a>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment