Skip to content

Instantly share code, notes, and snippets.

@PoeticIntensity
Created August 1, 2014 04:57
Show Gist options
  • Save PoeticIntensity/1298e85b3835a53dacae to your computer and use it in GitHub Desktop.
Save PoeticIntensity/1298e85b3835a53dacae to your computer and use it in GitHub Desktop.
<div class="admins form">
<?= $this->Form->create($admin); ?>
<fieldset>
<legend><?= __('Add Admin'); ?></legend>
<?php
echo $this->Form->input('first_name');
echo $this->Form->input('last_name');
echo $this->Form->input('email');
echo $this->Form->input('phone');
echo $this->Form->input('is_super');
echo $this->Form->input('Users.username');
echo $this->Form->input('Users.password');
// echo $this->Form->input('date_created');
// echo $this->Form->input('last_login');
// echo $this->Form->input('last_ip');
// echo $this->Form->input('user_id', ['options' => $users]);
?>
</fieldset>
<?= $this->Form->button(__('Submit')); ?>
<?php
debug($user);
echo"Hey!";
if ($this->Form->isFieldError('email')) {
echo"ERROR!";
echo $this->Form->error('first_name');
}
?>
<?= $this->Form->end(); ?>
</div>
<div class="actions">
<h3><?= __('Actions'); ?></h3>
<ul>
<li><?= $this->Html->link(__('List Admins'), ['action' => 'index']); ?></li>
<li><?= $this->Html->link(__('List Users'), ['controller' => 'Users', 'action' => 'index']); ?> </li>
<li><?= $this->Html->link(__('New User'), ['controller' => 'Users', 'action' => 'add']); ?> </li>
<li><?= $this->Html->link(__('List Clients'), ['controller' => 'Clients', 'action' => 'index']); ?> </li>
<li><?= $this->Html->link(__('New Client'), ['controller' => 'Clients', 'action' => 'add']); ?> </li>
<li><?= $this->Html->link(__('List Tickets'), ['controller' => 'Tickets', 'action' => 'index']); ?> </li>
<li><?= $this->Html->link(__('New Ticket'), ['controller' => 'Tickets', 'action' => 'add']); ?> </li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment