fix: [genericTemplate:delete] Fixed usage of BootstrapElement\BootstrapModal
parent
346e6db512
commit
9ad328d962
|
@ -28,8 +28,11 @@ $bodyHTML = sprintf('%s%s', $formHTML, $bodyMessage);
|
||||||
echo $this->Bootstrap->modal([
|
echo $this->Bootstrap->modal([
|
||||||
'size' => 'lg',
|
'size' => 'lg',
|
||||||
'title' => !empty($deletionTitle) ? $deletionTitle : __('Delete {0}', h(Cake\Utility\Inflector::singularize(Cake\Utility\Inflector::humanize($this->request->getParam('controller'))))),
|
'title' => !empty($deletionTitle) ? $deletionTitle : __('Delete {0}', h(Cake\Utility\Inflector::singularize(Cake\Utility\Inflector::humanize($this->request->getParam('controller'))))),
|
||||||
'type' => 'confirm-danger',
|
'type' => 'confirm',
|
||||||
'confirmText' => !empty($deletionConfirm) ? $deletionConfirm : __('Delete'),
|
'confirmButton' => [
|
||||||
|
'text' => !empty($deletionConfirm) ? $deletionConfirm : __('Delete'),
|
||||||
|
'variant' => 'danger',
|
||||||
|
],
|
||||||
'bodyHtml' => $bodyHTML,
|
'bodyHtml' => $bodyHTML,
|
||||||
]);
|
]);
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue