|
|
|
@ -56,26 +56,35 @@ $this->registerJs($js, $this::POS_READY);
|
|
|
|
|
<?= $module_description ?> |
|
|
|
|
</div> |
|
|
|
|
<div class="box-footer" style="text-align: right"> |
|
|
|
|
<?php if ($module->isEnabled()) : ?> |
|
|
|
|
<?= Html::a(Yii::t('main', 'Disable'), ['module/disable', 'id' => $module->id], [ |
|
|
|
|
'class' => 'btn btn-default btn-sm', |
|
|
|
|
'data' => [ |
|
|
|
|
'method' => 'post', |
|
|
|
|
], |
|
|
|
|
<?php if (!$module->isSystem()) : ?> |
|
|
|
|
<?php if ($module->isEnabled()) : ?> |
|
|
|
|
<?= Html::a(Yii::t('main', 'Disable'), ['module/disable', 'id' => $module->id], [ |
|
|
|
|
'class' => 'btn btn-default btn-sm', |
|
|
|
|
'data' => [ |
|
|
|
|
'method' => 'post', |
|
|
|
|
], |
|
|
|
|
]) ?> |
|
|
|
|
<?php else : ?> |
|
|
|
|
<?= Html::a(Yii::t('main', 'Enable'), ['module/enable', 'id' => $module->id], [ |
|
|
|
|
'class' => 'btn btn-default btn-sm', |
|
|
|
|
'data' => [ |
|
|
|
|
'method' => 'post', |
|
|
|
|
], |
|
|
|
|
]) ?> |
|
|
|
|
<?php endif; ?> |
|
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
|
|
<?php if (!$module->isSystem()) : ?> |
|
|
|
|
<?= Html::button(Yii::t('buttons', 'Delete'), [ |
|
|
|
|
'class' => 'btn btn-danger btn-sm delete-button', |
|
|
|
|
'data-name' => $module->name, |
|
|
|
|
]) ?> |
|
|
|
|
<?php else : ?> |
|
|
|
|
<?= Html::a(Yii::t('main', 'Enable'), ['module/enable', 'id' => $module->id], [ |
|
|
|
|
'class' => 'btn btn-default btn-sm', |
|
|
|
|
'data' => [ |
|
|
|
|
'method' => 'post', |
|
|
|
|
], |
|
|
|
|
<?= Html::button(Yii::t('buttons', 'Delete'), [ |
|
|
|
|
'class' => 'btn btn-danger btn-sm disabled', |
|
|
|
|
'data-name' => $module->name, |
|
|
|
|
]) ?> |
|
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
|
|
<?= Html::button(Yii::t('buttons', 'Delete'), [ |
|
|
|
|
'class' => 'btn btn-danger btn-sm delete-button', |
|
|
|
|
'data-name' => $module->name, |
|
|
|
|
]) ?> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|