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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/enrolments.html

  • Committer: William Grant
  • Date: 2010-02-17 12:00:09 UTC
  • Revision ID: grantw@unimelb.edu.au-20100217120009-o48s4r1junx8oq8n
Tags: 1.0beta2
Drop version number to 1.0beta2. We are going in for another one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  <body>
7
7
    <h1>Staff and students in ${offering.subject.name}</h1>
8
8
    <div id="ivle_padding">
9
 
      <div py:def="userlist(title, role)"
10
 
           py:if="offering.get_members_by_role(unicode(role)).count()">
 
9
      <div class="majorsection" py:def="userlist(title, role)"
 
10
           py:if="offering.get_members_by_role(unicode(role)).count()"
 
11
           py:with="can_edit = ('enrol_' + role) in offering_perms">
11
12
        <h2>${title}</h2>
12
13
        <table class="pretty_table">
13
 
          <thead><tr><th>Login</th><th>Name</th></tr></thead>
 
14
          <thead><tr><th>Login</th><th>Name</th><th py:if="can_edit">Actions</th></tr></thead>
14
15
          <tbody>
15
16
            <tr py:for="user in offering.get_members_by_role(unicode(role))">
16
17
              <td>${user.login}</td>
17
18
              <td>${user.display_name}</td>
 
19
              <td py:if="can_edit">
 
20
                <a href="${req.publisher.generate(offering.get_enrolment(user), EnrolmentEdit)}" title="Edit"><img src="${mediapath + 'interface/pencil.png'}" alt="Edit" /></a>
 
21
                <a href="${req.publisher.generate(offering.get_enrolment(user), EnrolmentDelete)}" title="Remove"><img src="${mediapath + 'interface/delete.png'}" alt="Remove" /></a>
 
22
              </td>
18
23
            </tr>
19
24
          </tbody>
20
25
        </table>
22
27
      ${userlist("Lecturers", "lecturer")}
23
28
      ${userlist("Tutors", "tutor")}
24
29
      ${userlist("Students", "student")}
 
30
      <a class="groupaction" href="${req.publisher.generate(offering, EnrolView)}">Enrol user</a>
25
31
    </div>
26
32
  </body>
27
33
</html>