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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-03-04 03:47:10 UTC
  • Revision ID: grantw@unimelb.edu.au-20090304034710-lxyq8gggryfuwqbp
Only redirect +login for logged in users if the method is not POST. We do this
to allow people to use their browser's history to get to a login form, and log
in again. It's also useful for strange people who like to send POST requests
themselves.

Fixes Google Code issue 115.

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" name="user" />
 
13
          <span py:if="'user' in errors" class="form_error">${errors.user}</span>
 
14
          <br />
 
15
          <input type="submit" value="Enrol" />
 
16
        </p>
 
17
      </form>
 
18
    </div>
 
19
  </body>
 
20
</html>