From 9ad328d962336cbc8053281bc9dbd2ff64168966 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 28 Nov 2022 15:51:29 +0100 Subject: [PATCH] fix: [genericTemplate:delete] Fixed usage of BootstrapElement\BootstrapModal --- templates/genericTemplates/delete.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/genericTemplates/delete.php b/templates/genericTemplates/delete.php index de45ab6..763750a 100644 --- a/templates/genericTemplates/delete.php +++ b/templates/genericTemplates/delete.php @@ -28,8 +28,11 @@ $bodyHTML = sprintf('%s%s', $formHTML, $bodyMessage); echo $this->Bootstrap->modal([ 'size' => 'lg', 'title' => !empty($deletionTitle) ? $deletionTitle : __('Delete {0}', h(Cake\Utility\Inflector::singularize(Cake\Utility\Inflector::humanize($this->request->getParam('controller'))))), - 'type' => 'confirm-danger', - 'confirmText' => !empty($deletionConfirm) ? $deletionConfirm : __('Delete'), + 'type' => 'confirm', + 'confirmButton' => [ + 'text' => !empty($deletionConfirm) ? $deletionConfirm : __('Delete'), + 'variant' => 'danger', + ], 'bodyHtml' => $bodyHTML, ]); ?>