[% PROCESS site/mainMenu.tt.html %] [% PROCESS cms/submenu.tt.html %]
[% PROCESS cms/shop/submenu.tt.html %]

[% Cat.cmsPick({en => 'Shop orders', es => 'Pedidos' }) %]

[% css_class = "odd" %] [% IF shoporders %] [% columns = c.model('cmsDB::Shoporder').result_source.columns; FOREACH name IN columns; IF name == 'country_id'; %] [% ELSIF name == 'user_id' %] [% ELSIF name == 'payment_method_id' %] [% ELSIF name == 'shipping_method_id' %] [% ELSIF name == 'shipping_cost' %] [% ELSIF name == 'other_address' %] [% ELSIF name == 'postal_code' %] [% ELSIF name == 'status_id' %] [% ELSIF name == 'creation_time' %] [% ELSE %] [% END; END; %] [% FOREACH shoporder IN shoporders.all %] [% FOREACH name IN columns %] [% IF name == 'country_id' %] [% ELSIF name == 'user_id' %] [% ELSIF name == 'payment_method_id' %] [% ELSIF name == 'shipping_method_id' %] [% ELSIF name == 'status_id' %] [% ELSIF name == 'creation_time' %] [% ELSIF name == 'other_address' %] [% IF shoporder.other_address %] [% ELSE %] [% END %] [% ELSE %] [% END %] [% END %] [% IF css_class == "odd"; css_class = ""; ELSE; css_class = "odd"; END; %] [% END %]
[% c.loc('Country') %] [% c.loc('User_id') %] [% c.loc('Payment method') %] [% c.loc('Shipping method') %] [% c.loc('Shipping cost') %] [% c.loc('Other address') %] [% c.loc('Postal code') %] [% c.loc('Status') %] [% c.loc('Creation time') %] [% c.loc(name.ufirst) %]  
[% shoporder.country_id.name_es %][% shoporder.user_id.email %][% c.loc(shoporder.payment_method_id.name) %][% c.loc(shoporder.shipping_method_id.name) %][% c.loc(shoporder.status_id.name) %][% c.dateToString(shoporder.creation_time,"datetime") %][% c.loc('Yes') %]No[% shoporder.$name %] [% Cat.cmsPick({en => 'Delete', es => 'Eliminar'}) %] [% Cat.cmsPick({en => 'Edit', es => 'Editar'}) %] [% Cat.cmsPick({en => 'Detail', es => 'Detalle'}) %]
    [% IF pager.previous_page %]
  • <<
  • <
  • [% ELSE %]
  • <<
  • <
  • [% END %]
  • [% pager.current_page %]/[% pager.last_page %]
  • [% IF pager.next_page %]
  • >
  • >>
  • [% ELSE %]
  • >
  • >>
  • [% END %]
[% END %]