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

49 lines
2.0 KiB
YAML

generator:
class: stAdminGenerator
param:
model_class: Text
theme: simple
head:
package: stTextPlugin
documentation:
pl: https://www.sote.pl/docs/teksty
en: https://www.soteshop.com/docs/texts
applications: [stWebpagePlugin, stBoxPlugin]
list:
filters:
name: {filter_field: text_i18n.name}
content_trimed: {filter_field: text_i18n.content}
peer_method: doSelectWithI18n
peer_count_method: doCountWithI18n
menu:
display: [list]
fields:
list: {name: Teksty, action: stTextBackend/list}
title: Teksty
description: Zarządzaj tekstami w sklepie
display: [=name, content_trimed, active]
fields:
name: {name: Nazwa, params: size=30, sort_field: text_i18n.name}
active: {name: Aktywny}
content_trimed: {name: Treść tekstu, params: size=40}
select_actions:
actions:
actions:
none
object_actions:
_edit: -
empty_message: Brak tekstów na stronie
documentation:
pl: https://www.sote.pl/docs/teksty
en: https://www.soteshop.com/docs/texts
edit:
title: Edycja tekstu
description: Zarządzaj tekstami w sklepie
display: [active, content]
fields:
active: {name: Aktywna}
content: {name: Treść strony, type: textarea_tag, params: size=60x10 rich=true tinymce_options='height:400,width:600'}
actions:
_list: {name: Lista}
_save: {name: Zapisz}