Commit d8b99e1e by Calen Pennington

Make remote_gradebook use the new field instead of metadata

parent c1a8c6de
...@@ -175,7 +175,7 @@ class CourseDescriptor(SequenceDescriptor): ...@@ -175,7 +175,7 @@ class CourseDescriptor(SequenceDescriptor):
no_grade = Boolean(help="True if this course isn't graded", default=False, scope=Scope.settings) no_grade = Boolean(help="True if this course isn't graded", default=False, scope=Scope.settings)
disable_progress_graph = Boolean(help="True if this course shouldn't display the progress graph", default=False, scope=Scope.settings) disable_progress_graph = Boolean(help="True if this course shouldn't display the progress graph", default=False, scope=Scope.settings)
pdf_textbooks = List(help="List of dictionaries containing pdf_textbook configuration", default=None, scope=Scope.settings) pdf_textbooks = List(help="List of dictionaries containing pdf_textbook configuration", default=None, scope=Scope.settings)
remote_gradebook = String(scope=Scope.settings, default='') remote_gradebook = Object(scope=Scope.settings, default={})
allow_anonymous = Boolean(scope=Scope.settings, default=True) allow_anonymous = Boolean(scope=Scope.settings, default=True)
allow_anonymous_to_peers = Boolean(scope=Scope.settings, default=False) allow_anonymous_to_peers = Boolean(scope=Scope.settings, default=False)
has_children = True has_children = True
......
...@@ -57,9 +57,9 @@ function goto( mode) ...@@ -57,9 +57,9 @@ function goto( mode)
<section class="instructor-dashboard-content"> <section class="instructor-dashboard-content">
<h1>Instructor Dashboard</h1> <h1>Instructor Dashboard</h1>
<h2>[ <a href="#" onclick="goto('Grades');" class="${modeflag.get('Grades')}">Grades</a> | <h2>[ <a href="#" onclick="goto('Grades');" class="${modeflag.get('Grades')}">Grades</a> |
%if settings.MITX_FEATURES.get('ENABLE_PSYCHOMETRICS'): %if settings.MITX_FEATURES.get('ENABLE_PSYCHOMETRICS'):
<a href="#" onclick="goto('Psychometrics');" class="${modeflag.get('Psychometrics')}">Psychometrics</a> | <a href="#" onclick="goto('Psychometrics');" class="${modeflag.get('Psychometrics')}">Psychometrics</a> |
%endif %endif
<a href="#" onclick="goto('Admin');" class="${modeflag.get('Admin')}">Admin</a> | <a href="#" onclick="goto('Admin');" class="${modeflag.get('Admin')}">Admin</a> |
<a href="#" onclick="goto('Forum Admin');" class="${modeflag.get('Forum Admin')}">Forum Admin</a> | <a href="#" onclick="goto('Forum Admin');" class="${modeflag.get('Forum Admin')}">Forum Admin</a> |
...@@ -75,7 +75,7 @@ function goto( mode) ...@@ -75,7 +75,7 @@ function goto( mode)
<input type="hidden" name="csrfmiddlewaretoken" value="${ csrf_token }"> <input type="hidden" name="csrfmiddlewaretoken" value="${ csrf_token }">
<input type="hidden" name="idash_mode" value=""> <input type="hidden" name="idash_mode" value="">
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
%if modeflag.get('Grades'): %if modeflag.get('Grades'):
%if offline_grade_log: %if offline_grade_log:
...@@ -111,9 +111,9 @@ function goto( mode) ...@@ -111,9 +111,9 @@ function goto( mode)
<hr width="40%" style="align:left"> <hr width="40%" style="align:left">
%if settings.MITX_FEATURES.get('REMOTE_GRADEBOOK_URL','') and instructor_access: %if settings.MITX_FEATURES.get('REMOTE_GRADEBOOK_URL','') and instructor_access:
<% <%
rg = course.metadata.get('remote_gradebook',{}) rg = course.remote_gradebook
%> %>
<h3>Export grades to remote gradebook</h3> <h3>Export grades to remote gradebook</h3>
...@@ -157,7 +157,7 @@ function goto( mode) ...@@ -157,7 +157,7 @@ function goto( mode)
%endif %endif
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
%if modeflag.get('Psychometrics'): %if modeflag.get('Psychometrics'):
<p>Select a problem and an action: <p>Select a problem and an action:
...@@ -178,7 +178,7 @@ function goto( mode) ...@@ -178,7 +178,7 @@ function goto( mode)
%endif %endif
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
%if modeflag.get('Admin'): %if modeflag.get('Admin'):
%if instructor_access: %if instructor_access:
<hr width="40%" style="align:left"> <hr width="40%" style="align:left">
...@@ -208,7 +208,7 @@ function goto( mode) ...@@ -208,7 +208,7 @@ function goto( mode)
%endif %endif
%endif %endif
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
%if modeflag.get('Forum Admin'): %if modeflag.get('Forum Admin'):
%if instructor_access: %if instructor_access:
<hr width="40%" style="align:left"> <hr width="40%" style="align:left">
...@@ -225,7 +225,7 @@ function goto( mode) ...@@ -225,7 +225,7 @@ function goto( mode)
<input type="submit" name="action" value="List course forum moderators"> <input type="submit" name="action" value="List course forum moderators">
<input type="submit" name="action" value="List course forum community TAs"> <input type="submit" name="action" value="List course forum community TAs">
<p> <p>
<input type="text" name="forummoderator"> <input type="text" name="forummoderator">
<input type="submit" name="action" value="Remove forum moderator"> <input type="submit" name="action" value="Remove forum moderator">
<input type="submit" name="action" value="Add forum moderator"> <input type="submit" name="action" value="Add forum moderator">
<input type="submit" name="action" value="Remove forum community TA"> <input type="submit" name="action" value="Remove forum community TA">
...@@ -236,7 +236,7 @@ function goto( mode) ...@@ -236,7 +236,7 @@ function goto( mode)
%endif %endif
%endif %endif
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
%if modeflag.get('Enrollment'): %if modeflag.get('Enrollment'):
<hr width="40%" style="align:left"> <hr width="40%" style="align:left">
...@@ -249,9 +249,9 @@ function goto( mode) ...@@ -249,9 +249,9 @@ function goto( mode)
<hr width="40%" style="align:left"> <hr width="40%" style="align:left">
%if settings.MITX_FEATURES.get('REMOTE_GRADEBOOK_URL','') and instructor_access: %if settings.MITX_FEATURES.get('REMOTE_GRADEBOOK_URL','') and instructor_access:
<% <%
rg = course.metadata.get('remote_gradebook',{}) rg = course.remote_gradebook
%> %>
<p>Pull enrollment from remote gradebook</p> <p>Pull enrollment from remote gradebook</p>
...@@ -264,7 +264,7 @@ function goto( mode) ...@@ -264,7 +264,7 @@ function goto( mode)
<input type="submit" name="action" value="Overload enrollment list using remote gradebook"> <input type="submit" name="action" value="Overload enrollment list using remote gradebook">
<input type="submit" name="action" value="Merge enrollment list with remote gradebook"> <input type="submit" name="action" value="Merge enrollment list with remote gradebook">
<hr width="40%" style="align:left"> <hr width="40%" style="align:left">
%endif %endif
<p>Add students: enter emails, separated by new lines or commas;</p> <p>Add students: enter emails, separated by new lines or commas;</p>
...@@ -273,21 +273,21 @@ function goto( mode) ...@@ -273,21 +273,21 @@ function goto( mode)
%endif %endif
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
%if modeflag.get('Data'): %if modeflag.get('Data'):
<hr width="40%" style="align:left"> <hr width="40%" style="align:left">
<p> <p>
<input type="submit" name="action" value="Download CSV of all student profile data"> <input type="submit" name="action" value="Download CSV of all student profile data">
</p> </p>
<p> Problem urlname: <p> Problem urlname:
<input type="text" name="problem_to_dump" size="40"> <input type="text" name="problem_to_dump" size="40">
<input type="submit" name="action" value="Download CSV of all responses to problem"> <input type="submit" name="action" value="Download CSV of all responses to problem">
</p> </p>
<hr width="40%" style="align:left"> <hr width="40%" style="align:left">
%endif %endif
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
%if modeflag.get('Manage Groups'): %if modeflag.get('Manage Groups'):
%if instructor_access: %if instructor_access:
...@@ -313,12 +313,12 @@ function goto( mode) ...@@ -313,12 +313,12 @@ function goto( mode)
%endif %endif
</form> </form>
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
%if msg: %if msg:
<p></p><p>${msg}</p> <p></p><p>${msg}</p>
%endif %endif
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
%if datatable and modeflag.get('Psychometrics') is None: %if datatable and modeflag.get('Psychometrics') is None:
...@@ -344,7 +344,7 @@ function goto( mode) ...@@ -344,7 +344,7 @@ function goto( mode)
</p> </p>
%endif %endif
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
%if modeflag.get('Psychometrics'): %if modeflag.get('Psychometrics'):
%for plot in plots: %for plot in plots:
...@@ -365,12 +365,12 @@ function goto( mode) ...@@ -365,12 +365,12 @@ function goto( mode)
%endfor %endfor
%endif %endif
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
## always show msg ## always show msg
##----------------------------------------------------------------------------- ##-----------------------------------------------------------------------------
%if modeflag.get('Admin'): %if modeflag.get('Admin'):
% if course_errors is not UNDEFINED: % if course_errors is not UNDEFINED:
<h2>Course errors</h2> <h2>Course errors</h2>
...@@ -392,7 +392,7 @@ function goto( mode) ...@@ -392,7 +392,7 @@ function goto( mode)
%endif %endif
</div> </div>
% endif % endif
%endif %endif
</section> </section>
</div> </div>
......
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