generator: class: stAdminGenerator param: model_class: Product options_model_class: ProductOptionsValue theme: simple title: "Produkty" route: "@stProduct" icon: stProduct custom_actions: list: [options] list: use_stylesheet: [backend/stProductList.css] use_helper: [stProduct/stProduct, stDepository] auto_width: true filters: name: {filter_field: product_i18n.name} availability_id: {partial: filter_availability, module: stProduct} description: Zarządzanie produktami w sklepie. title: Magazyn display: [list_image, =name, code, stock, _availability_id, active, product_options] peer_method: doSelectWithI18n peer_count_method: doCountWithI18n fields: list_image: {name: Zdjęcie, callback: list_product_image, i18n: stProduct, width: 1%} code: {name: Kod, editable: false, i18n: stProduct, width: 1%} name: {name: Nazwa, params: truncate_text=true link_to="@stProduct?action=edit&id=%%id%%", sort_field: product_i18n.name, width: 35%, editable: false, i18n: stProduct} stock: {name: Stan magazynowy, i18n: stDepositoryBackend, callback: st_depository_list_stock, align: center, width: 1%} availability_id: {name: Dostępność, i18n: stAvailabilityBackend, align: center, params: truncate_text=true} active: {name: Aktywny, align: center, i18n: stProduct, width: 1%} product_options: {name: '', callback: st_depository_product_options_link, width: 1%} editable: stock: - actions: {} options_list: title: Edycja stanu magazynowego opcji produktu use_javascript: [/stProductOptionsPlugin/js/stProductOptionsStockBackend.js] menu: use: edit.menu display: [_options_list_value, _options_list_stock] forward_parameters: [product_id] build_options: related_id: forward_parameters.product_id related_class: Product peer_count_method: doCountLeafsJoinProduct peer_method: doSelectLeafsJoinProduct fields: options_list_value: {name: Opcje, sort_field: product_options_value.lft} options_list_stock: {name: Stan magazynowy, sort_field: product_options_value.stock} actions: _list: {name: Pokaż listę} _save: {name: Zapisz} select_actions: - max_per_page: 20 filters: value: {filter_field: product_options_value_i18n.value}