-
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
707f988
commit 5c2c6a6
Showing
3 changed files
with
75 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
<?php | ||
|
||
namespace hipanel\modules\hosting\assets\combo2; | ||
|
||
use hipanel\widgets\Combo2Config; | ||
use yii\helpers\ArrayHelper; | ||
|
||
/** | ||
* Class Account | ||
*/ | ||
class Account extends Combo2Config | ||
{ | ||
/** @inheritdoc */ | ||
public $type = 'hosting/account'; | ||
|
||
/** @inheritdoc */ | ||
public $name = 'login'; | ||
|
||
/** @inheritdoc */ | ||
public $url = '/hosting/account/search'; | ||
|
||
/** @inheritdoc */ | ||
public $_return = ['id', 'client', 'client_id', 'device', 'device_id']; | ||
|
||
/** @inheritdoc */ | ||
public $_rename = ['text' => 'login']; | ||
|
||
/** @inheritdoc */ | ||
public $_filter = [ | ||
'client' => 'client/client', | ||
'server' => 'server/server', | ||
]; | ||
|
||
/** @inheritdoc */ | ||
function getConfig($config = []) | ||
{ | ||
$config = ArrayHelper::merge([ | ||
'clearWhen' => ['client/client', 'server/server'], | ||
'affects' => [ | ||
'client/seller' => 'seller', | ||
'client/client' => 'client', | ||
'server/server' => 'device', | ||
] | ||
], $config); | ||
|
||
return parent::getConfig($config); | ||
} | ||
<?php | ||
|
||
namespace hipanel\modules\hosting\assets\combo2; | ||
|
||
use hipanel\widgets\Combo2Config; | ||
use yii\helpers\ArrayHelper; | ||
|
||
/** | ||
* Class Account | ||
*/ | ||
class Account extends Combo2Config | ||
{ | ||
/** @inheritdoc */ | ||
public $type = 'hosting/account'; | ||
|
||
/** @inheritdoc */ | ||
public $name = 'login'; | ||
|
||
/** @inheritdoc */ | ||
public $url = '/hosting/account/search'; | ||
|
||
/** @inheritdoc */ | ||
public $_return = ['id', 'client', 'client_id', 'device', 'device_id']; | ||
|
||
/** @inheritdoc */ | ||
public $_rename = ['text' => 'login']; | ||
|
||
/** @inheritdoc */ | ||
public $_filter = [ | ||
'client' => 'client/client', | ||
'server' => 'server/server', | ||
]; | ||
|
||
/** @inheritdoc */ | ||
function getConfig($config = []) | ||
{ | ||
$config = ArrayHelper::merge([ | ||
'clearWhen' => ['client/client', 'server/server'], | ||
'affects' => [ | ||
'client/seller' => 'seller', | ||
'client/client' => 'client', | ||
'server/server' => 'device', | ||
] | ||
], $config); | ||
|
||
return parent::getConfig($config); | ||
} | ||
} |
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,16 +1,16 @@ | ||
<?php | ||
|
||
namespace hipanel\modules\hosting\assets\combo2; | ||
|
||
/** | ||
* Class DbService | ||
*/ | ||
class DbService extends Service | ||
{ | ||
/** @inheritdoc */ | ||
public $type = 'hosting/service/db'; | ||
|
||
/** @inheritdoc */ | ||
public $softType = 'db'; | ||
|
||
<?php | ||
|
||
namespace hipanel\modules\hosting\assets\combo2; | ||
|
||
/** | ||
* Class DbService | ||
*/ | ||
class DbService extends Service | ||
{ | ||
/** @inheritdoc */ | ||
public $type = 'hosting/service/db'; | ||
|
||
/** @inheritdoc */ | ||
public $softType = 'db'; | ||
|
||
} |
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,13 +1,13 @@ | ||
<?php | ||
/* @var $this yii\web\View */ | ||
/* @var $model frontend\modules\ticket\models\Thread */ | ||
/* @var $type string */ | ||
|
||
$this->title = $title[$type]; | ||
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Databases'), 'url' => ['index']]; | ||
$this->params['breadcrumbs'][] = $this->title; | ||
?> | ||
|
||
<div class="account-create"> | ||
<?= $this->render('_form', compact('model')) ?> | ||
</div> | ||
<?php | ||
/* @var $this yii\web\View */ | ||
/* @var $model frontend\modules\ticket\models\Thread */ | ||
/* @var $type string */ | ||
|
||
$this->title = $title[$type]; | ||
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Databases'), 'url' => ['index']]; | ||
$this->params['breadcrumbs'][] = $this->title; | ||
?> | ||
|
||
<div class="account-create"> | ||
<?= $this->render('_form', compact('model')) ?> | ||
</div> |