| 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>Status</th> |
|---|
| 22 | <td>{{group.group_status}}</td> |
|---|
| 23 | </tr> |
|---|
| 24 | <tr> |
|---|
| 25 | <th>Account number</th> |
|---|
| 26 | <td>{{account_number}}</td> |
|---|
| 27 | </tr> |
|---|
| 28 | <tr> |
|---|
| 29 | <th>Username</th> |
|---|
| 30 | <td>{{username}}</td> |
|---|
| 31 | </tr> |
|---|
| 32 | <tr> |
|---|
| 33 | <th>Roles</th> |
|---|
| 34 | <td><ul> |
|---|
| 35 | {% for holder in office_holders %} |
|---|
| 36 | <li>{{holder.role}}</li> |
|---|
| 37 | {% empty %} |
|---|
| 38 | <li>No (public) roles</li> |
|---|
| 39 | {% endfor %} |
|---|
| 40 | </ul></td> |
|---|
| 41 | </tr> |
|---|
| 42 | </table> |
|---|
| 43 | {% endif %} |
|---|
| 44 | |
|---|
| 45 | {% if account_number %} |
|---|
| 46 | <p>You may be able to find information about account {{account_number}} in <a href='https://rolesweb.mit.edu/cgi-bin/roleauth2.pl?category=SAP+SAP-related&func_name=CAN+SPEND+OR+COMMIT+FUNDS&qual_code=F{{account_number}}&skip_root=Y'>Roles</a>.</p> |
|---|
| 47 | {% endif %} |
|---|
| 48 | |
|---|
| 49 | <table class='pretty-table'> |
|---|
| 50 | <form enctype="multipart/form-data" method="get" action=""> |
|---|
| 51 | {{ form.as_table }} |
|---|
| 52 | <tr><th colspan='2'><input type='submit' name='search' value='Search' /></th></tr> |
|---|
| 53 | </form> |
|---|
| 54 | </table> |
|---|
| 55 | |
|---|
| 56 | <h2>Group Status</h2> |
|---|
| 57 | |
|---|
| 58 | <table class='pretty-table'> |
|---|
| 59 | <tr> |
|---|
| 60 | <th>Status</th> |
|---|
| 61 | <th>Description</th> |
|---|
| 62 | </tr> |
|---|
| 63 | <tr> |
|---|
| 64 | <th>Active</th> |
|---|
| 65 | <td>Active groups are normal ASA groups in good standing.</td> |
|---|
| 66 | </tr> |
|---|
| 67 | <tr> |
|---|
| 68 | <th>Suspended and Derecognized</th> |
|---|
| 69 | <td>Suspended and derecognized groups are <strong>not</strong> in good standing, and should generally not be permitted to spend money, reserve rooms, etc..</td> |
|---|
| 70 | </tr> |
|---|
| 71 | <tr> |
|---|
| 72 | <th>Non-Group Entity</th> |
|---|
| 73 | <td>Non-Group Entities do not necessarily have any ASA recognition, but are included in the ASA Database as a courtesy to other MIT offices. You may assume the roles listed are authoritative. However, the ASA does not grant them any privileges.</td> |
|---|
| 74 | </tr> |
|---|
| 75 | </table> |
|---|
| 76 | |
|---|
| 77 | |
|---|
| 78 | <h2>Available Roles</h2> |
|---|
| 79 | |
|---|
| 80 | <p>The following roles will be listed if the user has them:</p> |
|---|
| 81 | |
|---|
| 82 | <table class='pretty-table'> |
|---|
| 83 | <tr> |
|---|
| 84 | <th>Role</th> |
|---|
| 85 | <th>Description</th> |
|---|
| 86 | </tr> |
|---|
| 87 | {% for role in visible_roles %} |
|---|
| 88 | <tr> |
|---|
| 89 | <th>{{role.display_name}}</th> |
|---|
| 90 | <td>{{role.description}}</td> |
|---|
| 91 | </tr> |
|---|
| 92 | {% endfor %} |
|---|
| 93 | </table> |
|---|
| 94 | |
|---|
| 95 | {% endblock %} |
|---|