space-accessstablestagetest-hooks
|
Last change
on this file since b42118c was
b928edc,
checked in by Alex Dehnert <adehnert@…>, 15 years ago
|
|
Ooops, add missing account lookup template
|
-
Property mode set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | {% extends "base.html" %} |
|---|
| 2 | |
|---|
| 3 | {% block title %}Account Lookup{% endblock %} |
|---|
| 4 | {% block content %} |
|---|
| 5 | |
|---|
| 6 | <h1>Account Lookup</h1> |
|---|
| 7 | |
|---|
| 8 | {% if msg_type %} |
|---|
| 9 | <div class='messagebox {{msg_type}}box'> |
|---|
| 10 | <p>{{msg}}</p> |
|---|
| 11 | </div> |
|---|
| 12 | {% endif %} |
|---|
| 13 | |
|---|
| 14 | {% if group %} |
|---|
| 15 | <table class='pretty-table'> |
|---|
| 16 | <tr> |
|---|
| 17 | <th>Group</th> |
|---|
| 18 | <td>{{group}}</td> |
|---|
| 19 | </tr> |
|---|
| 20 | <tr> |
|---|
| 21 | <th>Account number</th> |
|---|
| 22 | <td>{{account_number}}</td> |
|---|
| 23 | </tr> |
|---|
| 24 | <tr> |
|---|
| 25 | <th>Username</th> |
|---|
| 26 | <td>{{username}}</td> |
|---|
| 27 | </tr> |
|---|
| 28 | <tr> |
|---|
| 29 | <th>Roles</th> |
|---|
| 30 | <td><ul> |
|---|
| 31 | {% for holder in office_holders %} |
|---|
| 32 | <li>{{holder.role}}</li> |
|---|
| 33 | {% empty %} |
|---|
| 34 | <li>No (public) roles</li> |
|---|
| 35 | {% endfor %} |
|---|
| 36 | </ul></td> |
|---|
| 37 | </tr> |
|---|
| 38 | </table> |
|---|
| 39 | {% endif %} |
|---|
| 40 | |
|---|
| 41 | <table class='pretty-table'> |
|---|
| 42 | <form enctype="multipart/form-data" method="get" action=""> |
|---|
| 43 | {{ form.as_table }} |
|---|
| 44 | <tr><th colspan='2'><input type='submit' name='search' value='Search' /></th></tr> |
|---|
| 45 | </form> |
|---|
| 46 | </table> |
|---|
| 47 | |
|---|
| 48 | <h2>Available Roles</h2> |
|---|
| 49 | |
|---|
| 50 | <p>The following roles will be listed if the user has them:</p> |
|---|
| 51 | |
|---|
| 52 | <table class='pretty-table'> |
|---|
| 53 | <tr> |
|---|
| 54 | <th>Role</th> |
|---|
| 55 | <th>Description</th> |
|---|
| 56 | </tr> |
|---|
| 57 | {% for role in visible_roles %} |
|---|
| 58 | <tr> |
|---|
| 59 | <th>{{role.display_name}}</th> |
|---|
| 60 | <td>{{role.description}}</td> |
|---|
| 61 | </tr> |
|---|
| 62 | {% endfor %} |
|---|
| 63 | </table> |
|---|
| 64 | |
|---|
| 65 | {% endblock %} |
|---|
Note: See
TracBrowser
for help on using the repository browser.