first commit
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
generator:
|
||||
class: stAdminGenerator
|
||||
param:
|
||||
model_class: Radar
|
||||
theme: simple
|
||||
|
||||
head:
|
||||
package: stRadarPlugin
|
||||
|
||||
documentation:
|
||||
pl: https://www.sote.pl/docs/radar
|
||||
en: https://www.soteshop.com/docs/radar
|
||||
|
||||
list:
|
||||
title: Lista produktów
|
||||
description: Zarządzanie porównywarką cen Radar
|
||||
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: "@stRadarPlugin?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: stRadarBackend}
|
||||
product_disabled: {name: Nie, confirm: "Ustaw przypisane: Nie", action: productDisable, i18n: stRadarBackend}
|
||||
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: @stRadarPluginDefault}
|
||||
generate: {name: Generowanie pliku, action: stRadarBackend/generateCustom}
|
||||
config: {name: Konfiguracja, action: stRadarBackend/config}
|
||||
object_actions:
|
||||
_edit: {action: @stRadarPlugin?action=edit&id=%%id%%&product_id=%%product_id%%&view=default}
|
||||
|
||||
|
||||
create:
|
||||
title: Edycja
|
||||
|
||||
edit:
|
||||
menu: {use: list.menu}
|
||||
display: [active, description]
|
||||
fields:
|
||||
active: {name: Przypisany}
|
||||
description: {name: Opis, type: textarea_tag, params: size=60x10 rich=true tinymce_options='height:300,width:400'}
|
||||
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: Radar
|
||||
|
||||
custom_actions:
|
||||
custom: [generate]
|
||||
|
||||
generate_custom:
|
||||
menu: {use: list.menu}
|
||||
title: Generowanie pliku
|
||||
description: Zarządzanie porównywarką cen Radar
|
||||
|
||||
config:
|
||||
title: Konfiguracja
|
||||
description: Zarządzanie porównywarką cen Radar
|
||||
display:
|
||||
"ADS Tracker": [_ads_tracker_info_befour, ads_tracker, _ads_tracker_info_after]
|
||||
fields:
|
||||
ads_tracker: {name: Aktywuj, checked: false, type: checkbox}
|
||||
ads_tracker_info_befour: {name: ""}
|
||||
ads_tracker_info_after: {name: ""}
|
||||
actions:
|
||||
_list: {name: Lista}
|
||||
_save: {name: Zapisz}
|
||||
menu: {use: list.menu}
|
||||
Reference in New Issue
Block a user