Based on BootstrapConfirmation.
Bootstrap Confirmation - is Bootstrap plugin for on-place confirm boxes using Popover.
The preferred way to install this extension is through Composer.
Either run
php composer.phar require uran1980/yii2-bootstrap-confirmation "dev-master"
or add
"uran1980/yii2-bootstrap-confirmation": "dev-master"
to the require section of your composer.json
To use this component add dependency to you project asset bundle.
For example in ...\frontend\assets\AppAsset.php
file add to dependency:
<?php
namespace frontend\assets;
class AppAsset extends \yii\web\AssetBundle
{
...
public $depends = [
...
'uran1980\yii\bootstrapConfirmation\BootstrapConfirmationAsset',
];
}
That's it. In the View add button like this:
<button class="btn btn-default" data-toggle="confirmation">Confirmation</button>
For more info see Bootstrap Confirmation main project page.
Ivan Yakovlev, e-mail: uran1980@gmail.com