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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/">
  <head>
    <title>Enrol a user - ${offering.subject.name}</title>
  </head>
  <body>
    <h1>Enrol a user in ${offering.subject.name}</h1>
    <div id="ivle_padding">
      <form action="" method="post">
        <p>
          <label for="user">Username:</label>
          <input type="text" id="user" name="user" />
          <label for="role">Enrol as:</label>
          <select id="role" name="role">
            <option py:if="'enrol_student' in roles_auth" value="student" selected="selected">Student</option>
            <option py:if="'enrol_tutor' in roles_auth" value="tutor">Tutor</option>
            <option py:if="'enrol_lecturer' in roles_auth" value="lecturer">Lecturer</option>
          </select>
          <span py:if="'user' in errors" class="form_error">${errors.user}.</span>
          <span py:if="'role' in errors" class="form_error">${errors.role}.</span>
          <br />
          <input type="submit" value="Enrol" />
        </p>
      </form>
    </div>
  </body>
</html>