~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/worksheet.html

Updated the exercises to be loaded from the database, not a local file.

This updated fixes some things broken in my previous commit, and now
it should leave the worksheets in a viewable (not working) state.

I have also updated ivle-addexercise and the database schema to reflect
the schema of an exercise.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    <script type="text/javascript">
7
7
        subject = "${subject}";
8
8
        worksheet = "${worksheet}";
 
9
        year = "${year}";
 
10
        semester = "${semester}";
9
11
    </script>
10
12
  </head>
11
13
  <body>
16
18
        <h2>Worksheet Contents</h2>
17
19
        <ul>
18
20
          <py:for each="exercise in exercises">
19
 
            <li class="${exercise['complete']}" id="toc_li_exercise${exercise['exid']}">
20
 
              <a href="#exercise${exercise['exid']}">
 
21
            <li class="${exercise['complete']}" id="toc_li_${exercise['exid']}">
 
22
              <a href="#${exercise['exid']}">
21
23
                ${exercise.name}
22
24
              </a>
23
25
            </li>