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>Documentation</th> |
---|
58 | <td>{{rr.documentation}}</td> |
---|
59 | </tr> |
---|
60 | <tr> |
---|
61 | <th>Request Time</th> |
---|
62 | <td>{{rr.request_time}}</td> |
---|
63 | </tr> |
---|
64 | <tr> |
---|
65 | <th>Approval Status (Time)</th> |
---|
66 | <td>{{ rr.approval_status|approval_status }} ({{ rr.approval_time }})</td> |
---|
67 | </tr> |
---|
68 | <tr> |
---|
69 | <th>Printing Time</th> |
---|
70 | <td>{{rr.printing_time}}</td> |
---|
71 | </tr> |
---|
72 | </table> |
---|
73 | |
---|
74 | {% if doc_form %} |
---|
75 | <h3>(Optional) Upload Documentation</h3> |
---|
76 | |
---|
77 | <p>If you ordered online, you may wish to upload documentation instead of providing a physical copy.</p> |
---|
78 | |
---|
79 | <form enctype="multipart/form-data" method="post" action=""> |
---|
80 | <table class='pretty-table'> |
---|
81 | {{ doc_form.as_table }} |
---|
82 | <tr><th colspan='2'><input type='submit' value='Upload Documentation' /></th></tr> |
---|
83 | </table> |
---|
84 | </form> |
---|
85 | {% endif %} |
---|
86 | |
---|
87 | {% if new %} |
---|
88 | {% include "vouchers/reimbursementrequest_instructions.fragment.html" %} |
---|
89 | {% endif %} |
---|
90 | |
---|
91 | {% if email_options %} |
---|
92 | <h3>Send stock emails</h3> |
---|
93 | {% if email_message %} |
---|
94 | <p>{{ email_message }}</p> |
---|
95 | {% endif %} |
---|
96 | |
---|
97 | <ul> |
---|
98 | {% for option in email_options %} |
---|
99 | <form method="post" action=""> |
---|
100 | <input type='submit' name='send_email' value='{{option.label}}'> |
---|
101 | <input type='hidden' name='email_name' value='{{option.name}}'> |
---|
102 | </form> |
---|
103 | {% endfor %} |
---|
104 | </ul> |
---|
105 | {% endif %} |
---|
106 | |
---|
107 | {% if approve_form %} |
---|
108 | <h3>Approve this reimbursement request:</h3> |
---|
109 | {% if approve_message %} |
---|
110 | <p>{{ approve_message }}</p> |
---|
111 | {% else %} |
---|
112 | <form method="post" action=""> |
---|
113 | <table class='pretty-table'> |
---|
114 | {{ approve_form.as_table }} |
---|
115 | |
---|
116 | <tr> |
---|
117 | <th colspan='2'><input type="submit" name="approve" value="Approve" /></td> |
---|
118 | </tr> |
---|
119 | </table> |
---|
120 | </form> |
---|
121 | {% endif %} |
---|
122 | {% endif %} |
---|
123 | |
---|
124 | {% endblock %} |
---|