0
사용자 지정 리소스 (뉴스 레터)에서 그리드를 만들었으므로 각 줄에 "보내기"버튼을 defaut "편집"및 "삭제"옆에 추가하고 싶습니다. "단추. 그러나 그리드의 정의에서 사용자 지정 작업을 정의하고 내가 Sylius의 문서에서 정보를 찾을 수없는 방법을 모르겠어요 ... 여기 Sylius 리소스 그리드에서 사용자 지정 작업 추가
내 그리드 데프입니다 :sylius_grid:
grids:
admin_newsletter:
driver:
name: doctrine/orm
options:
class: NewsletterBundle\Entity\Newsletter
sorting:
date: desc
fields:
titre:
type: string
label: sylius.ui.title
sortable: ~
date:
type: datetime
label: sylius.ui.date
sortable: ~
options:
format: d/m/Y
envoye:
type: twig
label: admin.ui.newsletter_envoye
sortable: ~
options:
template: NewsletterBundle:Helper:_sent.html.twig
filters:
search:
type: string
label: sylius.ui.search
options:
fields: [titre]
actions:
main:
create:
type: create
item:
update:
type: update
delete:
type: delete
# This is what I want:
send:
type: send
모든 그걸 어떻게 할 생각인가?
감사합니다.
그게 전부 야! Tks CoderMaggie :) – wyllyjon