fix: [genericTemplate:delete] Fixed usage of BootstrapElement\BootstrapModal

develop-unstable
Sami Mokaddem 2022-11-28 15:51:29 +01:00
parent 346e6db512
commit 9ad328d962
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 5 additions and 2 deletions

View File

@ -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,
]);
?>