[6b8d891] | 1 | {% extends "base.html" %} |
---|
[695d358] | 2 | {% load url from future %} |
---|
[587bb95] | 3 | {% load misc %} |
---|
[6b8d891] | 4 | |
---|
| 5 | {% block title %}Review reimbursement request for "{{ rr.name }}"{% endblock %} |
---|
| 6 | {% block content %} |
---|
| 7 | |
---|
| 8 | <h2>Review reimbursement request: {{rr.name}}</h2> |
---|
| 9 | |
---|
[856aac8] | 10 | {% if new %} |
---|
| 11 | <div class='messagebox infobox'> |
---|
| 12 | <h3>Request Submitted</h3> |
---|
| 13 | <p>You have successfully submitted a request for reimbursement.</p> |
---|
| 14 | </div> |
---|
| 15 | {% endif %} |
---|
[7416c7e] | 16 | |
---|
[a6806bf] | 17 | <table class='pretty-table reimbursement-request'> |
---|
[6b8d891] | 18 | <tr> |
---|
[856aac8] | 19 | <th>Request ID</th> |
---|
| 20 | <td>{{rr.label}}</td> |
---|
| 21 | </tr> |
---|
| 22 | <tr> |
---|
[6b8d891] | 23 | <th>Short description</th> |
---|
| 24 | <td>{{rr.name}}</td> |
---|
| 25 | </tr> |
---|
| 26 | <tr> |
---|
| 27 | <th>Long description</th> |
---|
| 28 | <td>{{rr.description}}</td> |
---|
| 29 | </tr> |
---|
| 30 | <tr> |
---|
| 31 | <th>Amount</th> |
---|
| 32 | <td>${{rr.amount}}</td> |
---|
| 33 | </tr> |
---|
| 34 | <tr> |
---|
| 35 | <th>Term</th> |
---|
| 36 | <td>{{rr.budget_term}}</td> |
---|
| 37 | </tr> |
---|
| 38 | <tr> |
---|
| 39 | <th>Budget area</th> |
---|
[f6c7295] | 40 | <td>{{rr.budget_area.pathstr}}</td> |
---|
| 41 | </tr> |
---|
| 42 | <tr> |
---|
| 43 | <th>Expense area</th> |
---|
| 44 | <td>{{rr.expense_area.pathstr}}</td> |
---|
[6b8d891] | 45 | </tr> |
---|
| 46 | <tr> |
---|
| 47 | <th>Submitter</th> |
---|
| 48 | <td>{{rr.submitter}}</td> |
---|
| 49 | </tr> |
---|
| 50 | <tr> |
---|
| 51 | <th>Check recipient</th> |
---|
| 52 | <td> |
---|
[ce973f1] | 53 | <p>{{rr.check_to_first_name}} {{ rr.check_to_last_name }} (email: {{rr.check_to_email}})</p> |
---|
[6b8d891] | 54 | <p>{{rr.check_to_addr}}</p> |
---|
| 55 | </td> |
---|
| 56 | </tr> |
---|
| 57 | <tr> |
---|
[dc17b01] | 58 | <th>Documentation</th> |
---|
[a5ef930] | 59 | {% if rr.documentation %} |
---|
[0e4f185] | 60 | <td><a href='{{rr.documentation.backing_file.url}}'>{{rr.documentation}}</a></td> |
---|
[a5ef930] | 61 | {% else %} |
---|
| 62 | <td>No documentation submitted</td> |
---|
| 63 | {% endif %} |
---|
[dc17b01] | 64 | </tr> |
---|
| 65 | <tr> |
---|
[6b8d891] | 66 | <th>Request Time</th> |
---|
| 67 | <td>{{rr.request_time}}</td> |
---|
| 68 | </tr> |
---|
| 69 | <tr> |
---|
[587bb95] | 70 | <th>Approval Status (Time)</th> |
---|
| 71 | <td>{{ rr.approval_status|approval_status }} ({{ rr.approval_time }})</td> |
---|
[6b8d891] | 72 | </tr> |
---|
| 73 | <tr> |
---|
[82211ea] | 74 | <th>Voucher Processing Time</th> |
---|
| 75 | {%if rr.voucher%} |
---|
| 76 | {%if rr.voucher.process_time%} |
---|
| 77 | <td>{{rr.voucher.process_time}}</td> |
---|
| 78 | {%else%} |
---|
| 79 | <td>Not yet processed</td> |
---|
| 80 | {%endif%} |
---|
| 81 | {%else%} |
---|
| 82 | <td>Not yet approved</td> |
---|
| 83 | {%endif%} |
---|
[6b8d891] | 84 | </tr> |
---|
| 85 | </table> |
---|
| 86 | |
---|
[dc17b01] | 87 | {% if doc_form %} |
---|
[03aae73] | 88 | <h3>Upload Documentation</h3> |
---|
[dc17b01] | 89 | |
---|
[03aae73] | 90 | <p>SAO requires that all RFPs be submitted with electronic documentation. If you ordered online, you can just upload a PDF of your purchase details. For in-person purchases, you should upload a scan of the receipt. Be sure documentation includes both itemization and proof of payment.</p> |
---|
[dc17b01] | 91 | |
---|
| 92 | <form enctype="multipart/form-data" method="post" action=""> |
---|
| 93 | <table class='pretty-table'> |
---|
| 94 | {{ doc_form.as_table }} |
---|
[b34d568] | 95 | <tr><th colspan='2'><input type='submit' name='upload_documentation' value='Upload Documentation' /></th></tr> |
---|
[dc17b01] | 96 | </table> |
---|
[0445831] | 97 | {% csrf_token %} |
---|
[dc17b01] | 98 | </form> |
---|
| 99 | {% endif %} |
---|
| 100 | |
---|
[856aac8] | 101 | {% if new %} |
---|
| 102 | {% include "vouchers/reimbursementrequest_instructions.fragment.html" %} |
---|
| 103 | {% endif %} |
---|
| 104 | |
---|
[e8550be] | 105 | {% if email_options %} |
---|
| 106 | <h3>Send stock emails</h3> |
---|
| 107 | {% if email_message %} |
---|
| 108 | <p>{{ email_message }}</p> |
---|
| 109 | {% endif %} |
---|
| 110 | |
---|
| 111 | <ul> |
---|
| 112 | {% for option in email_options %} |
---|
| 113 | <form method="post" action=""> |
---|
| 114 | <input type='submit' name='send_email' value='{{option.label}}'> |
---|
| 115 | <input type='hidden' name='email_name' value='{{option.name}}'> |
---|
[0445831] | 116 | {% csrf_token %} |
---|
[e8550be] | 117 | </form> |
---|
| 118 | {% endfor %} |
---|
| 119 | </ul> |
---|
| 120 | {% endif %} |
---|
| 121 | |
---|
[56c7337] | 122 | |
---|
[638b547] | 123 | {% if show_approve or approve_message %} |
---|
| 124 | <h3>Approve this reimbursement request:</h3> |
---|
| 125 | {% if approve_message %} |
---|
| 126 | <div class='messagebox {{approve_level}}box'> |
---|
| 127 | <p>{{approve_message}}</p> |
---|
| 128 | </div> |
---|
| 129 | {% else %} |
---|
| 130 | {% if perms.vouchers.change_reimbursementrequest %} |
---|
| 131 | <p>Optionally, <a href='{% url "admin:vouchers_reimbursementrequest_change" rr.pk %}'>change this request first</a>.</p> |
---|
| 132 | {% endif %} |
---|
| 133 | <form method="post" action="."> |
---|
| 134 | <th colspan='2'><input type="submit" name="approve" value="Approve as RFP" /></td> |
---|
| 135 | {% csrf_token %} |
---|
| 136 | </form> |
---|
| 137 | {% endif %} |
---|
[3e79308] | 138 | {% endif %} |
---|
[db191ee] | 139 | |
---|
[6b8d891] | 140 | {% endblock %} |
---|