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
b7cfbe0c
Commit
b7cfbe0c
authored
May 29, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add safety check for start dates unbound
parent
d7194e6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
cms/templates/edit_subsection.html
+2
-2
cms/templates/overview.html
+6
-2
No files found.
cms/templates/edit_subsection.html
View file @
b7cfbe0c
...
@@ -37,13 +37,13 @@
...
@@ -37,13 +37,13 @@
<div
class=
"field field-start-date"
>
<div
class=
"field field-start-date"
>
<label
for=
"start_date"
>
Release Day
</label>
<label
for=
"start_date"
>
Release Day
</label>
<input
type=
"text"
id=
"start_date"
name=
"start_date"
<input
type=
"text"
id=
"start_date"
name=
"start_date"
value=
"${subsection.lms.start.strftime('%m/%d/%Y')}"
value=
"${subsection.lms.start.strftime('%m/%d/%Y')
if subsection.lms.start else ''
}"
placeholder=
"MM/DD/YYYY"
class=
"date"
size=
'15'
autocomplete=
"off"
/>
placeholder=
"MM/DD/YYYY"
class=
"date"
size=
'15'
autocomplete=
"off"
/>
</div>
</div>
<div
class=
"field field-start-time"
>
<div
class=
"field field-start-time"
>
<label
for=
"start_time"
>
Release Time (
<abbr
title=
"Coordinated Universal Time"
>
UTC
</abbr>
)
</label>
<label
for=
"start_time"
>
Release Time (
<abbr
title=
"Coordinated Universal Time"
>
UTC
</abbr>
)
</label>
<input
type=
"text"
id=
"start_time"
name=
"start_time"
<input
type=
"text"
id=
"start_time"
name=
"start_time"
value=
"${subsection.lms.start.strftime('%H:%M')}"
value=
"${subsection.lms.start.strftime('%H:%M')
if subsection.lms.start else ''
}"
placeholder=
"HH:MM"
class=
"time"
size=
'10'
autocomplete=
"off"
/>
placeholder=
"HH:MM"
class=
"time"
size=
'10'
autocomplete=
"off"
/>
</div>
</div>
</div>
</div>
...
...
cms/templates/overview.html
View file @
b7cfbe0c
...
@@ -154,8 +154,12 @@
...
@@ -154,8 +154,12 @@
<h3
class=
"section-name"
data-name=
"${section.display_name_with_default | h}"
></h3>
<h3
class=
"section-name"
data-name=
"${section.display_name_with_default | h}"
></h3>
<div
class=
"section-published-date"
>
<div
class=
"section-published-date"
>
<
%
<
%
start_date_str =
section.lms.start.strftime('%m/%d/%Y')
if
section
.
lms
.
start
is
not
None:
start_time_str =
section.lms.start.strftime('%H:%M')
start_date_str =
section.lms.start.strftime('%m/%d/%Y')
start_time_str =
section.lms.start.strftime('%H:%M')
else:
start_date_str =
''
start_time_str =
''
%
>
%
>
%if section.lms.start is None:
%if section.lms.start is None:
<span
class=
"published-status"
>
This section has not been released.
</span>
<span
class=
"published-status"
>
This section has not been released.
</span>
...
...
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