source: remit/remit_templates/vouchers/vouchers.tex @ f332ade

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

Escape description in voucher summary

  • Property mode set to 100644
File size: 1.6 KB
Line 
1{% load latex %}
2{% autoescape off %}
3\documentclass{mitvoucher}
4
5\signatoryemail{esp-treasurer@mit.edu}
6\usepackage{pdfpages}
7\newcommand{\documentationpath}{%templatetag openbrace%}{{MEDIA_ROOT}}{%templatetag closebrace%}
8
9\begin{document}
10
11\section{Summary Table}
12
13The following {{vouchers|length}} vouchers (total: \${{total}}) are included in this run:\\
14\begin{tabular}{r|l|l|r|p{2in}}
15Account & Name & Email & Amount & Description \\
16{% for f in vouchers %}
17{{f.account|texescape}} &
18{{f.first_name|texescape}} {{f.last_name|texescape}} & 
19{{f.email_address|texescape}} &
20{{f.amount|texescape}} &
21{{f.description|texescape}} \\
22{% endfor %}
23\end{tabular}
24
25This run generated at {% now "H:i" %} on {% now "l F d, Y" %}.
26
27The following pages contain the vouchers themselves.
28
29\clearpage
30
31{% for f in vouchers %}
32\begin{voucher}
33\groupname{ {{f.group_name|texescape}} }
34\costobject{ {{f.account|texescape}} }
35\signatory{ {{f.signatory|texescape}} }
36\bycheck{}
37\payablefirst{ {{f.first_name|texescape}} }
38\payablelast{ {{f.last_name|texescape}} }
39\email{ {{f.email_address|texescape}} }
40{% if f.mailing_addr_lines.0 %}\mailone{ {{f.mailing_addr_lines.0|texescape}} }
41{% endif %}{% if f.mailing_addr_lines.1 %}\mailtwo{ {{f.mailing_addr_lines.1|texescape}} }
42{% endif %}{% if f.mailing_addr_lines.2 %}\mailthree{ {{f.mailing_addr_lines.2|texescape}} }
43{% endif %}\amt{\${{f.amount|texescape}} }
44\desc{
45{{f.description|texescape}}
46}
47\gl{ {{f.gl|texescape}} }
48\end{voucher}
49
50{% if f.documentation %}
51\includepdf[pages=-]{\documentationpath/{{f.documentation.backing_file}}}
52{% endif %}
53{% endfor %}
54
55\end{document}
56{% endautoescape %}
Note: See TracBrowser for help on using the repository browser.