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