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,157 @@
generator:
class: stAdminGenerator
param:
model_class: ProductOptionsValue
filter_model_class: ProductOptionsFilter
template_model_class: ProductOptionsTemplate
field_model_class: ProductOptionsField
template_value_model_class: ProductOptionsDefaultValue
template_field_model_class: ProductOptionsField
theme: simple
head:
package: stProduct
custom_actions:
list: [filter, template]
edit: [filter, template, template_field, template_value, field, root]
root_edit:
ajax: true
display: [_price_type]
fields:
price_type: {name: Rodzaj wprowadzanej ceny}
actions:
_save: {name: Zapisz}
forward_parameters: [product_id]
build_options:
related_id: forward_parameters.product_id
related_class: Product
edit:
ajax: true
use_helper: [stProduct/stProduct]
display: [_is_active, value, price, old_price, weight, _edit_stock, use_product, man_code, _edit_color, ~sf_asset_id]
fields:
is_active: {name: "Aktywna", partial: edit_option_is_active}
value: {name: Wartość, help: "Wprowadź wartość opcji (np. zielony, XL)", params: disabled=false size=40}
price: {name: Modyfikator ceny, help: "price.modifier.help", postfix: "%%currency%%", params: size=10}
old_price: {name: Stara cena, help: "Wprowadź starą cene (np. 123.45)", postfix: "%%currency%%", params: size=10}
weight: {name: Modyfikator wagi, help: "weight.modifier.help", postfix: "kg", params: size=10}
man_code: {name: Kod producenta, help: "Kod kreskowy EAN | UPC lub JAN", params: size=40, i18n: stProduct}
use_product: {name: Kod produktu, i18n: stProduct, params: size=40}
edit_stock: {name: Stan magazynowy}
edit_color: {name: Kolor}
sf_asset_id: {name: Zdjęcie, component: editProductImage}
actions:
_save: {name: Zapisz}
forward_parameters: [product_id]
build_options:
related_id: forward_parameters.product_id
related_class: Product
template_value_edit:
ajax: true
use_helper: [stProduct/stProduct]
display: [value, price, old_price, weight, _template_field_edit_color]
fields:
value: {name: Wartość, help: "Wprowadź wartość opcji (np. zielony, XL)", params: disabled=false size=40}
price: {name: Modyfikator ceny, help: "price.modifier.help", postfix: "%%currency%%", params: size=10}
old_price: {name: Stara cena, help: "Wprowadź starą cene (np. 123.45)", postfix: "%%currency%%", params: size=10}
weight: {name: Modyfikator wagi, help: "weight.modifier.help", postfix: "kg", params: size=10}
template_field_edit_color: {name: Kolor}
actions:
_save: {name: Zapisz}
forward_parameters: [template_id]
build_options:
related_id: forward_parameters.template_id
related_class: ProductOptionsTemplate
field_edit:
ajax: true
use_helper: [stProductOptionsBackend]
display: [_is_active, name, opt_default_value, product_options_filter_id]
fields:
is_active: {name: "Aktywna", partial: edit_field_is_active}
name: {name: Nazwa, params: disabled=false}
product_options_filter_id: {name: Typ filtra, params: include_custom="---" include_blank=false}
opt_default_value: {name: Domyślna wartość, hide_on_create: true, type: field_select_default_value}
actions:
_save: {name: Zapisz}
forward_parameters: [product_id, parent_id]
build_options:
related_id: forward_parameters.product_id
template_field_edit:
ajax: true
use_helper: [stProductOptionsBackend]
display: [name, opt_default_value, product_options_filter_id]
fields:
name: {name: Nazwa, params: disabled=false}
product_options_filter_id: {name: Filtr, params: include_custom="---" include_blank=false}
opt_default_value: {name: Domyślna wartość, hide_on_create: true, type: template_field_select_default_value}
actions:
_save: {name: Zapisz}
forward_parameters: [template_id]
build_options:
related_id: forward_parameters.template_id
related_class: ProductOptionsTemplate
filter_list:
title: Filtry opcji
display: [name, _filter_type, is_visible]
menu: {use: list.menu}
fields:
name: {name: Nazwa}
filter_type: {name: Rodzaj}
is_visible: {name: Pokaż w filtrach}
empty_message: {title: "Filtry opcji", icon: stProduct}
object_actions:
_edit: -
_delete: -
actions:
_create: {name: Dodaj}
filter_edit:
title: Edycja filtru
display: [name, _filter_type, is_visible]
menu: {use: list.menu}
fields:
name: {name: Nazwa, params: disabled=false}
filter_type: {name: Rodzaj}
is_visible: {name: Pokaż w filtrach}
actions:
_list: {name: Lista}
_save: {name: Zapisz}
_save_and_add: {name: Zapisz i dodaj kolejny}
_delete: {name: Usuń}
template_list:
title: Szablony opcji
display: [opt_name]
menu: {use: list.menu}
fields:
opt_name: {name: Nazwa}
empty_message: {title: Szablony opcji, icon: stProduct}
object_actions:
_edit: -
_delete: -
actions:
_create: {name: Dodaj}
template_edit:
title: Edycja szablonu
display:
NONE: [opt_name]
Zarządzaj szablonem: [~template_tree]
menu: {use: list.menu}
fields:
opt_name: {name: Nazwa, params: disabled=false}
template_tree: {hide_label: true, hide_on_create: true}
actions:
_list: {name: Lista}
_save: {name: Zapisz}
_save_and_add: {name: Zapisz i dodaj kolejny}
_delete: {name: Usuń}

View File

@@ -0,0 +1,2 @@
soap:
is_secure: off