Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions view/zfc-user-admin/user-admin/_form.phtml
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
<?php echo $this->form()->openTag($form) ?>
<dl class="zend_form">
<?php foreach ($form as $element): ?>
<?php $isButton = $element instanceof Zend\Form\Element\Button; ?>
<?php $isCheckbox = $element instanceof Zend\Form\Element\Checkbox || $element->getAttribute('type') == 'checkbox'; ?>
<?php if ($element->getLabel() != null && !$isButton): ?>
<?php if ($element->getLabel() != null && !$element instanceof Zend\Form\Element\Button): ?>
<dt><?php echo $this->formLabel($element) ?></dt>
<?php endif ?>
<?php if ($isButton): ?>
<dd><?php echo $this->formButton($element) ?></dd>
<?php elseif ($element instanceof Zend\Form\Element\Select): ?>
<dd><?php echo $this->formSelect($element) . $this->formElementErrors($element) ?></dd>
<?php elseif ($element instanceof Zend\Form\Element\MultiCheckbox): ?>
<dd><?php echo $this->formMultiCheckbox($element) . $this->formElementErrors($element) ?></dd>
<?php elseif ($isCheckbox): ?>
<dd><?php echo $this->formCheckbox($element) ?></dd>
<?php else: ?>
<dd><?php echo $this->formInput($element) . $this->formElementErrors($element) ?></dd>
<?php endif ?>
<dd><?php echo $this->formElement($element) . $this->formElementErrors($element) ?></dd>
<?php endforeach ?>
</dl>
<?php if ($this->redirect): ?>
Expand Down