first commit
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
generator:
|
||||
class: stAdminGenerator
|
||||
param:
|
||||
model_class: SoteshopXml
|
||||
theme: simple
|
||||
|
||||
head:
|
||||
package: stSoteshopXmlPlugin
|
||||
|
||||
|
||||
list:
|
||||
title: Lista produktów
|
||||
description: Zarządzanie porównywarką cen Nokaut
|
||||
max_per_page: 20
|
||||
display: [_code, _product, active]
|
||||
peer_method: doSelectRightJoinProduct
|
||||
peer_count_method: doCountRightJoinProduct
|
||||
actions:
|
||||
_deletes: {name: Wypisz wszystkie, action: deleteAll, icon: delete}
|
||||
_add: {name: Przypisz wszystkie, action: addAll}
|
||||
_generate: {name: Generuj plik xml z przypisanych, action: "@stSoteshopXmlPlugin?action=generateCustom&generate=1", icon: export}
|
||||
object_actions: -
|
||||
select_actions:
|
||||
display:
|
||||
"Ustaw przypisane:": [product_enabled, product_disabled]
|
||||
actions:
|
||||
product_enabled: {name: Tak, confirm: "Ustaw przypisane: Tak", action: productEnable, i18n: stSoteshopXmlBackend}
|
||||
product_disabled: {name: Nie, confirm: "Ustaw przypisane: Nie", action: productDisable, i18n: stSoteshopXmlBackend}
|
||||
filters:
|
||||
code: {filter_field: product.code}
|
||||
product: {filter_field: product.opt_name}
|
||||
fields:
|
||||
code: {name: Kod, sort_field: product.code, params: size=50}
|
||||
product: {name: Nazwa, sort_field: product.opt_name, params: size=50}
|
||||
active: {name: Przypisany}
|
||||
menu:
|
||||
display: [list, generate, config]
|
||||
fields:
|
||||
list: {name: Lista produktów, action: @stSoteshopXmlPluginDefault}
|
||||
generate: {name: Generowanie pliku, action: stSoteshopXmlBackend/generateCustom}
|
||||
config: {name: Konfiguracja, action: stSoteshopXmlBackend/config}
|
||||
object_actions:
|
||||
_edit: {action: @stSoteshopXmlPlugin?action=edit&id=%%id%%&product_id=%%product_id%%&view=default}
|
||||
create:
|
||||
title: Edycja
|
||||
|
||||
edit:
|
||||
menu: {use: list.menu}
|
||||
display: [active]
|
||||
|
||||
fields:
|
||||
active: {name: Przypisany}
|
||||
actions:
|
||||
_list: {name: Lista}
|
||||
_save: {name: Zapisz}
|
||||
forward_parameters: [product_id, view]
|
||||
build_options:
|
||||
related_id: forward_parameters.product_id
|
||||
related_class: Product
|
||||
|
||||
generate_model_class: SoteshopXml
|
||||
|
||||
custom_actions:
|
||||
custom: [generate]
|
||||
|
||||
generate_custom:
|
||||
menu: {use: list.menu}
|
||||
title: Generowanie pliku
|
||||
|
||||
config:
|
||||
title: Konfiguracja
|
||||
display:
|
||||
"Ustawienia generowania pliku xml": [none_active, none_stock, none_whoolesale]
|
||||
|
||||
fields:
|
||||
none_active: {name: Nie eksportuj nieaktywnych produktów, checked: false, type: checkbox}
|
||||
none_stock: {name: Nie eksportuj produktów z zerowym stanem magazynowym, checked: false, type: checkbox}
|
||||
none_whoolesale: {name: Dodaj ceny hurtowe, checked: false, type: checkbox}
|
||||
|
||||
actions:
|
||||
_list: {name: Lista}
|
||||
_save: {name: Zapisz}
|
||||
menu: {use: list.menu}
|
||||
Reference in New Issue
Block a user