first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
generator:
class: stAdminGenerator
param:
model_class: OrderProduct
theme: simple
title: "Sprzedane produkty"
route: "@stRecentlyOrderedProductsBackend"
icon: "stOrder"
documentation:
pl: "https://www.sote.pl/docs/zamowienia"
en: "https://www.soteshop.com/docs/orders"
list:
use_stylesheet: [backend/stProductList.css]
use_helper: [stProductImage]
menu:
display: [list]
fields:
list: {name: "Sprzedane produkty", action: "@stRecentlyOrderedProductsBackend?action=list"}
display: [created_at, _image, =name, ~orders, ~quantity]
fields:
created_at: {name: Sprzedany, filter_only: true}
image: {name: "", filterable: false, width: 1%, align: center}
name: {name: "Produkt", params: link_to="@stProduct?action=edit&id=%%product_id%%"}
orders: {name: "Zamówienie", sortable: false}
quantity: {name: "Ilość", filterable: false, sortable: false}
object_actions:
select_actions: []
actions: []
filters:
name: {partial: filter_order_product}
peer_method: doSelectRecentlyOrdered
peer_count_method: doCountRecentlyOrdered