blob: f4fd5d18cc00ccad456c9cf539a1e8bfa5487749 [file] [log] [blame]
Anand Doshi330dae92013-09-10 13:46:15 +05301{% extends "app/portal/templates/includes/transactions.html" %}
Anand Doshi6c8ef772013-08-30 18:23:50 +05302
3{% block javascript -%}
Anand Doshi330dae92013-09-10 13:46:15 +05304<script>
Anand Doshi3966c4c2013-09-16 19:28:06 +05305$(document).ready(function() {
Anand Doshi330dae92013-09-10 13:46:15 +05306 global_number_format = "{{ global_number_format }}";
7 currency = "{{ currency }}";
8 wn.currency_symbols = {{ currency_symbols }};
Anand Doshi3966c4c2013-09-16 19:28:06 +05309});
Anand Doshi330dae92013-09-10 13:46:15 +053010</script>
Anand Doshi6c8ef772013-08-30 18:23:50 +053011
12{{ super() }}
13
Anand Doshi330dae92013-09-10 13:46:15 +053014<script>
15 var render = function(doc) {
16 doc.grand_total_export = format_currency(doc.grand_total_export, doc.currency);
Anand Doshi1be5bb72013-09-12 15:25:38 +053017 if(!doc.status) doc.status = "";
18
Anand Doshi330dae92013-09-10 13:46:15 +053019 $(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 Doshi1be5bb72013-09-12 15:25:38 +053023 <div class="row col-md-12 text-muted">%(items)s</div>\
24 <div class="row col-md-12">%(status)s</div>\
Anand Doshi330dae92013-09-10 13:46:15 +053025 </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 Doshi6c8ef772013-08-30 18:23:50 +053028 </div>\
Anand Doshi330dae92013-09-10 13:46:15 +053029 </a>', doc)).appendTo($list);
30 };
31</script>
Anand Doshi6c8ef772013-08-30 18:23:50 +053032{%- endblock %}