|
|
@ -56,26 +56,35 @@ $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->isEnabled()) : ?> |
|
|
|
<?php if (!$module->isSystem()) : ?> |
|
|
|
<?= Html::a(Yii::t('main', 'Disable'), ['module/disable', 'id' => $module->id], [ |
|
|
|
<?php if ($module->isEnabled()) : ?> |
|
|
|
'class' => 'btn btn-default btn-sm', |
|
|
|
<?= Html::a(Yii::t('main', 'Disable'), ['module/disable', 'id' => $module->id], [ |
|
|
|
'data' => [ |
|
|
|
'class' => 'btn btn-default btn-sm', |
|
|
|
'method' => 'post', |
|
|
|
'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 : ?> |
|
|
|
<?php else : ?> |
|
|
|
<?= Html::a(Yii::t('main', 'Enable'), ['module/enable', 'id' => $module->id], [ |
|
|
|
<?= Html::button(Yii::t('buttons', 'Delete'), [ |
|
|
|
'class' => 'btn btn-default btn-sm', |
|
|
|
'class' => 'btn btn-danger btn-sm disabled', |
|
|
|
'data' => [ |
|
|
|
'data-name' => $module->name, |
|
|
|
'method' => 'post', |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
]) ?> |
|
|
|
]) ?> |
|
|
|
<?php endif; ?> |
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
|
|
|
|
<?= Html::button(Yii::t('buttons', 'Delete'), [ |
|
|
|
|
|
|
|
'class' => 'btn btn-danger btn-sm delete-button', |
|
|
|
|
|
|
|
'data-name' => $module->name, |
|
|
|
|
|
|
|
]) ?> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|