| 1 | {% extends "base.html" %} |
|---|
| 2 | |
|---|
| 3 | {% block title %}Space assignments{% endblock %} |
|---|
| 4 | {% block content %} |
|---|
| 5 | |
|---|
| 6 | <h1>Space assignments</h1> |
|---|
| 7 | |
|---|
| 8 | <div class='toolbox'> |
|---|
| 9 | <h2>Locations</h2> |
|---|
| 10 | <ul> |
|---|
| 11 | <li><a href='#offices'>Offices</a></li> |
|---|
| 12 | {% for room, occupants in lockers %} |
|---|
| 13 | <li><a href='#{{room.number}}'>{{room.number}}</a></li> |
|---|
| 14 | {%endfor%} |
|---|
| 15 | </ul> |
|---|
| 16 | </div> |
|---|
| 17 | |
|---|
| 18 | <p>This page displays the occupants of all ASA-assigned office and shared |
|---|
| 19 | storage (locker) space. You can view more information about any group by |
|---|
| 20 | following the links, and view and manage access by following the "Access" link |
|---|
| 21 | for any group for which you have permission.</p> |
|---|
| 22 | |
|---|
| 23 | <h2><a name='offices'></a>Offices</h2> |
|---|
| 24 | |
|---|
| 25 | <table class='pretty-table'> |
|---|
| 26 | <tr> |
|---|
| 27 | <th>Room</th> |
|---|
| 28 | <th>Group</th> |
|---|
| 29 | <th><a href='{% url space-lock-type %}'>Lock Type</a></th> |
|---|
| 30 | <th>Access</th> |
|---|
| 31 | </tr> |
|---|
| 32 | {% for office in offices %} |
|---|
| 33 | <tr> |
|---|
| 34 | <td>{{office.space.number}}</td> |
|---|
| 35 | <td><a href='{% url groups:group-detail office.group.pk %}'>{{office.group}}</a></td> |
|---|
| 36 | <td>{{office.space.lock_type.name}}</td> |
|---|
| 37 | <td><a href='{% url groups:group-space-access office.group.pk %}'>Access</a></td> |
|---|
| 38 | </tr> |
|---|
| 39 | {% endfor %} |
|---|
| 40 | </table> |
|---|
| 41 | |
|---|
| 42 | <h2>Shared storage (locker rooms)</h2> |
|---|
| 43 | {% for room, occupants in lockers %} |
|---|
| 44 | |
|---|
| 45 | <h3><a name='{{room.number}}'></a>{{room.number}}</h3> |
|---|
| 46 | |
|---|
| 47 | <table class='pretty-table'> |
|---|
| 48 | <tr> |
|---|
| 49 | <th>Locker</th> |
|---|
| 50 | <th>Group</th> |
|---|
| 51 | <th>Access</th> |
|---|
| 52 | </tr> |
|---|
| 53 | {% for locker in occupants %} |
|---|
| 54 | <tr> |
|---|
| 55 | <td>{{locker.locker_num}}</td> |
|---|
| 56 | <td><a href='{% url groups:group-detail locker.group.pk %}'>{{locker.group}}</a></td> |
|---|
| 57 | <td><a href='{% url groups:group-space-access locker.group.pk %}'>Access</a></td> |
|---|
| 58 | </tr> |
|---|
| 59 | {% endfor %} |
|---|
| 60 | </table> |
|---|
| 61 | |
|---|
| 62 | {%endfor%} |
|---|
| 63 | |
|---|
| 64 | {% endblock %} |
|---|