Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (100 sloc) 3.75 KB
datagrids:
dashboards-grid:
acl_resource: oro_dashboard_view
source:
type: orm
query:
select:
- dashboard.id
- dashboard.label
- owner.id as ownerId
- CONCAT_WS(' ', owner.firstName, owner.lastName) as ownerName
- dashboard.createdAt
- dashboard.updatedAt
from:
- { table: Oro\Bundle\DashboardBundle\Entity\Dashboard, alias: dashboard }
join:
left:
- { join: dashboard.owner, alias: owner }
columns:
label:
label: oro.dashboard.label.label
ownerName:
type: twig
label: oro.dashboard.owner.label
frontend_type: html
template: OroDashboardBundle:Dashboard:Datagrid/Property/owner.html.twig
createdAt:
label: oro.ui.created_at
frontend_type: datetime
updatedAt:
label: oro.ui.updated_at
frontend_type: datetime
sorters:
columns:
label:
data_name: dashboard.label
ownerName:
data_name: ownerName
createdAt:
data_name: dashboard.createdAt
updatedAt:
data_name: dashboard.updatedAt
disable_default_sorting: true
filters:
columns:
label:
type: string
data_name: dashboard.label
owner:
type: choice-tree
label: oro.user.owner.label
data_name: dashboard.owner
autocomplete_alias: assigned_to_organization_users
renderedPropertyName: 'fullName'
className: 'Oro\Bundle\UserBundle\Entity\User'
businessUnitId:
label: oro.business_unit.label
type: choice-business-unit
data_name: dashboard.owner
className: 'Oro\Bundle\OrganizationBundle\Entity\BusinessUnit'
createdAt:
type: datetime
data_name: dashboard.createdAt
updatedAt:
type: datetime
data_name: dashboard.updatedAt
properties:
id: ~
view_link:
type: url
route: oro_dashboard_view
params: [ id ]
update_link:
type: url
route: oro_dashboard_update
params: [ id ]
delete_link:
type: url
route: oro_api_delete_dashboard
params: [ id ]
actions:
view:
type: navigate
acl_resource: oro_dashboard_view
label: oro.grid.action.view
icon: eye
link: view_link
rowAction: true
update:
type: navigate
acl_resource: oro_dashboard_update
label: oro.grid.action.update
icon: pencil-square-o
link: update_link
delete:
type: delete
acl_resource: oro_dashboard_delete
label: oro.grid.action.delete
icon: trash-o
link: delete_link
You can’t perform that action at this time.