Ejemplo n.º 1
0
    <?php 
$box->beginBody();
?>
        <?php 
echo $form->field($model, 'description')->textInput();
?>
        <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => 64]);
?>
        <?php 
echo $form->field($model, 'childRoles')->dropDownList($model->getChildRolesValues(), ['multiple' => 'multiple', 'size' => 10]);
?>
        <?php 
echo $form->field($model, 'childPermissions')->dropDownList($model->getChildPermissionsValues(), ['multiple' => 'multiple', 'size' => 20]);
?>

    <?php 
$box->endBody();
?>

    <?php 
$box->actions([AdminHtml::actionButton(AdminHtml::ACTION_SAVE_AND_STAY, $model->isNewRecord), AdminHtml::actionButton(AdminHtml::ACTION_SAVE_AND_LEAVE, $model->isNewRecord), AdminHtml::actionButton(AdminHtml::ACTION_SAVE_AND_CREATE, $model->isNewRecord)]);
?>

    <?php 
ActiveForm::end();
?>

<?php 
FormBox::end();