Commit d5903c0e by cahrens

Make HTML better formatted.

parent 167d0703
...@@ -1120,7 +1120,6 @@ def get_course_settings(request, org, course, name): ...@@ -1120,7 +1120,6 @@ def get_course_settings(request, org, course, name):
course_details = CourseDetails.fetch(location) course_details = CourseDetails.fetch(location)
return render_to_response('settings.html', { return render_to_response('settings.html', {
'active_tab': 'settings',
'context_course': course_module, 'context_course': course_module,
'course_location' : location, 'course_location' : location,
'course_details' : json.dumps(course_details, cls=CourseSettingsEncoder) 'course_details' : json.dumps(course_details, cls=CourseSettingsEncoder)
......
...@@ -12,22 +12,21 @@ from contentstore import utils ...@@ -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/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/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/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/models/settings/advanced.js')}"></script>
<script type="text/javascript" src="${static.url('js/views/settings/advanced_view.js')}"></script> <script type="text/javascript" src="${static.url('js/views/settings/advanced_view.js')}"></script>
<script type="text/javascript"> <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 // 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.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))}"; 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({ var editor = new CMS.Views.Settings.Advanced({
el: $('.settings-advanced'), el: $('.settings-advanced'),
model : advancedModel model: advancedModel
}); });
editor.render(); editor.render();
...@@ -42,6 +41,7 @@ from contentstore import utils ...@@ -42,6 +41,7 @@ from contentstore import utils
<section class="content"> <section class="content">
<header class="page"> <header class="page">
<span class="title-sub">Settings</span> <span class="title-sub">Settings</span>
<h1 class="title-1">Advanced</h1> <h1 class="title-1">Advanced</h1>
</header> </header>
...@@ -62,7 +62,8 @@ from contentstore import utils ...@@ -62,7 +62,8 @@ from contentstore import utils
<span class="detail">Manually Edit Course Policy Values (JSON Key and Pair values)</span> <span class="detail">Manually Edit Course Policy Values (JSON Key and Pair values)</span>
</header> </header>
<p class="instructions"><strong>Warning</strong>: Add only manual policy data that you are familiar with.</p> <p class="instructions"><strong>Warning</strong>: Add only manual policy data that you are familiar
with.</p>
<div class="row"> <div class="row">
<div class="field enum"> <div class="field enum">
...@@ -80,16 +81,19 @@ from contentstore import utils ...@@ -80,16 +81,19 @@ from contentstore import utils
</div> </div>
</div> </div>
</section><!-- .settings-advanced-policies --> </section>
<!-- .settings-advanced-policies -->
</section> </section>
</article> </article>
<!-- notification: change has been made and a save is needed --> <!-- notification: change has been made and a save is needed -->
<div class="wrapper wrapper-notification wrapper-notification-warning"> <div class="wrapper wrapper-notification wrapper-notification-warning">
<div class="notification warning"> <div class="notification warning">
<div class="copy"> <div class="copy">
<i class="ss-icon ss-symbolicons-block icon icon-warning">&#x26A0;</i> <i class="ss-icon ss-symbolicons-block icon icon-warning">&#x26A0;</i>
<p><strong>Note: </strong>Your changes will not take effect until you <strong>save your progress</strong>.</p>
<p><strong>Note: </strong>Your changes will not take effect until you <strong>save your
progress</strong>.</p>
</div> </div>
<div class="actions"> <div class="actions">
...@@ -99,5 +103,7 @@ from contentstore import utils ...@@ -99,5 +103,7 @@ from contentstore import utils
</ul> </ul>
</div> </div>
</div> </div>
</div>
</section>
</div> </div>
</%block> </%block>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment