Skip to content

Commit

Permalink
Vhost advanced config improved
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Sep 14, 2015
1 parent 82cdb84 commit 0805c91
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/controllers/VhostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function actions()
],
'view' => [
'class' => 'hipanel\actions\RedirectAction',
'url' => ArrayHelper::merge(['/hosting/hdomain/view'], Yii::$app->request->get())
'url' => ArrayHelper::merge(['@hdomain/view'], Yii::$app->request->get())
],
'advanced-config' => [
'class' => 'hipanel\actions\SearchAction',
Expand All @@ -44,7 +44,7 @@ public function actions()
'class' => 'hipanel\actions\SmartUpdateAction',
],
'success' => Yii::t('app', 'Advanced settings was updated successfully'),
'error' => Yii::t('app', 'Error while advanced settings update'),
'error' => Yii::t('app', 'Error while advanced settings update'),
],
'validate-form' => [
'class' => 'hipanel\actions\ValidateFormAction',
Expand Down
1 change: 0 additions & 1 deletion src/models/Vhost.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

class Vhost extends \hipanel\base\Model
{

use \hipanel\base\ModelTrait;


Expand Down
15 changes: 11 additions & 4 deletions src/views/vhost/advanced-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@
/* @var $type string */

use hipanel\base\View;
use hipanel\helpers\Url;
use hipanel\modules\client\widgets\combo\ClientCombo;
use hipanel\modules\hosting\widgets\combo\SshAccountCombo;
use hipanel\modules\server\widgets\combo\ServerCombo;
use hiqdev\combo\StaticCombo;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;

$this->title = $model->domain;
$this->subtitle = Yii::t('app', 'hosting domain advanced config') . ' #' . $model->id;
$this->breadcrumbs->setItems([
['label' => 'Domains', 'url' => ['@hdomain/index']],
['label' => $model->domain, 'url' => ['@hdomain/view', 'id' => $model->id]],
Yii::t('app', 'Advanced config')
]);


$form = ActiveForm::begin([
'id' => 'dynamic-form',
Expand Down Expand Up @@ -85,6 +94,4 @@
<?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-default']) ?>
&nbsp;
<?= Html::button(Yii::t('app', 'Cancel'), ['class' => 'btn btn-default', 'onclick' => 'history.go(-1)']) ?>
<?php ActiveForm::end();

//$this->registerJs("$('#hdomain-proxy_enable').trigger('change');");
<?php ActiveForm::end();

0 comments on commit 0805c91

Please sign in to comment.