Exemplo n.º 1
0
//        'multiple' => true,
//        'placeholder' => 'Выберите подарки ...',
//    ],
//];
?>
<div class="row">
    <div class="col-sm-11">&nbsp;</div>
    <div class="col-sm-1">

    <?php 
echo Html::a(Html::tag('span', '', ['class' => 'glyphicon glyphicon-plus']), '#', ['class' => 'btn btn-success add-section']);
?>
    </div>
</div>
<?php 
echo MultirowsWidget::widget(['model' => UsersectionForm::className(), 'form' => $form, 'records' => $aSectionModels, 'rowview' => '@app/views/usersection/_editwithuser.php', 'tagOptions' => ['class' => 'usersection-row'], 'addlinkselector' => '.add-section', 'dellinkselector' => '.remove-section', 'afterInsert' => 'function(ob){}', 'afterDelete' => 'function(){}', 'canDeleteLastRow' => false]);
?>

<div class="row">
    <div class="col-xs-6">
        <?php 
echo '';
?>
    </div>
    <div class="col-xs-6">
        <?php 
echo '';
?>
    </div>
</div>
Exemplo n.º 2
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'rules' => [['allow' => true, 'actions' => ['index', 'update', 'create', 'view', 'export'], 'roles' => [User::USER_GROUP_ADMIN]], ['allow' => true, 'actions' => ['confirmemail', 'setnewpassword'], 'roles' => ['?']]]], 'validateSections' => ['class' => MultirowsBehavior::className(), 'model' => UsersectionForm::className()], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]];
 }