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