Files
2025-03-12 17:06:23 +01:00

81 lines
4.3 KiB
YAML

generator:
param:
model_class: stTaskSchedulerImportCategoryMapping
import_model_class: Task
label: "Import cykliczny"
route: "@stTaskSchedulerImportBackend?action=importList"
icon: "stImportExportPlugin"
custom_actions:
list: [import]
list:
use_helper: [stTaskSchedulerImport]
title: "Mapowanie kategorii"
menu:
display: [import_list, category_mapping]
fields:
import_list: {name: "Importy z hurtowni", action: "@stTaskSchedulerImportBackend?action=importList"}
category_mapping: {name: "Mapowanie kategorii", action: "@stTaskSchedulerImportBackend?action=list"}
display: [import_label, category_path, target_category_path, _price_margin, is_excluded]
fields:
import_label: {name: "Import", editable: false}
category_path: {name: "Kategoria importowana"}
target_category_path: {name: "Kategoria docelowa"}
price_margin: {name: "Narzut"}
is_excluded: {name: "Wykluczona"}
editable:
price_margin: -
is_excluded: -
filters:
target_category_path: {partial: target_category_path_filter}
import_label: {partial: import_label_filter}
select_actions:
display:
"Ustaw jako wykluczone": [exclude_yes, exclude_no]
actions:
_delete: -
exclude_yes: {name: "Tak", action: excludeYes}
exclude_no: {name: "Nie", action: excludeNo}
object_actions:
_edit: -
_delete: -
actions: []
edit:
display: [is_excluded, category_path, _mapped_category, _price_margin]
fields:
is_excluded: {name: "Wyklucz", help: "Jeżeli zaznaczone kategoria importowana oraz wszystkie jej produkty są pomijane podczas importu", required: false}
category_path: {name: "Kategoria importowana", help: "Ścieżka importowanej kategorii (Kategoria1/Kategoria2/itd...)"}
mapped_category: {name: "Kategoria docelowa"}
price_margin: {name: "Narzut"}
actions:
_list: {name: "Pokaż listę"}
_save: {name: "Zapisz"}
_delete: {name: "Usuń"}
import_list:
title: "Importy z hurtowni"
display: [_name, status_label, last_executed_at, _is_active]
fields:
name: {name: "Nazwa"}
status_label: {name: "Status", width: 1%}
last_executed_at: {name: "Ostatnio wykonany", width: 1%}
is_active: {name: "Aktywny", width: 1%}
object_actions:
_edit: {action: "@stTaskSchedulerImportBackend?action=importConfiguration&id=%%task_id%%"}
upload: {name: "Załącz plik", icon: "upload", action: "@stTaskSchedulerImportBackend?action=upload&id=%%task_id%%"}
execute: {name: "Wykonaj", icon: "database-sync", action: "@stTaskSchedulerImportBackend?action=import&id=%%task_id%%&view=list"}
actions: []
select_actions: []
config:
title: "Konfiguracja"
menu: {use: list.menu}
display:
"NONE": [enabled]
fields:
enabled: {name: "Włącz", type: checkbox}
actions:
_save: {name: "Zapisz"}