<div id="communicationsbox" style="height:525px; background-color:#f7eee1;">

<div id="form_wrapper">
  <?php $form=$this->beginWidget('CActiveForm', array(

	'id'=>'user-group-form',

	'enableAjaxValidation'=>false,

	'htmlOptions' => array(

        'enctype' => 'multipart/form-data',

    ),

)); ?>
    <div class="row">
      <table width="800" border="0" cellpadding="3" cellspacing="0" style="border:1px #999 solid">
        <tr style="border:1px solid #999">
          <td width="170"><?php echo $form->labelEx($model,'group_name'); ?></td>
          <td width="616"><?php echo $form->textField($model,'group_name',array('size'=>20,'maxlength'=>255)); ?><?php echo $form->error($model,'group_name'); ?></td>
        </tr>
        <tr>
          <td valign="top"><?php echo $form->labelEx($model,'description'); ?></td>
          <td><?php echo $form->textArea($model,'description',array('class'=>'ckeditor','cols'=>"40",'rows'=>"10")); ?><?php echo $form->error($model,'description'); ?></td>
        </tr>
        <tr>
          <td><?php echo $form->labelEx($model,'icon'); ?></td>
          <td><?php echo $form->fileField($model,'icon'); ?>

		<?php echo $form->error($model,'icon'); ?>

        

        <?php if(!$model->isNewRecord){ ?>

        <div class="row">

             <?php echo CHtml::image(Yii::app()->request->baseUrl.'/media/usergroup_icons/'.$model->icon,"image",array("width"=>200)); ?>

        </div>

        <?php } ?></td>
        </tr>
        <tr>
          <td><?php echo $form->labelEx($model,'show_in_partner'); ?></td>
          <td><?php echo $form->dropDownList($model, 'show_in_partner',array('Y'=>'Yes','N'=>'No')); ; ?>

			<?php echo $form->error($model,'show_in_partner'); ?>
			</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><?php echo CHtml::submitButton($model->isNewRecord ? 'Submit' : 'Save'); ?></td>
        </tr>
      </table>
    </div>
    <br />
    <br />
    <br />
  <?php $this->endWidget(); ?>
</div>

</div><!-- form -->
