Current path: home/webdevt/cryptoimpot.fr/module/User/view/user/user/
?? Go up: /home/webdevt/cryptoimpot.fr/module/User/view/user
<?php
//$this->headTitle('Change Password');
$this->headTitle('Changer de mot de passe');
$this->mainMenu()->setActiveItemId('users');
$this->pageBreadcrumbs()->setItems([
'Home'=>$this->url('home'),
'Manage Users'=>$this->url('users'),
'Change Password'=>$this->url('users', ['action'=>'change-password', 'id'=>$user->getId()])
]);
$form->get('old_password')->setAttributes([
'class'=>'form-control',
// 'placeholder'=>'Enter old password'
'placeholder'=>'Entrer l\'ancien mot de passe'
]);
$form->get('new_password')->setAttributes([
'class'=>'form-control',
// 'placeholder'=>'Enter new password'
'placeholder'=>'Entrer le nouveau mot de passe'
]);
$form->get('confirm_new_password')->setAttributes([
'class'=>'form-control',
// 'placeholder'=>'Re-enter new password'
'placeholder'=>'Confirmer le nouveau mot de passe'
]);
$form->get('submit')->setAttributes(['class'=>'btn btn-primary']);
$form->prepare();
?>
<h1>Change Password for <?= $this->escapeHtml($user->getEmail()) ?></h1>
<div class="row">
<div class="col-md-12">
<?= $this->form()->openTag($form); ?>
<div class="form-group">
<?= $this->formLabel($form->get('old_password')); ?>
<?= $this->formElement($form->get('old_password')); ?>
<?= $this->formElementErrors($form->get('old_password')); ?>
</div>
<div class="form-group">
<?= $this->formLabel($form->get('new_password')); ?>
<?= $this->formElement($form->get('new_password')); ?>
<?= $this->formElementErrors($form->get('new_password')); ?>
</div>
<div class="form-group">
<?= $this->formLabel($form->get('confirm_new_password')); ?>
<?= $this->formElement($form->get('confirm_new_password')); ?>
<?= $this->formElementErrors($form->get('confirm_new_password')); ?>
</div>
<?= $this->formElement($form->get('csrf')); ?>
<?= $this->formElement($form->get('submit')); ?>
<?= $this->form()->closeTag(); ?>
</div>
</div>