-
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
89363d9
commit 86c2a81
Showing
7 changed files
with
90 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
/* @var $this yii\web\View */ | ||
/* @var $model hipanel\modules\ticket\models\Thread */ | ||
/* @var $type string */ | ||
|
||
$this->title = Yii::t('app', 'Create FTP account'); | ||
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Accounts'), 'url' => ['index']]; | ||
$this->params['breadcrumbs'][] = $this->title; | ||
?> | ||
|
||
<div class="account-create"> | ||
<?= $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
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,43 @@ | ||
<?php | ||
|
||
namespace hipanel\modules\hosting\widgets\combo; | ||
|
||
use hiqdev\combo\Combo; | ||
use yii\helpers\ArrayHelper; | ||
|
||
/** | ||
* Class Account | ||
*/ | ||
class AccountPathCombo extends Combo | ||
{ | ||
/** @inheritdoc */ | ||
public $type = 'hosting/accountPath'; | ||
|
||
/** @inheritdoc */ | ||
public $name = 'path'; | ||
|
||
/** @inheritdoc */ | ||
public $url = '/hosting/account/get-directories-list'; | ||
|
||
/** @inheritdoc */ | ||
public $_return = ['id', 'login', 'server', 'path']; | ||
|
||
/** @inheritdoc */ | ||
public function getFilter() | ||
{ | ||
return ArrayHelper::merge(parent::getFilter(), [ | ||
'account' => 'hosting/account', | ||
'server' => 'server/server', | ||
]); | ||
} | ||
|
||
/** @inheritdoc */ | ||
public function getPluginOptions($options = []) | ||
{ | ||
return parent::getPluginOptions([ | ||
'clearWhen' => ['hosting/account'], | ||
'activeWhen' => ['hosting/account'], | ||
|
||
]); | ||
} | ||
} |