Rename gdprdelete action to gdpr-delete

This commit is contained in:
bscheshirwork
2018-10-15 18:29:03 +03:00
parent c0afdd55c9
commit 10afb076c4
6 changed files with 9 additions and 7 deletions

View File

@ -107,7 +107,7 @@ class SettingsController extends Controller
'export',
'networks',
'privacy',
'gdprdelete',
'gdpr-delete',
'disconnect',
'delete',
'two-factor',
@ -167,7 +167,7 @@ class SettingsController extends Controller
]);
}
public function actionGdprdelete()
public function actionGdprDelete()
{
if (!$this->module->enableGdprCompliance)
throw new NotFoundHttpException();
@ -220,7 +220,7 @@ class SettingsController extends Controller
}
return $this->render('gdprdelete', [
return $this->render('gdpr-delete', [
'model' => $form,
]);
}

View File

@ -10,6 +10,7 @@
use yii\widgets\ActiveForm;
use yii\helpers\Html;
/* @var $model \Da\User\Form\GdprDeleteForm */
?>
@ -46,7 +47,7 @@ use yii\helpers\Html;
<hr>
<div class="row">
<div class="col-md-12 text-center">
<?= Html::a(Yii::t('usuario','Back to privacy settings'),['/user/settings/privacy'],['class'=>'btn btn-info']) ?>
<?= Html::a(Yii::t('usuario', 'Back to privacy settings'), ['/user/settings/privacy'], ['class' => 'btn btn-info']) ?>
</div>
</div>
<?php

View File

@ -54,7 +54,7 @@ $this->title = Yii::t('usuario', 'Privacy settings');
) ?>
<?php else:
echo Html::a(Yii::t('usuario', 'Delete'),
['/user/settings/gdprdelete'],
['/user/settings/gdpr-delete'],
[
'class' => 'btn btn-danger',
'id' => 'gdpr-del-button',