1 | {% extends "base.html" %} |
---|
2 | {% load misc %} |
---|
3 | |
---|
4 | {% block title %}List reimbursement requests{% endblock %} |
---|
5 | {% block content %} |
---|
6 | |
---|
7 | <h2>List Reimbursement Requests</h2> |
---|
8 | |
---|
9 | {%if useronly%} |
---|
10 | <p>Displaying only vouchers related to you.</p> |
---|
11 | {%else%} |
---|
12 | <p>You have permission to list all vouchers.</p> |
---|
13 | {%endif%} |
---|
14 | |
---|
15 | <form> |
---|
16 | <table class='pretty-table'> |
---|
17 | <tr> |
---|
18 | <th>Approval Status</th> |
---|
19 | <td><select name='approval_status'> |
---|
20 | <option value='all'{%ifequal approval_status "all"%} selected='selected'{%endifequal%}>All</option> |
---|
21 | {% for id,label in approval_states %} |
---|
22 | <option value='{{id}}'{%ifequal approval_status id%} selected='selected'{%endifequal%}>{{label}}</option> |
---|
23 | {% endfor %} |
---|
24 | </select></td> |
---|
25 | </tr> |
---|
26 | <tr> |
---|
27 | <th>Order</th> |
---|
28 | <td><select name='order'> |
---|
29 | {% for name,label,cols in orders %} |
---|
30 | <option value='{{name}}'{%ifequal order name%} selected='selected'{%endifequal%}>{{label}}</option> |
---|
31 | {% endfor %} |
---|
32 | </select></td> |
---|
33 | </tr> |
---|
34 | <tr> |
---|
35 | <th colspan='2'><input type='submit' name='submit' value='Submit'></th> |
---|
36 | </tr> |
---|
37 | </table> |
---|
38 | </form> |
---|
39 | |
---|
40 | <p><br /></p> |
---|
41 | |
---|
42 | <table class='pretty-table'> |
---|
43 | <tr> |
---|
44 | <th>#</th> |
---|
45 | <th>Name</th> |
---|
46 | <th>Amount</th> |
---|
47 | <th>Check to</th> |
---|
48 | <th>Accounts</th> |
---|
49 | <th>Approval state (date)</th> |
---|
50 | </tr> |
---|
51 | |
---|
52 | {% for object in object_list %} |
---|
53 | <tr> |
---|
54 | <td><a href='{% url review_request object.pk %}'>{{ object.pk }}</a></td> |
---|
55 | <td><a href='{% url review_request object.pk %}'>{{ object.name }}</a></td> |
---|
56 | <td>${{ object.amount }}</td> |
---|
57 | <td> |
---|
58 | {{ object.check_to_first_name }} {{ object.check_to_last_name }}<br /> |
---|
59 | <a href='mailto:{{ object.check_to_email }}'>{{ object.check_to_email }}</a><br /> |
---|
60 | (Submitter {{ object.submitter }}) |
---|
61 | </td> |
---|
62 | <td> |
---|
63 | Term: {{ object.budget_term }}<br /> |
---|
64 | Budget: {{ object.budget_area|budgetarea_pathstr:3 }}<br /> |
---|
65 | GL: {{ object.expense_area|budgetarea_pathstr:2 }} |
---|
66 | </td> |
---|
67 | <td class='request-status-{{ object.approval_status|approval_status_class}}'> |
---|
68 | {{ object.approval_status|approval_status }} ({{ object.approval_time }}) |
---|
69 | </td> |
---|
70 | </tr> |
---|
71 | {% endfor %} |
---|
72 | </table> |
---|
73 | |
---|
74 | {% endblock %} |
---|