source: remit/remit_templates/vouchers/ReimbursementRequest_review.html @ 695d358

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

Django 1.6: use new {% url %} syntax

Starting in Django 1.5, the argument to {% url %} is treated as a variable,
rather than a literal. To get a literal, we need to enclose the argument in
quotes. For Django 1.4 support, we also want to do {% load url from future %}
-- probably in more places than just base.html, but we'll see.

  • Property mode set to 100644
File size: 3.2 KB
RevLine 
[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 %}
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 }}
[b34d568]95<tr><th colspan='2'><input type='submit' name='upload_documentation' value='Upload Documentation' /></th></tr>
[dc17b01]96</table>
97</form>
98{% endif %}
99
[856aac8]100{% if new %}
101{% include "vouchers/reimbursementrequest_instructions.fragment.html" %}
102{% endif %}
103
[e8550be]104{% if email_options %}
105<h3>Send stock emails</h3>
106{% if email_message %}
107<p>{{ email_message }}</p>
108{% endif %}
109
110<ul>
111{% for option in email_options %}
112<form method="post" action="">
113<input type='submit' name='send_email'  value='{{option.label}}'>
114<input type='hidden' name='email_name' value='{{option.name}}'>
115</form>
116{% endfor %}
117</ul>
118{% endif %}
119
[587bb95]120{% if approve_form %}
[e601d3b]121<h3>Approve this reimbursement request:</h3>
[587bb95]122{% if approve_message %}
123<p>{{ approve_message }}</p>
[3e79308]124{% else %}
[02dd5a1]125{% if perms.vouchers.change_reimbursementrequest %}
[695d358]126<p>Optionally, <a href='{% url "admin:vouchers_reimbursementrequest_change" rr.pk %}'>change this request first</a>.</p>
[0671644]127{% endif %}
[587bb95]128<form method="post" action="">
129<table class='pretty-table'>
130{{ approve_form.as_table }}
131
132<tr>
133    <th colspan='2'><input type="submit" name="approve" value="Approve" /></td>
134</tr>
135</table>
[db191ee]136</form>
137{% endif %}
[3e79308]138{% endif %}
[db191ee]139
[6b8d891]140{% endblock %}
Note: See TracBrowser for help on using the repository browser.