8
8
// Show
9
9
SimpleShowLayout , Show ,
10
10
// Actions
11
- BulkDeleteButton , BulkExportButton , BulkUpdateButton , CreateButton , ExportButton ,
12
- FilterButton , SelectColumnsButton , TopToolbar ,
11
+ BulkDeleteButton , BulkExportButton , BulkUpdateButton , CloneButton , CreateButton ,
12
+ ExportButton , FilterButton , ListButton , SelectColumnsButton , ShowButton , TopToolbar ,
13
13
// Fields
14
14
BooleanField , DateField , NumberField , ReferenceField , ReferenceManyField ,
15
15
ReferenceOneField , SelectField , TextField ,
@@ -289,6 +289,14 @@ const AiohttpShow = (resource, name, permissions) => {
289
289
}
290
290
291
291
const AiohttpEdit = ( resource , name , permissions ) => {
292
+ const EditActions = ( ) => (
293
+ < TopToolbar >
294
+ < CloneButton />
295
+ < ShowButton />
296
+ < ListButton />
297
+ </ TopToolbar >
298
+ ) ;
299
+
292
300
const AiohttpEditToolbar = props => (
293
301
< Toolbar { ...props } sx = { { display : "flex" , justifyContent : "space-between" } } >
294
302
< SaveButton />
@@ -299,7 +307,7 @@ const AiohttpEdit = (resource, name, permissions) => {
299
307
) ;
300
308
301
309
return (
302
- < Edit mutationMode = "pessimistic" >
310
+ < Edit actions = { < EditActions /> } mutationMode = "pessimistic" >
303
311
< SimpleForm toolbar = { < AiohttpEditToolbar /> } sanitizeEmptyValues warnWhenUnsavedChanges >
304
312
{ createInputs ( resource , name , "edit" , permissions ) }
305
313
</ SimpleForm >
0 commit comments