Advertisement
mkdarkness

Untitled

Jun 26th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.14 KB | None | 0 0
  1. <?php /** @var BootActiveForm $form */
  2.  
  3. $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
  4.     'id'=>'horizontalForm',
  5.     'type'=>'horizontal',
  6. )); ?>
  7. <table>
  8.  
  9.     <fieldset>
  10.         <td><legend>Grupos</legend></td>
  11.         <tr>
  12.             <td><?php echo $form->textFieldRow($model, 'ds_name_grp',
  13.                     array('class'=>'form')); ?></td>
  14.         </tr>
  15.  
  16.         <tr>
  17.             <td><?php
  18.                 $perms = CHtml::listData(Permission::model()->scopeDeleted()->findAll(), 'cd_perm_per', 'ds_titulo_per');
  19.                 echo $form->checkBoxListRow($model, 'permission.cd_perm_per',$perms); ?>
  20.             </td>
  21.         </tr>
  22.  
  23.     </fieldset>
  24.  
  25.     <tr>
  26.         <td>
  27.             <div class="form-buttons">
  28.                 <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'type'=>'inverse', 'label'=>'Salvar')); ?>
  29.                 <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'primary', 'label'=>'Voltar', 'url'=>Yii::app()->createUrl('/admin/user/index'),)); ?>
  30.             </div>
  31.         </td>
  32.  
  33.     </tr>
  34.  
  35.     <?php $this->endWidget(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement