Added privacy action
This commit is contained in:
@ -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 */
|
||||||
|
|||||||
19
src/User/resources/views/settings/privacy.php
Normal file
19
src/User/resources/views/settings/privacy.php
Normal 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>
|
||||||
Reference in New Issue
Block a user