[% USE HTML %] [% INCLUDE includes/errors %] [% page.id = 'page-wishlist' %] [% IF NOT wishlist %] [% page.title = c.localize('WISHLIST_NOT_FOUND') %] [% ELSE %] [% page.title = wishlist.name -%]
[% c.forms('wishlists_delete').render( 'action', c.uri_for_resource('mango/wishlists', 'delete', [wishlist.id]) _ '/' ) %] [% c.forms('wishlists_restore').render( 'action', c.uri_for_resource('mango/wishlists', 'restore', [wishlist.id]) _ '/' ) %] [% HTML.escape(wishlist.description) %] [% IF wishlist.count %]| [% c.localize('LABEL_SKU') %] | [% c.localize('LABEL_DESCRIPTION') %] | [% c.localize('LABEL_QUANTITY') %] | [% c.localize('LABEL_UNIT_PRICE') %] | [% c.localize('LABEL_TOTAL') %] | ||
|---|---|---|---|---|---|---|
| [% HTML.escape(item.sku) %] | [% HTML.escape(item.description) %] | [% SET form = c.forms('wishlists_items_update') %] [% CALL form.id(form.id _ '_' _ item.id) %] [% form.render('values', [item.quantity], 'action', c.uri_for_resource('mango/wishlists/items', 'update', [wishlist.id, item.id]) _ '/' ) %] | [% HTML.escape(item.price.as_string('FMT_SYMBOL')) %] | [% HTML.escape(item.total.as_string('FMT_SYMBOL')) %] | [% SET form = c.forms('wishlists_items_delete') %] [% CALL form.id(form.id _ '_' _ item.id) %] [% form.render('values', [item.id, item.quantity], 'action', c.uri_for_resource('mango/wishlists/items', 'delete', [wishlist.id, item.id]) _ '/' ) %] | |
| [% c.localize('LABEL_SUBTOTAL') %]: | [% HTML.escape(wishlist.subtotal.as_string('FMT_SYMBOL')) %] | |||||
| [% c.forms('wishlists_clear').render( 'action', c.uri_for_resource('mango/wishlists', 'clear', [wishlist.id]) _ '/' ) %] | ||||||
[% c.localize('WISHLIST_IS_EMPTY') %]
[% END %] [% END %]