first commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
generator:
|
||||
class: stAdminGenerator
|
||||
param:
|
||||
model_class: OnlineCodes
|
||||
|
||||
theme: simple
|
||||
|
||||
label: "Kody online"
|
||||
route: "@appOnlineCodesBackend"
|
||||
icon: "stProduct"
|
||||
|
||||
list:
|
||||
title: Kody online
|
||||
display: [name, code, usage_limit, used]
|
||||
fields:
|
||||
name: {name: Nazwa}
|
||||
code: {name: Kod}
|
||||
usage_limit: {name: Limit użyć}
|
||||
used: {name: Użyty}
|
||||
forward_parameters: [product_id, category_id]
|
||||
build_options:
|
||||
related_id: forward_parameters.product_id
|
||||
related_class: Product
|
||||
actions:
|
||||
_create: {name: Dodaj}
|
||||
object_actions:
|
||||
_edit: -
|
||||
_delete: -
|
||||
|
||||
edit:
|
||||
display:
|
||||
"NONE": [name, code, usage_limit, used]
|
||||
fields:
|
||||
name: {name: Nazwa}
|
||||
code: {name: Kod}
|
||||
usage_limit: {name: Limit użyć, help: Wartość 0 oznacza brak limitu.}
|
||||
used: {name: Użyty}
|
||||
forward_parameters: [product_id, category_id]
|
||||
build_options:
|
||||
related_id: forward_parameters.product_id
|
||||
related_class: Product
|
||||
actions:
|
||||
_delete: {name: Usuń}
|
||||
_save: {name: Zapisz}
|
||||
_save_and_add: {name: Zapisz i dodaj nowy}
|
||||
Reference in New Issue
Block a user