Enh: Styled user deletion view

This commit is contained in:
buddh4 2018-07-27 11:28:33 +02:00
parent 9e77103c1e
commit 04f9b16e81

View File

@ -11,7 +11,9 @@ use yii\bootstrap\ActiveForm;
<div class="panel-body">
<h4><?= Yii::t('AdminModule.user', 'Confirm user deletion'); ?></h4>
<br>
<p><strong><?= Yii::t('AdminModule.user', 'Are you sure that you want to delete following user?'); ?></strong></p>
<div class="well">
<div class="media">
<div class="media-left" style="padding-right:6px">
@ -22,11 +24,13 @@ use yii\bootstrap\ActiveForm;
<?= Html::encode($model->user->email) ?>
</div>
</div>
<br />
<p><?= Yii::t('AdminModule.account', 'All the personal data of this user will be irrevocably deleted.'); ?></p>
<hr>
<p><i class="fa fa-exclamation-triangle" style="color: <?= $this->theme->variable('danger')?>"></i> &nbsp;<?= Yii::t('AdminModule.account', 'All the personal data of this user will be irrevocably deleted.'); ?></p>
<?php if (count($model->getOwningSpaces()) !== 0): ?>
<br />
<p><?= Yii::t('AdminModule.account', 'The user is the owner of these spaces:'); ?></p>
<p><b><?= Yii::t('AdminModule.account', 'The user is the owner of these spaces:'); ?></b></p>
<?php foreach ($model->getOwningSpaces() as $space): ?>
<div class="media">
<div class="media-left" style="padding-right:6px">
@ -38,8 +42,10 @@ use yii\bootstrap\ActiveForm;
</div>
</div>
<?php endforeach; ?>
<br />
<?php else: ?>
<p><?= Yii::t('AdminModule.account', 'This user owns no spaces.'); ?></p>
<?php endif; ?>
</div>
<br />
<?php $form = ActiveForm::begin(); ?>