Skip to content

Commit

Permalink
* change language
Browse files Browse the repository at this point in the history
  • Loading branch information
bladeroot committed Sep 16, 2015
1 parent 89aeac4 commit 2e58313
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 31 deletions.
47 changes: 24 additions & 23 deletions src/grid/AccountGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,43 +21,44 @@ class AccountGridView extends \hipanel\grid\BoxedGridView
static public function defaultColumns()
{
return [
'account' => [
'class' => MainColumn::className(),
'attribute' => 'login',
'filterAttribute' => 'login_like',
'account' => [
'class' => MainColumn::className(),
'label' => Yii::t('app', 'Account'),
'attribute' => 'login',
'filterAttribute' => 'login_like',
],
'state' => [
'class' => RefColumn::className(),
'format' => 'raw',
'value' => function ($model) {
'state' => [
'class' => RefColumn::className(),
'format' => 'raw',
'value' => function ($model) {
return State::widget(compact('model'));
},
'gtype' => 'state,account',
'gtype' => 'state,account',
],
'server' => [
'class' => ServerColumn::className()
'server' => [
'class' => ServerColumn::className()
],
'sshftp_ips' => [
'attribute' => 'sshftp_ips',
'format' => 'raw',
'value' => function ($model) {
'sshftp_ips' => [
'attribute' => 'sshftp_ips',
'format' => 'raw',
'value' => function ($model) {
return ArraySpoiler::widget([
'data' => $model->sshftp_ips,
'visibleCount' => 3
]);
}
],
'actions' => [
'class' => ActionColumn::className(),
'template' => '{view} {update} {delete}'
'actions' => [
'class' => ActionColumn::className(),
'template' => '{view} {update} {delete}'
],
'type' => [
'class' => RefColumn::className(),
'format' => 'raw',
'value' => function ($model) {
'type' => [
'class' => RefColumn::className(),
'format' => 'raw',
'value' => function ($model) {
return Type::widget(compact('model'));
},
'gtype' => 'type,account',
'gtype' => 'type,account',
],
];
}
Expand Down
2 changes: 2 additions & 0 deletions src/grid/HdomainGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ static public function defaultColumns()
}
],
'service' => [
'label' => Yii::t('app', 'Service'),
'value' => function ($model) {
return $model->getAttribute('vhost')['service'];
}
Expand All @@ -96,6 +97,7 @@ static public function defaultColumns()
}
],
'aliases' => [
'label' => Yii::t('app', 'Aliases'),
'format' => 'raw',
'value' => function ($model) {
return ArraySpoiler::widget([
Expand Down
6 changes: 3 additions & 3 deletions src/views/account/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
use yii\helpers\Url;

$this->title = $model->login;
$this->subtitle = Yii::t('app', 'account detailed information') . ' #' . $model->id;
$this->subtitle = Yii::t('app', 'Account detailed information') . ' #' . $model->id;
$this->breadcrumbs->setItems([
['label' => 'Accounts', 'url' => ['index']],
['label' => Yii::t('app', 'Accounts'), 'url' => ['index']],
$this->title,
]);

Expand Down Expand Up @@ -112,7 +112,7 @@
'button' => ['label' => '<i class="fa fa-trash-o"></i>' . Yii::t('app', 'Delete')],
'body' => Yii::t('app', 'Are you sure you want to delete account {name}? You will loose all data, that relates this account!', ['name' => $model->login]),
'modal' => [
'header' => Html::tag('h4', Yii::t('app', 'Confirm account deleting deleting')),
'header' => Html::tag('h4', Yii::t('app', 'Confirm account deleting')),
'headerOptions' => ['class' => 'label-danger'],
'footer' => [
'label' => Yii::t('app', 'Delete'),
Expand Down
6 changes: 3 additions & 3 deletions src/views/db/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use yii\helpers\Html;

$this->title = $model->name;
$this->subtitle = Yii::t('app', 'database detailed information') . ' #' . $model->id;
$this->subtitle = Yii::t('app', 'Database detailed information') . ' #' . $model->id;
$this->breadcrumbs->setItems([
['label' => 'Databases', 'url' => ['index']],
['label' => Yii::t('app', 'Databases'), 'url' => ['index']],
$this->title,
]);
?>
Expand Down Expand Up @@ -141,4 +141,4 @@
</div>
</div>
</div>
</div>
</div>
5 changes: 3 additions & 2 deletions src/views/hdomain/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use yii\web\JsExpression;

$this->title = $model->domain;
$this->subtitle = Yii::t('app', 'hosting domain detailed information') . ' #' . $model->id;
$this->subtitle = Yii::t('app', 'Hosting domain detailed information') . ' #' . $model->id;
$this->breadcrumbs->setItems([
['label' => 'Domains', 'url' => ['index']],
['label' => Yii::t('app', 'Domains'), 'url' => ['index']],
$this->title,
]);
?>
Expand Down Expand Up @@ -93,6 +93,7 @@
'dns_on',
[
'attribute' => 'aliases',
'label' => Yii::t('app', 'Aliases'),
'format' => 'raw',
'value' => function ($model) {
$html = [];
Expand Down

0 comments on commit 2e58313

Please sign in to comment.