|
|
|
@ -16,11 +16,11 @@ use kartik\dialog\Dialog;
|
|
|
|
|
$this->title = Yii::t('main', 'Available Modules'); |
|
|
|
|
$this->params['breadcrumbs'][] = $this->title; |
|
|
|
|
|
|
|
|
|
$message = Yii::t('main', 'To install the module, use the following command in the SSH console:'); |
|
|
|
|
$messageInstall = Yii::t('main', 'To install the module, use the following command in the SSH console:'); |
|
|
|
|
$js = <<<JS |
|
|
|
|
$(".install-button").on('click', function () { |
|
|
|
|
var name = $(this).data('name'); |
|
|
|
|
krajeeDialog.alert('{$message}' + "\\n" + '<pre><code>php yii module/install ' + name + '</code></pre>'); |
|
|
|
|
krajeeDialog.alert('{$messageInstall}' + "\\n" + '<pre><code>php yii module/install ' + name + '</code></pre>'); |
|
|
|
|
}); |
|
|
|
|
JS; |
|
|
|
|
$this->registerJs($js, $this::POS_READY); |
|
|
|
|