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

« back to all changes in this revision

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

  • Committer: David Coles
  • Date: 2010-02-17 07:19:52 UTC
  • Revision ID: coles.david@gmail.com-20100217071952-ycxxhx2lvdm7fiyh
docs: HTTPS example now uses HTTP for public mode. Isolates public mode cookies from IVLE cookies

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    <h1>Staff and students in ${offering.subject.name}</h1>
8
8
    <div id="ivle_padding">
9
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">
 
10
           py:if="offering.get_members_by_role(unicode(role)).count()">
12
11
        <h2>${title}</h2>
13
12
        <table class="pretty_table">
14
 
          <thead><tr><th>Login</th><th>Name</th><th py:if="can_edit">Actions</th></tr></thead>
 
13
          <thead><tr><th>Login</th><th>Name</th></tr></thead>
15
14
          <tbody>
16
15
            <tr py:for="user in offering.get_members_by_role(unicode(role))">
17
16
              <td>${user.login}</td>
18
17
              <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>
23
18
            </tr>
24
19
          </tbody>
25
20
        </table>