-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
906b9c1
commit 2de8ba1
Showing
9 changed files
with
190 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/* @var $this yii\web\View */ | ||
/* @var $model hipanel\modules\hosting\models\Mail */ | ||
/* @var $type string */ | ||
|
||
$this->title = Yii::t('app', 'Mailbox editing'); | ||
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Mailboxes'), 'url' => ['index']]; | ||
$this->params['breadcrumbs'][] = ['label' => $model->mail, 'url' => ['view', 'id' => $model->id]]; | ||
$this->params['breadcrumbs'][] = $this->title; | ||
|
||
?> | ||
|
||
<div class="mailbox-update"> | ||
<?= $this->render('_form', compact('models')) ?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,96 @@ | ||
<?php | ||
/** | ||
* @link http://hiqdev.com/hipanel-module-hosting | ||
* @license http://hiqdev.com/hipanel-module-hosting/license | ||
* @copyright Copyright (c) 2015 HiQDev | ||
*/ | ||
|
||
use hipanel\modules\hosting\grid\DbGridView; | ||
use hipanel\modules\hosting\grid\MailGridView; | ||
use hipanel\widgets\Pjax; | ||
use hipanel\widgets\Box; | ||
use hipanel\widgets\ModalButton; | ||
use hipanel\widgets\PasswordInput; | ||
use yii\bootstrap\Modal; | ||
use yii\helpers\Html; | ||
|
||
$this->title = Html::encode($model->domain); | ||
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Domains'), 'url' => ['index']]; | ||
$this->params['breadcrumbs'][] = $this->title; | ||
|
||
$this->title = $model->mail; | ||
$this->subtitle = Yii::t('app', 'Mailbox detailed information') . ' #' . $model->id; | ||
$this->breadcrumbs->setItems([ | ||
['label' => Yii::t('app', 'Mailboxes'), 'url' => ['index']], | ||
$this->title, | ||
]); | ||
?> | ||
|
||
<? Pjax::begin(Yii::$app->params['pjax']) ?> | ||
<div class="row"> | ||
<div class="col-md-3"> | ||
<?php Box::begin([ | ||
'options' => [ | ||
'class' => 'box-solid', | ||
], | ||
'bodyOptions' => [ | ||
'class' => 'no-padding' | ||
] | ||
]); ?> | ||
<div class="profile-user-img text-center"> | ||
<i class="fa fa-database fa-5x"></i> | ||
</div> | ||
<p class="text-center"> | ||
<span class="profile-user-role"><?= $model->mail ?></span> | ||
<br> | ||
<span class="profile-user-name"><?= $model->client . ' / ' . $model->seller; ?></span> | ||
</p> | ||
|
||
<div class="col-md-4"> | ||
<?= MailGridView::detailView([ | ||
'model' => $model, | ||
'columns' => [ | ||
'seller_id','client_id', | ||
['attribute' => 'mail'], | ||
], | ||
]) ?> | ||
</div> | ||
<div class="profile-usermenu"> | ||
<ul class="nav"> | ||
<li><?= Html::a('<i class="fa fa-pencil"></i>' . Yii::t('app', 'Edit'), ['update', 'id' => $model->id]) ?></li> | ||
<li> | ||
<?= ModalButton::widget([ | ||
'model' => $model, | ||
'scenario' => 'delete', | ||
'button' => [ | ||
'label' => '<i class="fa fa-trash-o"></i>' . Yii::t('app', 'Delete'), | ||
], | ||
'modal' => [ | ||
'header' => Html::tag('h4', Yii::t('app', 'Confirm database deleting')), | ||
'headerOptions' => ['class' => 'label-info'], | ||
'footer' => [ | ||
'label' => Yii::t('app', 'Delete database'), | ||
'data-loading-text' => Yii::t('app', 'Deleting database...'), | ||
'class' => 'btn btn-danger', | ||
] | ||
], | ||
'body' => Yii::t('app', | ||
'Are you sure, that you want to delete database {name}? All tables will be dropped, all data will be lost.', | ||
['name' => $model->mail] | ||
) | ||
]) ?> | ||
</li> | ||
</ul> | ||
</div> | ||
<?php Box::end(); ?> | ||
</div> | ||
|
||
<div class="col-md-9"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<?php | ||
$box = Box::begin(['renderBody' => false]); | ||
$box->beginHeader(); | ||
echo $box->renderTitle(Yii::t('app', 'Mailbox information')); | ||
$box->endHeader(); | ||
$box->beginBody(); | ||
echo MailGridView::detailView([ | ||
'boxed' => false, | ||
'model' => $model, | ||
'columns' => [ | ||
'client_id', | ||
'seller_id', | ||
'server_id', | ||
'forwards', | ||
'spam_action', | ||
'state', | ||
'type', | ||
], | ||
]); | ||
$box->endBody(); | ||
$box->end(); | ||
?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<?php Pjax::end() ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.