[6b8d891] | 1 | {% extends "base.html" %} |
---|
[587bb95] | 2 | {% load misc %} |
---|
[6b8d891] | 3 | |
---|
| 4 | {% block title %}Review reimbursement request for "{{ rr.name }}"{% endblock %} |
---|
| 5 | {% block content %} |
---|
| 6 | |
---|
| 7 | <h2>Review reimbursement request: {{rr.name}}</h2> |
---|
| 8 | |
---|
[856aac8] | 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 %} |
---|
[7416c7e] | 15 | |
---|
[a6806bf] | 16 | <table class='pretty-table reimbursement-request'> |
---|
[6b8d891] | 17 | <tr> |
---|
[856aac8] | 18 | <th>Request ID</th> |
---|
| 19 | <td>{{rr.label}}</td> |
---|
| 20 | </tr> |
---|
| 21 | <tr> |
---|
[6b8d891] | 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> |
---|
[f6c7295] | 39 | <td>{{rr.budget_area.pathstr}}</td> |
---|
| 40 | </tr> |
---|
| 41 | <tr> |
---|
| 42 | <th>Expense area</th> |
---|
| 43 | <td>{{rr.expense_area.pathstr}}</td> |
---|
[6b8d891] | 44 | </tr> |
---|
| 45 | <tr> |
---|
| 46 | <th>Submitter</th> |
---|
| 47 | <td>{{rr.submitter}}</td> |
---|
| 48 | </tr> |
---|
| 49 | <tr> |
---|
| 50 | <th>Check recipient</th> |
---|
| 51 | <td> |
---|
[ce973f1] | 52 | <p>{{rr.check_to_first_name}} {{ rr.check_to_last_name }} (email: {{rr.check_to_email}})</p> |
---|
[6b8d891] | 53 | <p>{{rr.check_to_addr}}</p> |
---|
| 54 | </td> |
---|
| 55 | </tr> |
---|
| 56 | <tr> |
---|
[dc17b01] | 57 | <th>Documentation</th> |
---|
| 58 | <td>{{rr.documentation}}</td> |
---|
| 59 | </tr> |
---|
| 60 | <tr> |
---|
[6b8d891] | 61 | <th>Request Time</th> |
---|
| 62 | <td>{{rr.request_time}}</td> |
---|
| 63 | </tr> |
---|
| 64 | <tr> |
---|
[587bb95] | 65 | <th>Approval Status (Time)</th> |
---|
| 66 | <td>{{ rr.approval_status|approval_status }} ({{ rr.approval_time }})</td> |
---|
[6b8d891] | 67 | </tr> |
---|
| 68 | <tr> |
---|
[82211ea] | 69 | <th>Voucher Processing Time</th> |
---|
| 70 | {%if rr.voucher%} |
---|
| 71 | {%if rr.voucher.process_time%} |
---|
| 72 | <td>{{rr.voucher.process_time}}</td> |
---|
| 73 | {%else%} |
---|
| 74 | <td>Not yet processed</td> |
---|
| 75 | {%endif%} |
---|
| 76 | {%else%} |
---|
| 77 | <td>Not yet approved</td> |
---|
| 78 | {%endif%} |
---|
[6b8d891] | 79 | </tr> |
---|
| 80 | </table> |
---|
| 81 | |
---|
[dc17b01] | 82 | {% if doc_form %} |
---|
| 83 | <h3>(Optional) Upload Documentation</h3> |
---|
| 84 | |
---|
| 85 | <p>If you ordered online, you may wish to upload documentation instead of providing a physical copy.</p> |
---|
| 86 | |
---|
| 87 | <form enctype="multipart/form-data" method="post" action=""> |
---|
| 88 | <table class='pretty-table'> |
---|
| 89 | {{ doc_form.as_table }} |
---|
[b34d568] | 90 | <tr><th colspan='2'><input type='submit' name='upload_documentation' value='Upload Documentation' /></th></tr> |
---|
[dc17b01] | 91 | </table> |
---|
| 92 | </form> |
---|
| 93 | {% endif %} |
---|
| 94 | |
---|
[856aac8] | 95 | {% if new %} |
---|
| 96 | {% include "vouchers/reimbursementrequest_instructions.fragment.html" %} |
---|
| 97 | {% endif %} |
---|
| 98 | |
---|
[e8550be] | 99 | {% if email_options %} |
---|
| 100 | <h3>Send stock emails</h3> |
---|
| 101 | {% if email_message %} |
---|
| 102 | <p>{{ email_message }}</p> |
---|
| 103 | {% endif %} |
---|
| 104 | |
---|
| 105 | <ul> |
---|
| 106 | {% for option in email_options %} |
---|
| 107 | <form method="post" action=""> |
---|
| 108 | <input type='submit' name='send_email' value='{{option.label}}'> |
---|
| 109 | <input type='hidden' name='email_name' value='{{option.name}}'> |
---|
| 110 | </form> |
---|
| 111 | {% endfor %} |
---|
| 112 | </ul> |
---|
| 113 | {% endif %} |
---|
| 114 | |
---|
[587bb95] | 115 | {% if approve_form %} |
---|
[e601d3b] | 116 | <h3>Approve this reimbursement request:</h3> |
---|
[587bb95] | 117 | {% if approve_message %} |
---|
| 118 | <p>{{ approve_message }}</p> |
---|
[3e79308] | 119 | {% else %} |
---|
[0671644] | 120 | {% if perms.vouchers.edit_reimbursementrequest %} |
---|
| 121 | <p>Optionally, <a href='{% url admin:vouchers_reimbursementrequest_change rr.pk %}'>change this request first</a>.</p> |
---|
| 122 | {% endif %} |
---|
[587bb95] | 123 | <form method="post" action=""> |
---|
| 124 | <table class='pretty-table'> |
---|
| 125 | {{ approve_form.as_table }} |
---|
| 126 | |
---|
| 127 | <tr> |
---|
| 128 | <th colspan='2'><input type="submit" name="approve" value="Approve" /></td> |
---|
| 129 | </tr> |
---|
| 130 | </table> |
---|
[db191ee] | 131 | </form> |
---|
| 132 | {% endif %} |
---|
[3e79308] | 133 | {% endif %} |
---|
[db191ee] | 134 | |
---|
[6b8d891] | 135 | {% endblock %} |
---|