Anand Doshi | 330dae9 | 2013-09-10 13:46:15 +0530 | [diff] [blame] | 1 | {% extends "app/portal/templates/includes/transactions.html" %} |
Anand Doshi | 6c8ef77 | 2013-08-30 18:23:50 +0530 | [diff] [blame] | 2 | |
| 3 | {% block javascript -%} |
Anand Doshi | 330dae9 | 2013-09-10 13:46:15 +0530 | [diff] [blame] | 4 | <script> |
| 5 | global_number_format = "{{ global_number_format }}"; |
| 6 | currency = "{{ currency }}"; |
| 7 | wn.currency_symbols = {{ currency_symbols }}; |
| 8 | </script> |
Anand Doshi | 6c8ef77 | 2013-08-30 18:23:50 +0530 | [diff] [blame] | 9 | |
| 10 | {{ super() }} |
| 11 | |
Anand Doshi | 330dae9 | 2013-09-10 13:46:15 +0530 | [diff] [blame] | 12 | <script> |
| 13 | var render = function(doc) { |
| 14 | doc.grand_total_export = format_currency(doc.grand_total_export, doc.currency); |
Anand Doshi | 1be5bb7 | 2013-09-12 15:25:38 +0530 | [diff] [blame] | 15 | if(!doc.status) doc.status = ""; |
| 16 | |
Anand Doshi | 330dae9 | 2013-09-10 13:46:15 +0530 | [diff] [blame] | 17 | $(repl('<a href="{{ page }}?name=%(name)s" class="list-group-item">\ |
| 18 | <div class="row">\ |
| 19 | <div class="col-md-6">\ |
| 20 | <div class="row col-md-12">%(name)s</div>\ |
Anand Doshi | 1be5bb7 | 2013-09-12 15:25:38 +0530 | [diff] [blame] | 21 | <div class="row col-md-12 text-muted">%(items)s</div>\ |
| 22 | <div class="row col-md-12">%(status)s</div>\ |
Anand Doshi | 330dae9 | 2013-09-10 13:46:15 +0530 | [diff] [blame] | 23 | </div>\ |
| 24 | <div class="col-md-3 text-right">%(grand_total_export)s</div>\ |
| 25 | <div class="col-md-3 text-right text-muted">%(creation)s</div>\ |
Anand Doshi | 6c8ef77 | 2013-08-30 18:23:50 +0530 | [diff] [blame] | 26 | </div>\ |
Anand Doshi | 330dae9 | 2013-09-10 13:46:15 +0530 | [diff] [blame] | 27 | </a>', doc)).appendTo($list); |
| 28 | }; |
| 29 | </script> |
Anand Doshi | 6c8ef77 | 2013-08-30 18:23:50 +0530 | [diff] [blame] | 30 | {%- endblock %} |