Current path: home/webdevt/cryptoimpot.fr/module/User/view/user/user/
?? Go up: /home/webdevt/cryptoimpot.fr/module/User/view/user
<?php
$this->headTitle('Edit User');
$this->mainMenu()->setActiveItemId('users');
$this->pageBreadcrumbs()->setItems([
'Home'=>$this->url('home'),
'Manage Users'=>$this->url('users'),
'Edit User'=>$this->url('users', ['action'=>'edit', 'id'=>$user->getId()])
]);
$form->get('email')->setAttributes([
'class'=>'form-control',
'placeholder'=>'name@example.com'
]);
$form->get('full_name')->setAttributes([
'class'=>'form-control',
'placeholder'=>'John Doe'
]);
$form->get('status')->setAttributes([
'class'=>'form-control'
]);
$form->get('submit')
->setAttributes(['class'=>'btn btn-primary'])
->setValue('Save');
$form->prepare();
?>
<h1>Edit User <?= $this->escapeHtml($user->getEmail()) ?></h1>
<div class="row">
<div class="col-md-6">
<?= $this->form()->openTag($form); ?>
<div class="form-group">
<?= $this->formLabel($form->get('email')); ?>
<?= $this->formElement($form->get('email')); ?>
<?= $this->formElementErrors($form->get('email')); ?>
</div>
<div class="form-group">
<?= $this->formLabel($form->get('full_name')); ?>
<?= $this->formElement($form->get('full_name')); ?>
<?= $this->formElementErrors($form->get('full_name')); ?>
</div>
<div class="form-group">
<?= $this->formLabel($form->get('status')); ?>
<?= $this->formElement($form->get('status')); ?>
<?= $this->formElementErrors($form->get('status')); ?>
</div>
<?= $this->formElement($form->get('submit')); ?>
<?= $this->form()->closeTag(); ?>
</div>
</div>