Commit d68945de by Tom Giannattasio

started adding settings page

parent b8dcf0c4
......@@ -869,6 +869,10 @@ def edit_static(request, org, course, coursename):
return render_to_response('edit-static-page.html', {})
def settings(request, org, course, coursename):
return render_to_response('settings.html', {})
def not_found(request):
return render_to_response('error.html', {'error': '404'})
......
.settings {
.settings-overview {
@extend .window;
padding: 30px 40px;
.details {
margin-bottom: 20px;
font-size: 14px;
}
.row {
margin-bottom: 20px;
padding-bottom: 0;
border-bottom: none;
}
label {
display: inline-block;
width: 200px;
font-size: 14px;
&.check-label {
display: inline;
}
}
}
h2 {
margin-bottom: 20px;
font-size: 24px;
font-weight: 300;
}
section {
border-bottom: 1px solid $mediumGrey;
margin-bottom: 40px;
padding-bottom: 40px;
}
}
\ No newline at end of file
......@@ -18,6 +18,7 @@
@import "static-pages";
@import "users";
@import "import";
@import "settings";
@import "course-info";
@import "landing";
@import "graphics";
......
<%inherit file="base.html" />
<%! from django.core.urlresolvers import reverse %>
<%block name="bodyclass">settings</%block>
<%block name="title">Settings</%block>
<%namespace name='static' file='static_content.html'/>
<%block name="jsextra">
</%block>
<%block name="content">
<div class="main-wrapper">
<div class="inner-wrapper">
<h1>Settings</h1>
<article class="settings-overview">
<section>
<h2>Details</h2>
<div class="row">
<label>Course Name:</label>
<input type="text" class="course-name-input">
</div>
<div class="row">
<label>Organization:</label>
<input type="text" class="course-organization-input">
</div>
<div class="row">
<label>Course Number:</label>
<input type="text" class="course-number-input">
</div>
</section>
<section>
<h2>Grading</h2>
<div class="row">
<label>Course Name:</label>
<input type="text" class="course-name-input">
</div>
</section>
<section>
<h2>Problems</h2>
<div class="row">
<input type="checkbox" id="randomize-problems"><label for="randomize-problems" class="check-label">Randomize Problems</label>
</div>
</section>
</article>
</div>
</div>
</%block>
......@@ -37,6 +37,7 @@ urlpatterns = ('',
url(r'^pages/(?P<org>[^/]+)/(?P<course>[^/]+)/course/(?P<coursename>[^/]+)$', 'contentstore.views.static_pages', name='static_pages'),
url(r'^edit_static/(?P<org>[^/]+)/(?P<course>[^/]+)/course/(?P<coursename>[^/]+)$', 'contentstore.views.edit_static', name='edit_static'),
url(r'^(?P<org>[^/]+)/(?P<course>[^/]+)/assets/(?P<name>[^/]+)$', 'contentstore.views.asset_index', name='asset_index'),
url(r'^settings/(?P<org>[^/]+)/(?P<course>[^/]+)/course/(?P<coursename>[^/]+)$', 'contentstore.views.settings', name='settings'),
# temporary landing page for a course
url(r'^edge/(?P<org>[^/]+)/(?P<course>[^/]+)/course/(?P<coursename>[^/]+)$', 'contentstore.views.landing', name='landing'),
......
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