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
968b604b
Commit
968b604b
authored
12 years ago
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding in datepicker functionality - wip
parent
89187624
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
cms/templates/settings.html
+9
-2
No files found.
cms/templates/settings.html
View file @
968b604b
...
...
@@ -6,6 +6,11 @@
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
block
name=
"jsextra"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('js/vendor/timepicker/jquery.timepicker.css')}"
/>
<script
src=
"${static.url('js/vendor/timepicker/jquery.timepicker.js')}"
></script>
<script
src=
"${static.url('js/vendor/timepicker/datepair.js')}"
></script>
<script
src=
"${static.url('js/vendor/date.js')}"
></script>
<script
type=
"text/javascript"
>
var
$body
;
var
$gradeBar
;
...
...
@@ -30,6 +35,8 @@
$body
.
on
(
'mousedown'
,
'.drag-bar'
,
startDragBar
);
$
(
'.new-grade-button'
).
bind
(
'click'
,
addNewGrade
);
$body
.
on
(
'click'
,
'.remove-button'
,
removeGrade
);
$
(
'.set-date'
).
datepicker
();
})();
function
addNewGrade
(
e
)
{
...
...
@@ -187,7 +194,7 @@
<li
class=
"input input-existing multi multi-inline course-milestone-list-item"
>
<div
class=
"group"
>
<label
for=
"course-milestone-1-date-input"
>
Milestone Date
</label>
<input
type=
"text"
id=
"course-milestone-1-date-input"
class=
"course-milestone-date-input date
hasDatepicker
"
placeholder=
"MM/DD/YYYY"
>
<input
type=
"text"
id=
"course-milestone-1-date-input"
class=
"course-milestone-date-input date
set-date
"
placeholder=
"MM/DD/YYYY"
>
</div>
<div
class=
"group"
>
...
...
@@ -201,7 +208,7 @@
<li
class=
"input multi multi-inline course-milestone-list-item"
>
<div
class=
"group"
>
<label
for=
"course-milestone-2-date-input"
>
Milestone Date
</label>
<input
type=
"text"
class=
"course-milestone-date-input date
hasDatepicker
"
id=
"course-milestone-2-date-input"
placeholder=
"MM/DD/YYYY"
>
<input
type=
"text"
class=
"course-milestone-date-input date
set-date
"
id=
"course-milestone-2-date-input"
placeholder=
"MM/DD/YYYY"
>
</div>
<div
class=
"group"
>
...
...
This diff is collapsed.
Click to expand it.
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