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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/enrolment-edit.html

  • Committer: me at id
  • Date: 2009-01-15 05:53:45 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:branches%2Fstorm:1161
bin/ivle-showenrolment: Switch to ivle.database.User.enrolments from
    ivle.db.get_enrolment, removing the dependency on ivle.db.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html xmlns="http://www.w3.org/1999/xhtml"
2
 
      xmlns:py="http://genshi.edgewall.org/">
3
 
  <head>
4
 
    <title>Edit ${context.user.fullname}'s enrolment in ${context.offering.subject.name}</title>
5
 
  </head>
6
 
  <body>
7
 
    <h1>Edit ${context.user.fullname}'s enrolment in ${context.offering.subject.name}</h1>
8
 
    <div id="ivle_padding">
9
 
      <form action="" method="post" class="verticalform thin">
10
 
        <div><label for="field_fullname">Full name:</label> <span id="field_fullname">${context.user.fullname}</span></div>
11
 
        <div><label for="field_login">Login:</label> <span id="field_login">${context.user.login}</span></div>
12
 
        <div>
13
 
          <label for="field_role">Role:</label>
14
 
          <select id="field_role" name="role">
15
 
            <option py:if="'enrol_student' in offering_perms" value="student">Student</option>
16
 
            <option py:if="'enrol_tutor' in offering_perms" value="tutor">Tutor</option>
17
 
            <option py:if="'enrol_lecturer' in offering_perms" value="lecturer">Lecturer</option>
18
 
          </select>
19
 
          <span py:if="'role' in errors" class="form_error">${errors.role}.</span>
20
 
        </div>
21
 
        <div class="submit"><input type="submit" value="Change Role"/></div>
22
 
      </form>
23
 
    </div>
24
 
  </body>
25
 
</html>