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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/templates/exercises.html

  • Committer: Matt Giuca
  • Date: 2010-02-11 06:08:15 UTC
  • Revision ID: matt.giuca@gmail.com-20100211060815-9oue3zuuvg18w1yp
Exercises page redone to be consistent with worksheets page. Now looks much better, and contains an edit button for each exercise. Also renamed page headings for both pages to 'manage' rather than 'edit' (consistent with links to these pages).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
2
      xmlns:py="http://genshi.edgewall.org/">
3
3
  <head>
4
 
    <title>Exercises</title>
 
4
    <title>Manage exercises</title>
5
5
    <!-- These let the javascript know which worksheet is open -->
6
6
    <script type="text/javascript">
7
7
    </script>
9
9
  <body>
10
10
    <h1>Exercises</h1>
11
11
    <div id="ivle_padding">
12
 
    <ul>
 
12
      <table id='exercises_table'>
 
13
        <tr><th>Name</th><th>Display name</th><th>Actions</th></tr>
13
14
      <py:for each="exercise in exercises">
14
 
        <li class="exercise_names">
15
 
          <div><a class="exercise_header" href="${req.publisher.generate(exercise)}">${exercise.id}</a></div>${exercise.name}
16
 
        </li>
 
15
        <tr>
 
16
          <td><a class="exercise_header" href="${req.publisher.generate(exercise)}">${exercise.id}</a></td>
 
17
          <td>${exercise.name}</td>
 
18
            <td>
 
19
              <a href='${req.publisher.generate(exercise)}/+edit' title='Edit'><img src="${mediapath + 'pencil.png'}" alt="Edit" /></a>
 
20
            </td>
 
21
        </tr>
17
22
      </py:for>
18
 
    </ul>
19
 
    <a class="addaction" href="/+exercises/+add">Create an exercise</a>
 
23
      </table>
 
24
      <br />
 
25
    <a class="addaction" href="/+exercises/+add">Create new exercise</a>
20
26
    </div>
21
27
  </body>
22
28
</html>