1 | {% extends "base.html" %} |
---|
2 | {% load misc %} |
---|
3 | |
---|
4 | {% block title %}Review reimbursement request for "{{ rr.name }}"{% endblock %} |
---|
5 | {% block content %} |
---|
6 | |
---|
7 | <h2>Review reimbursement request: {{rr.name}}</h2> |
---|
8 | |
---|
9 | {% if new %} |
---|
10 | <div class='messagebox infobox'> |
---|
11 | <h3>Request Submitted</h3> |
---|
12 | <p>You have successfully submitted a request for reimbursement.</p> |
---|
13 | </div> |
---|
14 | {% endif %} |
---|
15 | |
---|
16 | <table class='pretty-table reimbursement-request'> |
---|
17 | <tr> |
---|
18 | <th>Request ID</th> |
---|
19 | <td>{{rr.label}}</td> |
---|
20 | </tr> |
---|
21 | <tr> |
---|
22 | <th>Short description</th> |
---|
23 | <td>{{rr.name}}</td> |
---|
24 | </tr> |
---|
25 | <tr> |
---|
26 | <th>Long description</th> |
---|
27 | <td>{{rr.description}}</td> |
---|
28 | </tr> |
---|
29 | <tr> |
---|
30 | <th>Amount</th> |
---|
31 | <td>${{rr.amount}}</td> |
---|
32 | </tr> |
---|
33 | <tr> |
---|
34 | <th>Term</th> |
---|
35 | <td>{{rr.budget_term}}</td> |
---|
36 | </tr> |
---|
37 | <tr> |
---|
38 | <th>Budget area</th> |
---|
39 | <td>{{rr.budget_area.pathstr}}</td> |
---|
40 | </tr> |
---|
41 | <tr> |
---|
42 | <th>Expense area</th> |
---|
43 | <td>{{rr.expense_area.pathstr}}</td> |
---|
44 | </tr> |
---|
45 | <tr> |
---|
46 | <th>Submitter</th> |
---|
47 | <td>{{rr.submitter}}</td> |
---|
48 | </tr> |
---|
49 | <tr> |
---|
50 | <th>Check recipient</th> |
---|
51 | <td> |
---|
52 | <p>{{rr.check_to_first_name}} {{ rr.check_to_last_name }} (email: {{rr.check_to_email}})</p> |
---|
53 | <p>{{rr.check_to_addr}}</p> |
---|
54 | </td> |
---|
55 | </tr> |
---|
56 | <tr> |
---|
57 | <th>Request Time</th> |
---|
58 | <td>{{rr.request_time}}</td> |
---|
59 | </tr> |
---|
60 | <tr> |
---|
61 | <th>Approval Status (Time)</th> |
---|
62 | <td>{{ rr.approval_status|approval_status }} ({{ rr.approval_time }})</td> |
---|
63 | </tr> |
---|
64 | <tr> |
---|
65 | <th>Printing Time</th> |
---|
66 | <td>{{rr.printing_time}}</td> |
---|
67 | </tr> |
---|
68 | </table> |
---|
69 | |
---|
70 | {% if new %} |
---|
71 | {% include "vouchers/reimbursementrequest_instructions.fragment.html" %} |
---|
72 | {% endif %} |
---|
73 | |
---|
74 | {% if email_options %} |
---|
75 | <h3>Send stock emails</h3> |
---|
76 | {% if email_message %} |
---|
77 | <p>{{ email_message }}</p> |
---|
78 | {% endif %} |
---|
79 | |
---|
80 | <ul> |
---|
81 | {% for option in email_options %} |
---|
82 | <form method="post" action=""> |
---|
83 | <input type='submit' name='send_email' value='{{option.label}}'> |
---|
84 | <input type='hidden' name='email_name' value='{{option.name}}'> |
---|
85 | </form> |
---|
86 | {% endfor %} |
---|
87 | </ul> |
---|
88 | {% endif %} |
---|
89 | |
---|
90 | {% if approve_form %} |
---|
91 | <h3>Approve this reimbursement request:</h3> |
---|
92 | {% if approve_message %} |
---|
93 | <p>{{ approve_message }}</p> |
---|
94 | {% else %} |
---|
95 | <form method="post" action=""> |
---|
96 | <table class='pretty-table'> |
---|
97 | {{ approve_form.as_table }} |
---|
98 | |
---|
99 | <tr> |
---|
100 | <th colspan='2'><input type="submit" name="approve" value="Approve" /></td> |
---|
101 | </tr> |
---|
102 | </table> |
---|
103 | </form> |
---|
104 | {% endif %} |
---|
105 | {% endif %} |
---|
106 | |
---|
107 | {% endblock %} |
---|