forked from olegkrivtsov/using-zf3-book-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit.phtml
More file actions
53 lines (40 loc) · 1.66 KB
/
Copy pathedit.phtml
File metadata and controls
53 lines (40 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?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('submit')
->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('role')); ?>
<?= $this->formElement($form->get('role')); ?>
<?= $this->formElementErrors($form->get('role')); ?>
</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>