nction() {
			ctrl.set('form', { widgets: [], ispublished: true, prices: [{ price: 1, stock: 1, name: '' }] }, true);
			SET('common.form', ctrl.scope + '-form');
		};

		ctrl.filter = function(type, input, sort, page, grid) {
			filter = input ? CLONE(input) : {};
			sort && (filter.sort = sort.name + '_' + sort.sorting);
			filter.page = page;
			ctrl.refresh();
		};
	});

</script>