182 lines
8.3 KiB
YAML
182 lines
8.3 KiB
YAML
generator:
|
|
class: stAdminGenerator
|
|
param:
|
|
model_class: appProductAttribute
|
|
variant_model_class: appProductAttributeVariant
|
|
|
|
theme: simple
|
|
label: Atrybuty produktów
|
|
route: "@appProductAttributesPlugin"
|
|
icon: appProductAttributesPlugin
|
|
head:
|
|
package: appProductAttributesPlugin
|
|
custom_actions:
|
|
list: [variant]
|
|
edit: [variant]
|
|
|
|
documentation:
|
|
pl: "https://www.sote.pl/docs/atrybuty-produktow"
|
|
en: "https://www.soteshop.com/docs/products_attributes"
|
|
|
|
fields:
|
|
is_active: {name: Aktywny}
|
|
is_searchable: {name: Pokaż w filtrach}
|
|
is_visible_on_pp: {name: Pokaż w produkcie}
|
|
position: {name: Pozycja}
|
|
name: {name: Nazwa}
|
|
type: {name: Rodzaj}
|
|
value: {name: Wartość}
|
|
|
|
list:
|
|
forward_parameters: [category_id]
|
|
use_stylesheet: [/appProductAttributesPlugin/css/backend.css]
|
|
title: Lista
|
|
display: [=name, _type, is_active, is_searchable, is_visible_on_pp, position]
|
|
peer_method: doSelectWithI18n
|
|
object_actions:
|
|
_edit: -
|
|
_delete: -
|
|
actions:
|
|
_create: {name: Dodaj}
|
|
fields:
|
|
position: {sortable: false, width: 1%}
|
|
name: {sortable: false}
|
|
type: {sortable: false, width: 1%}
|
|
is_active: {sortable: false}
|
|
is_searchable: {sortable: false}
|
|
is_visible_on_pp: {sortable: false}
|
|
menu:
|
|
display: [list, export, import]
|
|
fields:
|
|
list: {name: Lista, action: @appProductAttributesPlugin}
|
|
export: {name: Eksport, action: @appProductAttributesPlugin?action=export}
|
|
import: {name: Import, action: @appProductAttributesPlugin?action=import}
|
|
config: {name: Konfiguracja, action: @appProductAttributesPlugin?action=config}
|
|
|
|
edit:
|
|
forward_parameters: [category_id]
|
|
use_stylesheet: [backend/appProductAttributeBackend.css?v1]
|
|
use_helper: [appProductAttribute]
|
|
title: Edycja podstawowa
|
|
menu:
|
|
display: [variant]
|
|
fields:
|
|
_edit: {name: Edycja podstawowa}
|
|
variant: {name: Warianty, action: "@appProductAttributesPlugin?action=variantList&attr_id=%%id%%"}
|
|
display:
|
|
"NONE": [is_active, position, name, _type, is_searchable, is_visible_on_pp, categories]
|
|
fields:
|
|
is_active: {required: false}
|
|
is_searchable: {required: false}
|
|
is_visible_on_pp: {required: false}
|
|
position: {required: false}
|
|
name: {params: disabled=false, required: true}
|
|
type: {required: false}
|
|
categories: {name: Kategorie, type: category, params: control_name="app_product_attribute_category"}
|
|
actions:
|
|
_delete: {name: Usuń}
|
|
_list: {name: Lista atrybutów, i18n: appProductAttributeBackend}
|
|
_save_and_add: {name: Zapisz i dodaj nowy}
|
|
_save: {name: Zapisz}
|
|
|
|
config:
|
|
title: Konfiguracja
|
|
menu: {use: list.menu}
|
|
hide_install_version:
|
|
"Import/Eksport": 7.4.7
|
|
display:
|
|
"NONE": [filters_enabled, filter_by, no_narrow_filters]
|
|
"Import/Eksport": [import_export_variant_separator]
|
|
fields:
|
|
filters_enabled: {name: Włącz filtry, type: checkbox}
|
|
no_narrow_filters: {name: Nie ograniczaj filtrów, type: checkbox, checked: true, help: "Jeśli zaznaczone, filtry nie sa ograniczane ze względu na aktualne wyniki filtrowania"}
|
|
import_export_variant_separator:
|
|
name: Separator wariantów
|
|
type: select_tag
|
|
options:
|
|
",": {name: ", (przecinek)"}
|
|
"|": {name: "| (belka)"}
|
|
filter_by:
|
|
name: Filtruj
|
|
type: select
|
|
display: [and, or]
|
|
options:
|
|
and: {name: Używając "i", value: and}
|
|
or: {name: Używając "lub", value: or}
|
|
selected: or
|
|
actions:
|
|
_save: {name: Zapisz}
|
|
|
|
variant_list:
|
|
use_stylesheet: [backend/appProductAttributeBackend.css]
|
|
forward_parameters: [attr_id]
|
|
build_options:
|
|
related_id: forward_parameters.attr_id
|
|
title: Warianty
|
|
menu: {use: edit.menu}
|
|
display: [_variant, position]
|
|
fields:
|
|
variant: {name: Wariant}
|
|
position: {sortable: false, width: 1%}
|
|
peer_method: doSelectWithI18n
|
|
object_actions:
|
|
_edit: -
|
|
_delete: -
|
|
actions:
|
|
_create: {name: Dodaj}
|
|
|
|
variant_edit:
|
|
use_stylesheet: [backend/appProductAttributeBackend.css]
|
|
forward_parameters: [attr_id]
|
|
build_options:
|
|
related_id: forward_parameters.attr_id
|
|
title: Edycja wariantu
|
|
menu: {use: edit.menu}
|
|
display: [position, value, _color_type, name, _color, _picture]
|
|
fields:
|
|
position: {required: false}
|
|
value: {name: "Wartość", params: disabled=false, required: true}
|
|
color_type: {name: "Rodzaj"}
|
|
name: {name: "Nazwa", required: true, params: disabled=false}
|
|
picture: {name: "Obrazek"}
|
|
color: {name: "Kolor"}
|
|
actions:
|
|
_delete: {name: Usuń}
|
|
_list: {name: Lista wariantów, i18n: appProductAttributeBackend}
|
|
_save_and_add: {name: Zapisz i dodaj nowy}
|
|
_save: {name: Zapisz}
|
|
|
|
variant_create:
|
|
title: Dodaj nowy wariant
|
|
|
|
include_action_files: [/plugins/stImportExportPlugin/config/generator/extendActions.php]
|
|
include_component_files: [/plugins/stImportExportPlugin/config/generator/extendComponents.php]
|
|
|
|
import_export_model_class: appExportAttributes
|
|
export:
|
|
title: "Eksport atrybutów"
|
|
menu: {use: list.menu}
|
|
default: stExporterCsvAttributes
|
|
filename: "eksport atrybutow"
|
|
show_profiles: false
|
|
primary_key: product_code
|
|
fields:
|
|
product_code: {name: "Kod produktu"}
|
|
product_name: {name: "Nazwa produktu"}
|
|
attribute_name: {name: "Nazwa atrybutu"}
|
|
attribute_id: {name: "ID atrybutu"}
|
|
variant_name: {name: "Warianty"}
|
|
|
|
import:
|
|
title: "Import atrybutów"
|
|
menu: {use: list.menu}
|
|
default: stImporterCsv
|
|
default_class: appProductAttributeBackendImportExport
|
|
filename: "import atrybutow"
|
|
primary_key: product_code
|
|
fields:
|
|
product_code: {name: "Kod produktu", custom_method: true}
|
|
product_name: {name: "Nazwa produktu", custom_method: true}
|
|
attribute_name: {name: "Nazwa atrybutu", custom_method: true}
|
|
attribute_id: {name: "ID atrybutu", custom_method: true}
|
|
variant_name: {name: "Warianty", custom_method: true} |