From 309cb91b92ba78ca575b72574f1d2b1ff1dbe06f Mon Sep 17 00:00:00 2001 From: pxpm Date: Fri, 20 Sep 2024 10:29:35 +0100 Subject: [PATCH 1/2] add the option to the operation config --- src/config/backpack/operations/update.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config/backpack/operations/update.php b/src/config/backpack/operations/update.php index eabaa0a74f..14fe78ed81 100644 --- a/src/config/backpack/operations/update.php +++ b/src/config/backpack/operations/update.php @@ -16,7 +16,7 @@ // How would you like the validation errors to be shown? 'groupedErrors' => true, - 'inlineErrors' => true, + 'inlineErrors' => true, // when the page loads, put the cursor on the first input? 'autoFocusOnFirstField' => true, @@ -32,6 +32,9 @@ // Should we show a cancel button to the user? 'showCancelButton' => true, + // Should we show the delete button on the edit form? + 'showDeleteButton' => false, + // Should we warn a user before leaving the page with unsaved changes? 'warnBeforeLeaving' => false, From d02a60d86803cb21f3bdc354f86b46ef545419c3 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Fri, 20 Sep 2024 09:29:49 +0000 Subject: [PATCH 2/2] Apply fixes from StyleCI [ci skip] [skip ci] --- src/config/backpack/operations/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/backpack/operations/update.php b/src/config/backpack/operations/update.php index 14fe78ed81..27fe127475 100644 --- a/src/config/backpack/operations/update.php +++ b/src/config/backpack/operations/update.php @@ -16,7 +16,7 @@ // How would you like the validation errors to be shown? 'groupedErrors' => true, - 'inlineErrors' => true, + 'inlineErrors' => true, // when the page loads, put the cursor on the first input? 'autoFocusOnFirstField' => true,