You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This implementation of `AbstractDatabaseObjectAction` is very basic and only sets the `$permissionsDelete` and `$requireACP` properties.
142
-
This is done so that later on, when implementing the people list for the ACP, we can delete people simply via AJAX.
143
-
`$permissionsDelete` has to be set to the permission needed in order to delete a person.
144
-
We will later use the [userGroupOption package installation plugin](../../package/pip/user-group-option.md) to create the `admin.content.canManagePeople` permission.
145
-
`$requireACP` restricts deletion of people to the ACP.
141
+
This implementation of `AbstractDatabaseObjectAction` fulfills the minimum requirement for a database object action.
146
142
147
143
#### `PersonEditor`
148
144
@@ -242,12 +238,36 @@ We will go piece by piece through the template code:
242
238
1. We include the `header` template and set the page title `wcf.acp.person.list`.
243
239
You have to include this template for every page!
244
240
1. We set the content header and additional provide a button to create a new person in the content header navigation.
245
-
1. As not all people are listed on the same page if many people have been created, we need a pagination for which we use the `pages` template plugin.
246
-
The `{hascontent}{content}{/content}{/hascontent}` construct ensures the `.paginationTop` element is only shown if the `pages` template plugin has a return value, thus if a pagination is necessary.
247
241
1. For the main part of the page we only need to call the `render()` method of the grid view.
248
242
1. Lastly, the `footer` template is included that terminates the page.
249
243
You also have to include this template for every page!
0 commit comments