source: remit/remit_templates/vouchers/ReimbursementRequest_review.html @ 0445831

Last change on this file since 0445831 was 0445831, checked in by Alex Dehnert <adehnert@…>, 11 years ago

Add more missing csrf_tokens

  • Property mode set to 100644
File size: 3.3 KB
Line 
1{% extends "base.html" %}
2{% load url from future %}
3{% load misc %}
4
5{% block title %}Review reimbursement request for "{{ rr.name }}"{% endblock %}
6{% block content %}
7
8<h2>Review reimbursement request: {{rr.name}}</h2>
9
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 %}
16
17<table class='pretty-table reimbursement-request'>
18<tr>
19    <th>Request ID</th>
20    <td>{{rr.label}}</td>
21</tr>
22<tr>
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>
40    <td>{{rr.budget_area.pathstr}}</td>
41</tr>
42<tr>
43    <th>Expense area</th>
44    <td>{{rr.expense_area.pathstr}}</td>
45</tr>
46<tr>
47    <th>Submitter</th>
48    <td>{{rr.submitter}}</td>
49</tr>
50<tr>
51    <th>Check recipient</th>
52    <td>
53        <p>{{rr.check_to_first_name}} {{ rr.check_to_last_name }} (email: {{rr.check_to_email}})</p>
54        <p>{{rr.check_to_addr}}</p>
55    </td>
56</tr>
57<tr>
58    <th>Documentation</th>
59    {% if rr.documentation %}
60    <td><a href='{{rr.documentation.backing_file.url}}'>{{rr.documentation}}</a></td>
61    {% else %}
62    <td>No documentation submitted</td>
63    {% endif %}
64</tr>
65<tr>
66    <th>Request Time</th>
67    <td>{{rr.request_time}}</td>
68</tr>
69<tr>
70    <th>Approval Status (Time)</th>
71    <td>{{ rr.approval_status|approval_status }} ({{ rr.approval_time }})</td>
72</tr>
73<tr>
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%}
84</tr>
85</table>
86
87{% if doc_form %}
88<h3>(Optional) Upload Documentation</h3>
89
90<p>If you ordered online, you may wish to upload documentation instead of providing a physical copy.</p>
91
92<form enctype="multipart/form-data" method="post" action="">
93<table class='pretty-table'>
94{{ doc_form.as_table }}
95<tr><th colspan='2'><input type='submit' name='upload_documentation' value='Upload Documentation' /></th></tr>
96</table>
97{% csrf_token %}
98</form>
99{% endif %}
100
101{% if new %}
102{% include "vouchers/reimbursementrequest_instructions.fragment.html" %}
103{% endif %}
104
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}}'>
116{% csrf_token %}
117</form>
118{% endfor %}
119</ul>
120{% endif %}
121
122{% if approve_form %}
123<h3>Approve this reimbursement request:</h3>
124{% if approve_message %}
125<p>{{ approve_message }}</p>
126{% else %}
127{% if perms.vouchers.change_reimbursementrequest %}
128<p>Optionally, <a href='{% url "admin:vouchers_reimbursementrequest_change" rr.pk %}'>change this request first</a>.</p>
129{% endif %}
130<form method="post" action="">
131<table class='pretty-table'>
132{{ approve_form.as_table }}
133
134<tr>
135    <th colspan='2'><input type="submit" name="approve" value="Approve" /></td>
136</tr>
137</table>
138{% csrf_token %}
139</form>
140{% endif %}
141{% endif %}
142
143{% endblock %}
Note: See TracBrowser for help on using the repository browser.