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
c26593df
Commit
c26593df
authored
Apr 04, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
studio - added in labels and UTC reference for subsection release date UI
parent
da6ac54d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
3 deletions
+34
-3
cms/static/sass/views/_subsection.scss
+26
-0
cms/templates/edit_subsection.html
+8
-3
No files found.
cms/static/sass/views/_subsection.scss
View file @
c26593df
...
...
@@ -8,6 +8,32 @@ body.course.subsection {
padding
:
10px
20px
;
}
.datepair
{
.field
{
display
:
inline-block
;
margin-right
:
(
$baseline
/
4
);
width
:
45%
;
&
:last-child
{
margin-right
:
0
;
}
label
,
input
{
display
:
block
;
text-align
:
left
;
}
input
{
width
:
100%
;
}
label
{
margin-bottom
:
(
$baseline
/
4
);
}
}
}
.unit-actions
{
border-bottom
:
none
;
padding-bottom
:
0
;
...
...
cms/templates/edit_subsection.html
View file @
c26593df
...
...
@@ -33,10 +33,15 @@
<h4
class=
"header"
>
Subsection Settings
</h4>
<div
class=
"window-contents"
>
<div
class=
"scheduled-date-input row"
>
<label>
Release date:
<!-- <span class="description">Determines when this subsection and the units within it will be released publicly.</span>-->
</label>
<div
class=
"datepair"
data-language=
"javascript"
>
<input
type=
"text"
id=
"start_date"
name=
"start_date"
value=
"${get_time_struct_display(subsection.lms.start, '%m/%d/%Y')}"
placeholder=
"MM/DD/YYYY"
class=
"date"
size=
'15'
autocomplete=
"off"
/>
<input
type=
"text"
id=
"start_time"
name=
"start_time"
value=
"${get_time_struct_display(subsection.lms.start, '%H:%M')}"
placeholder=
"HH:MM"
class=
"time"
size=
'10'
autocomplete=
"off"
/>
<div
class=
"field field-start-date"
>
<label
for=
"start_date"
>
Release Day
</label>
<input
type=
"text"
id=
"start_date"
name=
"start_date"
value=
"${get_time_struct_display(subsection.lms.start, '%m/%d/%Y')}"
placeholder=
"MM/DD/YYYY"
class=
"date"
size=
'15'
autocomplete=
"off"
/>
</div>
<div
class=
"field field-start-time"
>
<label
for=
"start_time"
>
Release Time (
<abbr
title=
"Coordinated Universal Time (UTC"
>
UTC
</abbr>
)
</label>
<input
type=
"text"
id=
"start_time"
name=
"start_time"
value=
"${get_time_struct_display(subsection.lms.start, '%H:%M')}"
placeholder=
"HH:MM"
class=
"time"
size=
'10'
autocomplete=
"off"
/>
</div>
</div>
% if subsection.lms.start != parent_item.lms.start and subsection.lms.start:
% if parent_item.lms.start is None:
...
...
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