Rename gdprdelete action to gdpr-delete
This commit is contained in:
@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
@ -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
|
||||
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user