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