~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:47:28 UTC
  • Revision ID: matt.giuca@gmail.com-20091208114728-vdm7a57uf9jhy0g3
Enrolments page: Don't show choices in the list if they are unauthorized. (Note that this is a UI tweak -- roles are already authz-checked.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
          <input type="text" name="user" />
13
13
          <label for="role">Enrol as:</label>
14
14
          <select name="role">
15
 
            <option value="student" selected="selected">Student</option>
16
 
            <option value="tutor">Tutor</option>
17
 
            <option value="lecturer">Lecturer</option>
 
15
            <option py:if="'enrol_student' in roles_auth" value="student" selected="selected">Student</option>
 
16
            <option py:if="'enrol_tutor' in roles_auth" value="tutor">Tutor</option>
 
17
            <option py:if="'enrol_lecturer' in roles_auth" value="lecturer">Lecturer</option>
18
18
          </select>
19
19
          <span py:if="'user' in errors" class="form_error">${errors.user}.</span>
20
20
          <span py:if="'role' in errors" class="form_error">${errors.role}.</span>