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

« back to all changes in this revision

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

  • Committer: David Coles
  • Date: 2010-02-23 09:28:32 UTC
  • Revision ID: coles.david@gmail.com-20100223092832-5jsmysvrmdensnhg
exercises: Show error for bad reStructuredText rather than crashing

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>