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
cbd6ba00
Commit
cbd6ba00
authored
Nov 27, 2012
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
assignments - wip
parent
62fa734c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
0 deletions
+54
-0
cms/djangoapps/contentstore/views.py
+4
-0
cms/static/sass/_assignments.scss
+0
-0
cms/templates/edit-assignment.html
+49
-0
cms/urls.py
+1
-0
No files found.
cms/djangoapps/contentstore/views.py
View file @
cbd6ba00
...
...
@@ -190,6 +190,10 @@ def course_index(request, org, course, name):
'create_new_unit_template'
:
Location
(
'i4x'
,
'edx'
,
'templates'
,
'vertical'
,
'Empty'
)
})
@login_required
@ensure_csrf_cookie
def
edit_assignment
(
request
,
location
):
return
render_to_response
(
'edit-assignment.html'
,
{})
@login_required
def
edit_subsection
(
request
,
location
):
...
...
cms/static/sass/_assignments.scss
0 → 100644
View file @
cbd6ba00
cms/templates/edit-assignment.html
0 → 100644
View file @
cbd6ba00
<
%
inherit
file=
"base.html"
/>
<
%!
from
time
import
mktime
import
dateutil
.
parser
import
logging
from
datetime
import
datetime
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
block
name=
"bodyclass"
>
assignment
</
%
block>
<
%
block
name=
"title"
>
CMS Assignment
</
%
block>
<
%
namespace
name=
"units"
file=
"widgets/units.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'datetime'
module=
'datetime'
/>
<
%
block
name=
"content"
>
<div
class=
"main-wrapper"
>
<div
class=
"inner-wrapper"
>
<div
class=
"main-column"
>
<article
class=
"assignment-body window"
data-id=
""
>
</article>
</div>
<div
id=
"policy-to-delete"
style=
"display:none"
>
</div>
</div>
</
%
block>
<
%
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"
>
$
(
document
).
ready
(
function
()
{
// expand the due-date area if the values are set
if
(
$
(
'#due_date'
).
val
()
!=
''
)
{
var
$block
=
$
(
'.set-date'
).
closest
(
'.due-date-input'
);
$
(
'.set-date'
).
hide
();
$block
.
find
(
'.date-setter'
).
show
();
}
})
</script>
</
%
block>
cms/urls.py
View file @
cbd6ba00
...
...
@@ -46,6 +46,7 @@ urlpatterns = ('',
url
(
r'^server_error$'
,
'contentstore.views.server_error'
,
name
=
'server_error'
),
url
(
r'^(?P<org>[^/]+)/(?P<course>[^/]+)/assets/(?P<name>[^/]+)$'
,
'contentstore.views.asset_index'
,
name
=
'asset_index'
),
url
(
r'^assignment/(?P<location>.*?)$'
,
'contentstore.views.edit_assignment'
,
name
=
'edit_assignment'
),
# temporary landing page for edge
url
(
r'^edge$'
,
'contentstore.views.edge'
,
name
=
'edge'
),
...
...
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