gradebook_profilegraphs.html 1.06 KB
Newer Older
1
<%inherit file="main.html" />
2
<%namespace name='static' file='static_content.html'/>
3 4
<%namespace name="profile_graphs" file="profile_graphs.js"/>

5
<%block name="js_extra">
6 7 8
  <script type="text/javascript" src="${static.url('js/vendor/flot/jquery.flot.js')}"></script>
  <script type="text/javascript" src="${static.url('js/vendor/flot/jquery.flot.stack.js')}"></script>
  <script type="text/javascript" src="${static.url('js/vendor/flot/jquery.flot.symbol.js')}"></script>
9 10 11 12 13 14 15 16
  % for s in students:
  <script>
    ${profile_graphs.body(s['grade_info']['grade_summary'], "grade-detail-graph-" + str(s['id']))}
  </script>
  %endfor
</%block>

<%include file="navigation.html" args="active_page=''" />
17
<section class="container">
18 19 20 21 22 23 24 25 26 27 28 29 30 31
<div class="gradebook-wrapper">
  <section class="gradebook-content">
    <h1>Gradebook</h1>
    <ol>
      % for s in students:
      <li>
        <h2><a href=/profile/${s['id']}>${s['username']}</a></h2>
        <div id="grade-detail-graph-${s['id']}" style="width:1000px;height:300px;"></div>
      </li>
      % endfor
    </ol>
  </section>
</div>
</section>