{if empty($orders)}




[`There are no orders in this view.`]
{else}
{if $view == 'split'} {capture name="template-order-list-split"} {literal} {% var orders = o.orders; %} {% for (var i = 0, n = orders.length; i < n; i += 1) { %} {% var order = orders[i]; %}
  • {% if (!$.isEmptyObject(order.contact)) { %}
    {% include('template-order-list-split-details', { order: order }); %}
    {% } %}
  • {% } %} {/literal} {/capture} {capture name="template-order-list-split-details"} {literal}{%#o.order.status%} {%#o.order.total_str%} {%#o.order.id_str%}

    {% if (o.order.contact.name) { %} {%#o.order.contact.name%}
    {% } else { %} [`(no name)`]
    {% } %} {%#o.order.create_datetime_str%}

    {/literal} {/capture} {elseif $view == 'table'}
    {capture name="template-order-list-table"} {include file='./include.template_order_list_table.html' inline} {/capture} {/if}
    {_w('%d order','%d orders', $count)} {sprintf(_w('of %d'), $total_count)}

    = $total_count}style="display:none;"{/if}>[`Show more orders`]
    {capture name="template-order-list-printforms-menu-items"} {literal} {% var printform, printform_iterator = $.shop.iterator(o.printforms); %} {% if (printform_iterator.len() > 0) { %}
  • {% while (printform = printform_iterator.next()) { %}
  • {% } %}
  • {% } %} {/literal} {/capture} {* js templates block*} {foreach ifempty($smarty.capture, []) as $template => $template_content} {if $template_content && (strpos($template, 'template-')===0)} {capture name=$template}{/capture} {/if} {/foreach} {/if}