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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2009-12-08 11:41:44 UTC
  • Revision ID: matt.giuca@gmail.com-20091208114144-bzi17mcl5o5ms65k
database: Added finer-grained enrol permissions on offerings.
    (Separate permissions for students, tutors and lecturers.)
Enrolment page: Added a drop-down box for selecting which role to enrol as.
    The role is checked against the user's permissions, to make sure they have
    the authority to assign such a role.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
        <p>
11
11
          <label for="user">Username:</label>
12
12
          <input type="text" name="user" />
 
13
          <label for="role">Enrol as:</label>
 
14
          <select name="role">
 
15
            <option value="student" selected="selected">Student</option>
 
16
            <option value="tutor">Tutor</option>
 
17
            <option value="lecturer">Lecturer</option>
 
18
          </select>
13
19
          <span py:if="'user' in errors" class="form_error">${errors.user}</span>
 
20
          <span py:if="'role' in errors" class="form_error">${errors.role}</span>
14
21
          <br />
15
22
          <input type="submit" value="Enrol" />
16
23
        </p>