<div class="groups form userForm">
<?php echo $this->Form->create('Group'); ?>
<fieldset>
<legend><?php echo __('Add Group'); ?></legend>
<?php
	$groupCode = uniqid(md5(rand()), false);
	$gPassCode = uniqid(md5(rand()), false);
	echo $this->Form->input('user_id',array('type'=>'hidden','value'=>$loggedUser['id']));
	echo $this->Form->input('name');
	echo $this->Form->input('type');
	echo $this->Form->input('description');
	echo $this->Form->input('groupcode',array('type'=>'hidden','value'=>$groupCode));
	echo $this->Form->input('passcode',array('type'=>'hidden','value'=>$gPassCode));
?>
</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
	
</div>
