@@ -14,15 +14,28 @@ public enum UiFormButtonTypeSettings {
1414 SAVE ("Save" , "save primary" , "''" , "[\n "
1515 + " 'mage-init' => ['button' => ['event' => 'save']],\n "
1616 + " '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." ),
2228 BACK ("Back To Grid" , "back" ,
2329 "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+ );
2639
2740 private final String label ;
2841 private final String classes ;
0 commit comments