Added privacy action

This commit is contained in:
Administrator
2018-05-27 01:49:50 +02:00
parent eda30f236e
commit ca495ca053
2 changed files with 27 additions and 1 deletions

View File

@ -66,7 +66,8 @@ class SettingsController extends Controller
UserQuery $userQuery, UserQuery $userQuery,
SocialNetworkAccountQuery $socialNetworkAccountQuery, SocialNetworkAccountQuery $socialNetworkAccountQuery,
array $config = [] array $config = []
) { )
{
$this->profileQuery = $profileQuery; $this->profileQuery = $profileQuery;
$this->userQuery = $userQuery; $this->userQuery = $userQuery;
$this->socialNetworkAccountQuery = $socialNetworkAccountQuery; $this->socialNetworkAccountQuery = $socialNetworkAccountQuery;
@ -96,6 +97,7 @@ class SettingsController extends Controller
'profile', 'profile',
'account', 'account',
'networks', 'networks',
'privacy',
'disconnect', 'disconnect',
'delete', 'delete',
'two-factor', 'two-factor',
@ -145,6 +147,11 @@ class SettingsController extends Controller
); );
} }
public function actionPrivacy()
{
return $this->render('privacy');
}
public function actionAccount() public function actionAccount()
{ {
/** @var SettingsForm $form */ /** @var SettingsForm $form */

View File

@ -0,0 +1,19 @@
<?php
use yii\helpers\Html;
?>
<div class="row">
<div class="col-md-3">
<?= $this->render('_menu') ?>
</div>
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-heading">
<?= Html::encode($this->title) ?>
</div>
<div class="panel-body">
</div>
</div>
</div>
</div>