Files
grzanieplus.pl/apps/backend/modules/stReview/config/generator.yml
2025-03-12 17:06:23 +01:00

85 lines
4.7 KiB
YAML

generator:
class: stAdminGenerator
param:
model_class: Review
theme: simple
head:
package: stReview
documentation:
pl: https://www.sote.pl/docs/recenzje
en: https://www.soteshop.com/docs/reviews
applications: [stProduct, stUser]
list:
use_stylesheet: [backend/stProductList.css]
use_helper: [stProduct/stProduct]
title: Recenzje produktów
mark_as: {field: agreement, filterable: false, auto_update: false}
menu:
display: [_list, config]
fields:
_list: {name: Recenzje produktów, action: stReview/list}
config: {name: Konfiguracja, action: stReview/config}
display: [created_at, _score_star, _product, _description, _order_id, is_pin_review, user_review_verified, _agreement]
actions:
none
object_actions:
_edit: -
_delete: -
fields:
created_at: {name: Utworzona, width: 1%}
score_star: {name: Ocena, width: 1%}
product: {name: Produkt, width: 40%, params: truncate_text=true}
description: {name: Recenzja, width: 60%}
order_id: {name: Zamówienie, width: 1%}
agreement: {name: Publikacja, width: 1%}
is_pin_review: {name: Wyróżniona, width: 1%}
user_review_verified: {name: Zweryfikowana, width: 1%}
filters:
product: {filter_field: Product.name}
sf_guard_user_id_list: {partial: filter_client}
order_id: {partial: filter_list_order_id}
sort: [created_at, desc]
config:
title: Konfiguracja
description: Recenzje produktów.
display: [is_active]
fields:
is_active: {name: Aktywny, checked: false, type: checkbox}
actions:
_save: {name: Zapisz}
edit:
title: Edycja recenzji
description: Recenzje produktów.
display: [created_at, _language, _product_link, agreement, is_pin_review, user_review_verified, _score, description, ~admin_name, _user_picture, user_facebook, user_instagram, user_youtube, user_twitter]
fields:
created_at: {name: Utworzona}
language: {name: Język wpisu}
description: {name: Recenzja, type: textarea_tag, params: size=75x10 rich=false tinymce_options='height:300,width:400,theme:'simple''}
score: {name: Ocena}
agreement: {name: Publikacja}
active: {name: Aktywna}
product_id: {name: Produkt, type: input_tag}
product_link: {name: Produkt}
admin_name: {name: Podpis, type: input_tag, params: size=75}
anonymous: {name: Podpis anonimowego użytkownika}
admin_active: {name: Recenzja od administratora}
score: {name: Ocena}
sf_guard_user_id: {name: Klient}
user_picture: {name: Zdjęcie, type: input_tag, params: size=75}
user_facebook: {name: Facebook, type: input_tag, params: size=75}
user_instagram: {name: Instagram, type: input_tag, params: size=75}
user_youtube: {name: Youtube, type: input_tag, params: size=75}
user_twitter: {name: Twitter, type: input_tag, params: size=75}
user_review_verified: {name: Zweryfikowana zakupem, help: "Recenzja zweryfikowana zakupem." }
is_pin_review: {name: Wyróżnij, help: "Recenzja zostanie przypięta do góry."}
actions:
_list: {name: Lista}
_save: {name: Zapisz}
_save_and_add: {name: Zapisz i dodaj}
_delete: {name: Usuń}