mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 06:08:21 +01:00
Enh: Improved administration user deletion view
This commit is contained in:
parent
297135069d
commit
d5736ed0ba
@ -4,26 +4,34 @@ use yii\helpers\Html;
|
||||
use yii\helpers\Url;
|
||||
?>
|
||||
<div class="panel-body">
|
||||
<h4><?php echo Yii::t('AdminModule.views_user_delete', 'Delete user'); ?></h4>
|
||||
<p>
|
||||
<?php echo Yii::t('AdminModule.views_user_delete', 'Are you sure you want to delete this user? If this user is owner of some spaces, <b>you</b> will become owner of these spaces.'); ?>
|
||||
</p>
|
||||
<h4><?= Yii::t('AdminModule.views_user_delete', 'Confirm user deletion'); ?></h4>
|
||||
<br />
|
||||
<p><?= Yii::t('AdminModule.views_user_delete', 'Are you sure you want to delete this user?'); ?></p>
|
||||
|
||||
<?php
|
||||
echo \yii\widgets\DetailView::widget([
|
||||
'model' => $model,
|
||||
'attributes' => [
|
||||
'username',
|
||||
'profile.firstname',
|
||||
'profile.lastname',
|
||||
'email:email',
|
||||
'created_at:datetime',
|
||||
],
|
||||
]);
|
||||
?>
|
||||
<ul>
|
||||
<li><?= Yii::t('AdminModule.views_user_delete', 'All created contents of this user will be <b>deleted</b>.'); ?></li>
|
||||
<li><?= Yii::t('AdminModule.views_user_delete', 'If this user is owner of some spaces, <b>you</b> will automatically become owner of these spaces.'); ?></li>
|
||||
</ul>
|
||||
|
||||
<br/>
|
||||
<?php echo Html::a(Yii::t('AdminModule.views_user_delete', 'Delete user'), Url::toRoute(['/admin/user/delete', 'id' => $model->id, 'doit' => 2]), array('class' => 'btn btn-danger', 'data-method' => 'POST')); ?>
|
||||
|
||||
<?php echo Html::a(Yii::t('AdminModule.views_user_delete', 'Back'), Url::toRoute(['/admin/user/edit', 'id' => $model->id]), array('class' => 'btn btn-primary')); ?>
|
||||
</div>
|
||||
<br />
|
||||
</p>
|
||||
|
||||
<?=
|
||||
\yii\widgets\DetailView::widget([
|
||||
'model' => $model,
|
||||
'attributes' => [
|
||||
'username',
|
||||
'profile.firstname',
|
||||
'profile.lastname',
|
||||
'email:email',
|
||||
'created_at:datetime',
|
||||
],
|
||||
]);
|
||||
?>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<?= Html::a(Yii::t('AdminModule.views_user_delete', 'Delete user'), Url::to(['/admin/user/delete', 'id' => $model->id, 'doit' => 2]), ['class' => 'btn btn-danger', 'data-method' => 'POST']); ?>
|
||||
<?= Html::a(Yii::t('AdminModule.views_user_delete', 'Cancel'), Url::to(['/admin/user/edit', 'id' => $model->id]), ['class' => 'btn btn-primary pull-right']); ?>
|
||||
</div>
|
@ -1,61 +1,71 @@
|
||||
// CGridView
|
||||
.grid-view {
|
||||
img {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
img {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.grid-view .filters input,
|
||||
.grid-view .filters select {
|
||||
@import (reference, multiple) "form.less";
|
||||
.form-control;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
padding: 4px;
|
||||
@import (reference, multiple) "form.less";
|
||||
.form-control;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.grid-view {
|
||||
padding: 15px 0 0;
|
||||
img {
|
||||
border-radius: 3px;
|
||||
}
|
||||
table {
|
||||
th {
|
||||
font-size: 13px !important;
|
||||
font-weight: bold !important;
|
||||
padding: 15px 0 0;
|
||||
img {
|
||||
border-radius: 3px;
|
||||
}
|
||||
td {
|
||||
vertical-align:middle !important;
|
||||
}
|
||||
tr {
|
||||
font-size: 13px !important;
|
||||
}
|
||||
thead {
|
||||
table {
|
||||
th {
|
||||
font-size: 13px !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
td {
|
||||
vertical-align:middle !important;
|
||||
}
|
||||
tr {
|
||||
th:first-of-type {
|
||||
padding-left:5px;
|
||||
font-size: 13px !important;
|
||||
}
|
||||
thead {
|
||||
tr {
|
||||
th:first-of-type {
|
||||
padding-left:5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
tbody {
|
||||
tr {
|
||||
height: 50px;
|
||||
td:first-of-type {
|
||||
padding-left:5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tbody {
|
||||
tr {
|
||||
height: 50px;
|
||||
td:first-of-type {
|
||||
padding-left:5px;
|
||||
}
|
||||
}
|
||||
.summary {
|
||||
font-size: 12px;
|
||||
color: @text-color-soft3;
|
||||
}
|
||||
}
|
||||
.summary {
|
||||
font-size: 12px;
|
||||
color: @text-color-soft3;
|
||||
}
|
||||
}
|
||||
|
||||
.permission-grid-editor > .table > tbody > tr:first-child > td {
|
||||
border: none;
|
||||
}
|
||||
.permission-grid-editor {
|
||||
padding-top:0px;
|
||||
}
|
||||
border: none;
|
||||
}
|
||||
.permission-grid-editor {
|
||||
padding-top:0px;
|
||||
}
|
||||
|
||||
|
||||
// Detail View
|
||||
.detail-view td, .detail-view th {
|
||||
padding:8px !important;
|
||||
}
|
||||
|
||||
.detail-view th {
|
||||
font-size: 13px;
|
||||
}
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user