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

« back to all changes in this revision

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

  • Committer: mattgiuca
  • Date: 2008-02-05 06:29:54 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:418
Renamed trunk/console to trunk/scripts. We are now able to put more scripts in
here such as fileservice.
Added fileservice (empty at the moment).
setup.py, consoleservice: Updated so they refer to scripts now instead of
console directory. (This changes listmake and install_list.py as well).

Added remakeuser.py which lets you recreate a user's jail without creating a
DB entry (but the user is already supposed to exist).

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>Enrol a user - ${offering.subject.name}</title>
5
 
  </head>
6
 
  <body>
7
 
    <h1>Enrol a user in ${offering.subject.name}</h1>
8
 
    <div id="ivle_padding">
9
 
      <form action="" method="post">
10
 
        <p>
11
 
          <label for="user">Username:</label>
12
 
          <input type="text" id="user" name="user" />
13
 
          <label for="role">Enrol as:</label>
14
 
          <select id="role" name="role">
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
 
          </select>
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>
21
 
          <br />
22
 
          <div class="form_error" py:if="defined('error_value')" py:content="error_value" />
23
 
          <input type="submit" value="Enrol" />
24
 
        </p>
25
 
      </form>
26
 
    </div>
27
 
  </body>
28
 
</html>