{% extends 'corptools/character/char_base.html' %} {% block ct_block %} {% load colors %} {% load l10n %} {% load humanize %}
Sell Order Total

$ {{total_sell|intcomma}}

Buy Order Total

{{total_buy|intcomma}}

Active Orders
{% for m in char_data %} {% endfor %}
Date Item Item Price Remaining Location Character Filter Buy/Sell
{{m.issued|date:"Y-m-d h:i"}} ({{m.duration}} day) {{m.type_name.name}} {{m.price|intcomma}} {{m.volume_remain}} of {{m.volume_total}} {{m.location_name.location_name}} {{m.character.character.character_name}} {% if m.is_buy_order %}Buy{% else %}Sell{% endif %}
Completed Orders
{% for m in old_data %} {% endfor %}
Date State Item Item Price Remaining Location Character Filter Buy/Sell
{{m.issued|date:"Y-m-d h:i"}} ({{m.duration}} day) {{m.state}} {{m.type_name.name}} {{m.price|intcomma}} {{m.volume_remain}} of {{m.volume_total}} {{m.location_name.location_name}} {{m.character.character.character_name}} {% if m.is_buy_order %}Buy{% else %}Sell{% endif %}
{% endblock %} {% block extra_javascript %} {% include 'bundles/datatables-js.html' %} {% endblock %} {% block ct_extra_script %} $(document).ready(function() { $('#market').DataTable({ "filterDropDown": { columns: [{ idx: 5 }, { idx: 6 }] }, "columnDefs": [ { "visible": false, "targets": [5,6] } ], "order": [ [0, "desc"] ], "pageLength": 50 }); $('#orders').DataTable({ "filterDropDown": { columns: [{ idx: 1 },{ idx: 6 },{ idx: 7 }] }, "columnDefs": [ { "visible": false, "targets": [6,7] } ], "order": [ [0, "desc"] ], "pageLength": 50 }); }); {% endblock %}