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
d5903c0e
Commit
d5903c0e
authored
Feb 19, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make HTML better formatted.
parent
167d0703
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
51 deletions
+57
-51
cms/djangoapps/contentstore/views.py
+0
-1
cms/templates/settings_advanced.html
+57
-50
No files found.
cms/djangoapps/contentstore/views.py
View file @
d5903c0e
...
...
@@ -1120,7 +1120,6 @@ def get_course_settings(request, org, course, name):
course_details
=
CourseDetails
.
fetch
(
location
)
return
render_to_response
(
'settings.html'
,
{
'active_tab'
:
'settings'
,
'context_course'
:
course_module
,
'course_location'
:
location
,
'course_details'
:
json
.
dumps
(
course_details
,
cls
=
CourseSettingsEncoder
)
...
...
cms/templates/settings_advanced.html
View file @
d5903c0e
...
...
@@ -12,22 +12,21 @@ from contentstore import utils
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/server_error.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/course_relative.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/validating_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/settings/advanced.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/settings/advanced_view.js')}"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
// proactively populate advanced b/c it has the filtered list and doesn't really follow the model pattern
var
advancedModel
=
new
CMS
.
Models
.
Settings
.
Advanced
(
$
{
advanced_dict
|
n
},
{
parse
:
true
});
var
advancedModel
=
new
CMS
.
Models
.
Settings
.
Advanced
(
$
{
advanced_dict
|
n
},
{
parse
:
true
});
advancedModel
.
blacklistKeys
=
$
{
advanced_blacklist
|
n
};
advancedModel
.
url
=
"${reverse('course_advanced_settings', kwargs=dict(org=context_course.location.org, course=context_course.location.course, name=context_course.location.name))}"
;
var
editor
=
new
CMS
.
Views
.
Settings
.
Advanced
({
el
:
$
(
'.settings-advanced'
),
model
:
advancedModel
model
:
advancedModel
});
editor
.
render
();
...
...
@@ -42,62 +41,69 @@ from contentstore import utils
<section
class=
"content"
>
<header
class=
"page"
>
<span
class=
"title-sub"
>
Settings
</span>
<h1
class=
"title-1"
>
Advanced
</h1>
</header>
<article
class=
"content-primary"
role=
"main"
>
<section
class=
"settings-advanced"
>
<div
class=
"message message-status confirm is-shown"
>
Your policy changes have been saved.
</div>
<div
class=
"message message-status error is-shown"
>
There was an error saving your information. Please see below.
</div>
<section
class=
"settings-advanced-policies"
>
<header>
<h3>
Manual Policy Definition
</h3>
<span
class=
"detail"
>
Manually Edit Course Policy Values (JSON Key and Pair values)
</span>
</header>
<p
class=
"instructions"
><strong>
Warning
</strong>
: Add only manual policy data that you are familiar with.
</p>
<div
class=
"row"
>
<div
class=
"field enum"
>
<section
class=
"settings-advanced"
>
<div
class=
"message message-status confirm is-shown"
>
Your policy changes have been saved.
</div>
<
!-- basic empty & initial empty field (if user had no values yet) --
>
<ul
class=
"input-list course-advanced-policy-list"
>
</
ul
>
<
div
class=
"message message-status error is-shown"
>
There was an error saving your information. Please see below.
</
div
>
<!-- advanced policy actions -->
<div
class=
"actions actions-advanced-policies"
>
<a
href=
"#"
class=
"new-button new-advanced-policy-item add-policy-data"
>
<span
class=
"plus-icon white"
></span>
New Manual Policy
</a>
<section
class=
"settings-advanced-policies"
>
<header>
<h3>
Manual Policy Definition
</h3>
<span
class=
"detail"
>
Manually Edit Course Policy Values (JSON Key and Pair values)
</span>
</header>
<p
class=
"instructions"
><strong>
Warning
</strong>
: Add only manual policy data that you are familiar
with.
</p>
<div
class=
"row"
>
<div
class=
"field enum"
>
<!-- basic empty & initial empty field (if user had no values yet) -->
<ul
class=
"input-list course-advanced-policy-list"
>
</ul>
<!-- advanced policy actions -->
<div
class=
"actions actions-advanced-policies"
>
<a
href=
"#"
class=
"new-button new-advanced-policy-item add-policy-data"
>
<span
class=
"plus-icon white"
></span>
New Manual Policy
</a>
</div>
</div>
</div>
</section>
<!-- .settings-advanced-policies -->
</section>
</article>
<!-- notification: change has been made and a save is needed -->
<div
class=
"wrapper wrapper-notification wrapper-notification-warning"
>
<div
class=
"notification warning"
>
<div
class=
"copy"
>
<i
class=
"ss-icon ss-symbolicons-block icon icon-warning"
>
⚠
</i>
<p><strong>
Note:
</strong>
Your changes will not take effect until you
<strong>
save your
progress
</strong>
.
</p>
</div>
<div
class=
"actions"
>
<ul>
<li><a
href=
"#"
class=
"save-button"
>
Save
</a></li>
<li><a
href=
"#"
class=
"cancel-button"
>
Cancel
</a></li>
</ul>
</div>
</div>
</div>
</section>
<!-- .settings-advanced-policies -->
</section>
</article>
<!-- notification: change has been made and a save is needed -->
<div
class=
"wrapper wrapper-notification wrapper-notification-warning"
>
<div
class=
"notification warning"
>
<div
class=
"copy"
>
<i
class=
"ss-icon ss-symbolicons-block icon icon-warning"
>
⚠
</i>
<p><strong>
Note:
</strong>
Your changes will not take effect until you
<strong>
save your progress
</strong>
.
</p>
</div>
<div
class=
"actions"
>
<ul>
<li><a
href=
"#"
class=
"save-button"
>
Save
</a></li>
<li><a
href=
"#"
class=
"cancel-button"
>
Cancel
</a></li>
</ul>
</div>
</div>
</section>
</div>
</
%
block>
\ No newline at end of file
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