@@ -14,15 +14,28 @@ public enum UiFormButtonTypeSettings {
14
14
SAVE ("Save" , "save primary" , "''" , "[\n "
15
15
+ " 'mage-init' => ['button' => ['event' => 'save']],\n "
16
16
+ " 'form-role' => 'save'\n "
17
- + " ]" , 10 , "Save entity button." ),
18
- DELETE ("Delete" , "delete" , "'deleteConfirm(\\ ''\n "
19
- + " . __('Are you sure you want to delete this $varName?')\n "
20
- + " . '\\ ', \\ '' . $this->getUrl(\n '*/*/delete',\n [$varIdConst => "
21
- + "$this->$varEntityIdAccessor]\n ) . '\\ ')'" , "[]" , 20 , "Delete entity button." ),
17
+ + " ]" , 30 , "Save entity button." ),
18
+ DELETE (
19
+ "Delete" ,
20
+ "delete" ,
21
+ "sprintf(\" deleteConfirm('%s', '%s')\" , \n " +
22
+ "__('Are you sure you want to delete this $varName?'),\n " +
23
+ "$this->getUrl(\n '*/*/delete',\n ['$varIdConst' => " +
24
+ "$this->$varEntityIdAccessor]\n )\n )" ,
25
+ "[]" ,
26
+ 20 ,
27
+ "Delete entity button." ),
22
28
BACK ("Back To Grid" , "back" ,
23
29
"sprintf(\" location.href = '%s';\" , $this->getUrl('*/*/'))" ,
24
- "[]" , 30 , "Back to list button." ),
25
- CUSTOM ("Custom Button" , "custom" , "''" , "[]" , 0 , "Custom button." );
30
+ "[]" , 10 , "Back to list button." ),
31
+ CUSTOM (
32
+ "Custom Button" ,
33
+ "custom" ,
34
+ "''" ,
35
+ "[]" ,
36
+ 0 ,
37
+ "Custom button."
38
+ );
26
39
27
40
private final String label ;
28
41
private final String classes ;
0 commit comments